Eclipse Introduction Dwight Deugo Nesa Matic

Slides:



Advertisements
Similar presentations
Introduction to Eclipse cs112b1 – Lab01 by Rui Shi.
Advertisements

Learning the Basics – Lesson 1
Goals Give you a feeling of what Eclipse is.
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
 2006 Pearson Education, Inc. All rights reserved Introduction to the Visual C# 2005 Express Edition IDE.
Eclipse Architecture Dwight Deugo Nesa Matic
Java Integrated Development Environments: ECLIPSE Part1 Installation.
Android: Hello World Frank Xu Gannon University. Steps Configuration ▫Android SDK ▫Android Development Tools (ADT)  Eclipse plug-in ▫Android SDK and.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
Plug-in Development Dwight Deugo Nesa Matic
Presented by IBM developer Works ibm.com/developerworks/ 2006 January – April © 2006 IBM Corporation. Making the most of Creating Eclipse plug-ins.
Eclipse Introduction Dwight Deugo Nesa Matic
Eclipse Begin at the Beginning. Where to Find it:
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
Introduction To Form Builder
Views Dwight Deugo Nesa Matic
Enhancing Developer Productivity using Eclipse Presented by: Tom Sausner.
Eclipse IDE. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as teaching.
03 Using Eclipse. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as.
Exploring the Basics of Windows XP
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved. 1-1.
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 3 Windows File Management 1 Morrison / Wells / Ruffolo.
INF 111 / CSE 121 Discussion Session Week 2 - Fall 2007 Instructor: Michele Rousseau TA: Rosalva Gallardo.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
© Ms. Masihi.  The Dreamweaver Welcome Screen first opens when you start Dreamweaver.  This screen gives you quick access to previously opened files,
Eclipse Overview Introduction to Web Programming Kirkwood Continuing Education Fred McClurg © Copyright 2015, Fred McClurg, All Rights Reserved.
IE 411/511: Visual Programming for Industrial Applications
Arc: AddIns Dr Andy Evans. Java Direct access to ArcObjects Framework inside and outside Arc. Ability to add components to the GUI. Ability to communicate.
Website Development with Dreamweaver
1 Development Environments AUBG, COS dept Lecture Title: Dev Env: Eclipse (Extract from Syllabus) Reference:
Introduction to Eclipse Plug-in Development. Who am I? Scott Kellicker Java, C++, JNI, Eclipse.
Workbench Overview Dwight Deugo Nesa Matic
Session 1 SESSION 1 Working with Dreamweaver 8.0.
© 2005 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. Data Structures for Java William H. Ford William R. Topp Appendix E The EZJava.
Plug-in Development Environment. Session Outline Tools Installation Configuration New Project Basic Debugging Remote Debugging.
Computing Fundamentals Module Lesson 3 — Changing Settings and Customizing the Desktop Computer Literacy BASICS.
Copyright © 2010 Wolters Kluwer Health | Lippincott Williams & Wilkins Introduction to Windows Chapter 2.
Introduction to Eclipse CSC 216 Lecture 3 Ed Gehringer Using (with permission) slides developed by— Dwight Deugo Nesa Matic
TOOLS FOR DESIGN AND DEVELOPMENT ENVIRONMENTS. Case study - ECLIPSE Lecture notes 2.
Debugging Dwight Deugo Nesa Matic
[________________________] Eclipse project briefing materials. Copyright (c) 2002, 2003 IBM Corporation and others. All rights reserved. This.
Chapter 1 Creating a Dreamweaver Web Page and Local Site
Introduction to Eclipse. What is Eclipse? An Integrated Development Environment Provides many features to ease C++ programming (and others, e.g. C/Java)
Welcome To Eclipse. Basic Concepts Workspace – directory where your projects are stored –Projects grouping of related works –Resources generic term to.
9/2/ CS171 -Math & Computer Science Department at Emory University.
Eclipse 3.1 IDE Overview.
Liferay Installation Prepared by: Do Xuan Hai 8 August 2011.
Adobe Flash CS4 – Illustrated Unit A: Getting Started with Adobe Flash.
Javadoc Dwight Deugo Nesa Matic
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
Computing Fundamentals Module Lesson 7 — The Windows Operating System Computer Literacy BASICS.
© 2002 IBM Corporation Transaction Processing Facility TPF Users Group Acapulco May 2004 © 2004 IBM Corporation Pete Nicholls IBM Toronto Lab TPF Toolkit.
® IBM Software Group © 2007 IBM Corporation Module 1: Getting Started with Rational Software Architect Essentials of Modeling with IBM Rational Software.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files 8/10/ :35 PM.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
Editing and Debugging Mumps with VistA and the Eclipse IDE Joel L. Ivey, Ph.D. Dept. of Veteran Affairs OI&T, Veterans Health IT Infrastructure & Security.
Using Ant in Eclipse Dwight Deugo Nesa Matic
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
Java IDE Dwight Deugo Nesa Matic
Introduction to Eclipse
Goals Give you a feeling of what Eclipse is.
ATS Application Programming: Java Programming
Debugging Dwight Deugo
COSC-4840 Software Engineering
Introduction to Eclipse
Debugging Dwight Deugo
Java IDE Dwight Deugo Nesa Matic Portions of the notes for this lecture include excerpts from.
Presentation transcript:

