1 / 15

Introduction to Eclipse

Introduction to Eclipse. What is Eclipse?. An Integrated Development Environment Provides many features to ease C++ programming (and others, e.g. C/Java) Editor Debugger Source Control …. Getting Eclipse. At the CS labs … It ’ s already installed At home … Download at:

Download Presentation

Introduction to Eclipse

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to Eclipse

  2. What is Eclipse? • An Integrated Development Environment • Provides many features to ease C++ programming (and others, e.g. C/Java) • Editor • Debugger • Source Control • …

  3. Getting Eclipse At the CS labs… It’s already installed At home… Download at: http://downloads.cs.txstate.edu/os/windows/

  4. Installing and Running Eclipse • Installation is very simple • Just download eclipseInstaller.exe • Running Eclipse • Then click eclipseInstaller.exe • Eclipse will start running if all the prerequisites are met • Demo: Run Eclipse

  5. Setting up your Workspace • Workspace is where your projects and programs are stored. • Usually some directory in the file system • The workspace is set when Eclipse starts • In this course, for instance, we may set the work space to • C:\Users\<your net id>\workspace • All code will be saved in this directory • Demo

  6. Some important concepts about Eclipse Environment • Workbench • Perspective • Views • Editor • …

  7. Workbench • The term Workbench refers to the desktop development environment • The Workbench aims to achieve seamless tool integration and controlled openness by providing a common paradigm for the creation, management, and navigation of workspace resources.

  8. Understanding Perspective • Each Workbench window contains one or more perspectives • Each perspective provides a set of functionality aimed at accomplishing a specific type of task or works with specific types of resources. • For example, the Java perspective combines views that you would commonly use while editing Java source files, while the C/C++ perspective contains the views that you would use for editing C++ files • You might need switch perspectives frequently.

  9. Built-in Eclipse Perspectives • Resource • Arrange your files and projects. • C++ • Develop programs in the C++ language. • Debug • Diagnose and debug problems that occur at runtime.

  10. Views • Views support editors and provide alternative presentations as well as ways to navigate the information in your Workbench. • For example, the Navigator and other navigation views display projects and other resources that you are working with.

  11. Editors • Most perspectives in the Workbench are comprised of an editor area and one or more views • You can associate different editors with different types of files. • Any number of editors can be open at once, but only one can be active at a time.

  12. Creating C++ Projects • Demo: Creating a project in the workspace

  13. Running the code • Currently, no implementation is provided in the given files. You are expected to fill the implementation details. • We need a cpp file which has a main() method as the entrance for execution • Demo: Adding the main() method in HelloWorld.cpp and run the program

  14. Other issues • Demo: • Removing files from the project • Build • Window->Preferences • Project->Properties • … • Eclipse provides a very good Help system • “Help->Help Contents” for more information

  15. Questions?

More Related