Eclipse Introduction Dwight Deugo Nesa Matic

2 © , Espirity Inc. Additional Contributors None as of September, 2004

3 © , Espirity Inc. Module Overview 1.Eclipse Overview 2.Installing and Running Eclipse 3.Workbench Overview

4 © , Espirity Inc. Module Road Map 1. Eclipse Overview  Background  Architecture  Components  Usage scenarios 2.Installing and Running Eclipse 3.Workbench Overview

5 © , Espirity Inc. What is Eclipse? Eclipse is an open source project   Consortium of companies, including IBM  Launched in November 2001  Designed to help developers with specific development tasks Consists of four separate projects:  Eclipse Project  Eclipse Tools Project  Eclipse Technology Project  Eclipse Web Tools Platform Project

6 © , Espirity Inc. IBM’s IDE History 1994 VisualAge for Smalltalk 1996 VisualAge for Java 2001 Eclipse Project VisualAge Micro Edition

7 © , Espirity Inc. The Eclipse Platform Motivation Application development tools construction support Independent tool vendors support GUI and non-GUI application development support Numerous content types support  Java, HTML, C, XML,... Easy integration of tools Use of Java language for writing the tools Multiple operating systems support

8 © , Espirity Inc. Plug-in Architecture Eclipse Platform Platform Runtime … Tool (plug-in) Tool (plug-in) Tool (plug-in) Workbench Workspace Help Team

9 © , Espirity Inc. Workbench Represents the desktop development environment  It contains set of tools for resource management  It provides common way of navigating through the resources Multiple workbenches can be opened at the same time

10 © , Espirity Inc. Workspace Represents users data It is a set of user defined resources  Files  Contain arbitrary number of bytes  Folders  Contain other folders or files  Projects  Collections of files and folders

11 © , Espirity Inc. Help Used for creating and publishing documentation There are two different documentation styles:  Help style documentation is published in the user guide  API documentation is published in the programmer guide Help content is in HTML format Help navigation is in XML format

12 © , Espirity Inc. Team Provides support for:  Versioning  Configuration management  Integration with team repository Allows team repository provider to hook into the environment  Team repository providers specify how to intervene with resources Has optimistic and pessimistic locking support

13 © , Espirity Inc. How is Eclipse Used? As an IDE - Integrated Development Environment  Supports the manipulation of various content types  Used for writing code As a product base  Supported through plug-in architecture and customizations

14 © , Espirity Inc. Eclipse as an IDE Java Development Tooling (JDT) is used for building Java code Provides set of workbench plug-ins for manipulating Java code  Java projects, packages, classes, methods,.... Java compiler is built in  Used for compiling Java code  Creates errors (special markers of code) if compilation fails

15 © , Espirity Inc. Eclipse as a Product Base Eclipse can be used as a Java product base Its flexible architecture used as a product framework  Reuse plug-in architecture  Create new plug-ins  Customize the environment

16 © , Espirity Inc. Module Road Map 1.Eclipse Overview 2.Installing and Running Eclipse  Where to get Eclipse?  What is the support for Eclipse?  Installing Eclipse  Running Eclipse 3.Workbench Overview

17 © , Espirity Inc. Getting Eclipse

18 © , Espirity Inc. Main point for finding Eclipse resources  Downloads  Articles  Discussion groups  Bugs Contains various resources for using Eclipse Contains references to other Eclipse related sites

19 © , Espirity Inc. Downloading Eclipse’s Install Zip File Click on the Download from the main page on  Choose the closest site from which to download (geographical sites hosting the download)  Choose the build for download (usually the latest build)  Choose the platform for download and type of download (http or ftp)  Specify where to save the download locally

20 © , Espirity Inc. Installing the Eclipse Unzip the downloaded file to the directory of your choice

21 © , Espirity Inc. eclipse.exe Eclipse is run by double-clicking on the eclipse.exe file  The file is located in the Eclipse installation directory If there is no path set for javaw.exe program, the following dialog will come up

22 © , Espirity Inc. Missing a Java VM? … Download the latest Java Runtime Environment (JRE), e.g., v1.4.1_02 from Click on the downloaded EXE file to install When given the option by the installer, identify a directory of your choice for the install files Update the PATH environment variable to include the JRE’s bin directory

23 © , Espirity Inc. … Missing a Java VM? Other VMs are available at the Eclipse download web site

24 © , Espirity Inc. Specifying JVM There are two ways of specifying JVM for Eclipse:  By installing JVM under the \jre\ directory off the eclipse install directory  By specifying existing JVM in the PATH environment variable Start -> Control Panel -> System ->Advanced -> Environment Variables

25 © , Espirity Inc. Specifying Workspace The workspace contains user defined data – projects and resources such as folders and files Eclipse prompts for a workspace location at the startup time The prompt could be turned off

26 © , Espirity Inc. Running Eclipse When Eclipse is run, a Welcome page opens

27 © , Espirity Inc. Running Different Workspace … It is possible to run different workspaces using command prompt  -data argument must be used with eclipse.exe  Workspace location must be specified Useful for grouping project specific data Multiple workspaces can run at the same time

28 © , Espirity Inc. … Running Different Workspace Customize your working directory by creating a shortcut identifying the eclipse.exe and the working directory

29 © , Espirity Inc. Module Road Map 1.Eclipse Overview 2.Installing and Running Eclipse 3.Workbench Overview  Basics  Resources  Components  Perspectives, Views and Editors  Specialized Views  Bookmarks, Tasks, and Search  Customization

30 © , Espirity Inc. What is the Workbench? Starting point for the development with Eclipse  Opens up when Eclipse starts  Represents the working environment in Eclipse

31 © , Espirity Inc. Multiple Workbench Instances Instance of the workbench comes up when Eclipse launched It is possible to open another instance of the Workbench  Window  New Window  This opens up a new Workbench window  This is important when developing Eclipse plug- ins and you want to test them within the environment  When testing plug-ins new instance of Workbench opens with developed plug-ins

32 © , Espirity Inc. Resources in a Workbench When working with Eclipse, you work with its resources Resources are organized as a file/directory structure in the Workbench  They correspond to the actual files and directories in the Workspace  There are three different levels on resources:  Projects  Folders  Files

33 © , Espirity Inc. Organizing Resources project folder file WorkbenchWorkspace It is possible to drag and drop resources directly between Workbench and the directory structure

34 © , Espirity Inc. Importing Resources Available through menu option File  Import… Different source of resources can be imported:  Existing projects  Files (directory structure)  Zip files

35 © , Espirity Inc. Exporting Resources Available through menu option File  Export… Different source of resources can be exported:  File (directory structure)  Zip files  Jar files

36 © , Espirity Inc. Refreshing Workbench Used for refreshing resources that change in the Workspace directly For example, if file is added to the directory structure in the Workspace:  Select the project  Choose Refresh from the context menu  This will bring the added resource into the Workbench

37 © , Espirity Inc. Resource History Changes and saving a resource results in a new version of the resource  All resource versions are stored in local history  Each resource version is identified by a time stamp  This allows you to compare different versions of the resource There are two pop-up menu options available for accessing local history (the resource is selected):  Compare With  Local History…  Replace With  Local History…  Both options bring up the same window

38 © , Espirity Inc. Comparing Files Allows you to view differences between different versions  You can move between differences  Differences are selected

39 © , Espirity Inc. Workbench Components Workbench contain perspectives Perspective contain views and editors views editor perspective

40 © , Espirity Inc. Perspectives Perspective defines initial layout of the views in the Workbench They are task oriented, i.e. they contain specific views for doing certain tasks:  Java Perspective for manipulating Java code  Resource Perspective for manipulating resources  Debug Perspective for debugging applications One Workbench window contains many perspectives

41 © , Espirity Inc. Opening Perspective It is possible to open a perspective:  In a same Workbench window  In a new Workbench window Perspective can be open by:  Choosing Window  Open Perspective… menu option  Clicking on a perspective shortcut button

42 © , Espirity Inc. Available Perspectives By default, the following perspectives are available in the Workbench:

43 © , Espirity Inc. Saving Perspective Arrangement of views and editors can be modified and saved for perspectives  Choose Window  Save Perspective As… to save perspective  Perspective can be saved under a new (use-defined perspectives) or an existing name You can also reset perspective to original arrangement  Choose Window  Reset Perspective

44 © , Espirity Inc. Customizing Perspectives Available for current perspective  Allows customization such as shortcuts, menu items and views

45 © , Espirity Inc. Deleting Perspectives Only user-defined perspectives can be deleted To delete perspective:  Choose Window  Preferences  Expend Workbench category  Select Perspectives  Select perspective for deleting  Click Delete

46 © , Espirity Inc. Editors An editor for a resource opens when you double- click on a resource  Editor type depends on a type of the resource, for example.txt files are open with the text editor  When an editor opens on a resource, it stays open across different perspectives  When perspectives change editor stays open  Active editor contains menus and toolbars specific to that editor  When you change a resource, an asterisk on the editor’s title bar indicates unsaved changes

47 © , Espirity Inc. Editors and File Types It is possible to associate an editor with a file type  Choose Window  Preferences  Select File Associations  Select file type  Click Add to associate it with an editor

48 © , Espirity Inc. Views… The main purpose of a view is:  To support editors  To provide alternative presentation and navigation in the Workbench Views can have their own menus and toolbars  Items available in menus and toolbars are available only in that view

49 © , Espirity Inc. …Views Views can:  Appear on their own  Appear stacked with other views Layout of the views can be changed by clicking on the title bar and moving views  Single views can be moved together with other views  Stacked views can be moved to be single views

50 © , Espirity Inc. Adding Views to Perspective To add a view to the current perspective:  Choose Window  Show View  Other…  The Show View window comes up  Select window to be shown  Click OK

51 © , Espirity Inc. Stacked Views Stacked views appear in a notebook form  Each view is a notebook page

52 © , Espirity Inc. Fast Views… Hidden views that can be quickly opened and closed  They take up space in the Workbench Fast views can be created by:  Dragging an open view to the shortcut bar  Selecting Fast View from the view’s menu Fast View is activated by clicking on its Fast View pop-up menu option Fast View

53 © , Espirity Inc. …Fast Views Click on the Fast View opens the view in the current perspective Click outside of the view makes it hidden again

54 © , Espirity Inc. Specialized Views Some of the most commonly used views in Eclipse are:  Navigator View  Bookmark View  Task View  Search View These views display specific information

55 © , Espirity Inc. Navigator View Used for displaying resources in the Workbench  Provides hierarchical view of the resources Also used for manipulating resources  Editing  Import/Export  Refactoring

56 © , Espirity Inc. Adding Tasks Tasks usually indicate action for the resource  Associated with resources  With lines in a file  Generic To add a task:  Pop-up the menu on a line in the editor  Choose Add Task… To delete task:  Pop-up the menu on a task  Choose Remove Task…

57 © , Espirity Inc. Tasks View Displays all tasks  Tasks associated with the resources  Generic tasks  Compiler errors that occur during the development

58 © , Espirity Inc. Adding Bookmarks Bookmarks are used as markers for lines in a file To add a bookmark:  Pop-up menu on a line in the Editor  Choose Add Bookmark…  Specify bookmark name  Click OK

59 © , Espirity Inc. Bookmarks View Bookmarks View displays all bookmarks available Allows manipulation of the bookmarks:  Double-click on a bookmark opens the editor on the resource that bookmark is associated with.

60 © , Espirity Inc. Searching Eclipse comes with an extensive Search mechanism  You can search for entities such as files, text, and Java classes To start search:  Select Search  Search… from the menu  Choose search criteria  Click Search

61 © , Espirity Inc. Search Results Displayed in a Search View Double-click on an item in a view opens an editor on that item Search Views allows for sorting and next search

62 © , Espirity Inc. Preferences Dialog Used for customization in the Eclipse  For setting user preferences  Opens by selecting Window  Preferences from the menu

63 © , Espirity Inc. Module Summary In this module you have learned:  What Eclipse does, its background and its components  How Eclipse is used  How to download, install and run Eclipse  How to create and run multiple workspaces with Eclipse  How to use Eclipse’s Workbench what it contains

64 © , Espirity Inc. Labs! Lab: Installing and Running Eclipse