Java IDE Dwight Deugo Nesa Matic

Slides:



Advertisements
Similar presentations
6 Copyright © 2005, Oracle. All rights reserved. Building Applications with Oracle JDeveloper 10g.
Advertisements

Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
Using Eclipse. Getting Started There are three ways to create a Java project: 1:Select File > New > Project, 2 Select the arrow of the button in the upper.
Eclipse Architecture Dwight Deugo Nesa Matic
Java Integrated Development Environments: ECLIPSE Part1 Installation.
20-Jun-15 Eclipse. Most slides from: 2 About IDEs An IDE is an Integrated Development Environment.
Presented by IBM developer Works ibm.com/developerworks/ 2006 January – April © 2006 IBM Corporation. Making the most of The Java Development Tools project.
Eclipse Introduction Dwight Deugo Nesa Matic
Plug-in Development Dwight Deugo Nesa Matic
Eclipse Introduction Dwight Deugo Nesa Matic
Perspectives Dwight Deugo Nesa Matic
1 CSC/ECE 517 Fall 2010 Lec. 2 Overview of Eclipse Lectures 1.Overview 2.Installing and Running 3.Building and Running Java Classes 4.Debugging 5.Testing.
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.
Introduction to Eclipse. Overview Eclipse Background Obtaining and Installing Eclipse Creating a Workspaces / Projects Creating Classes Compiling and.
Getting started with Eclipse By Alexander Butyaev.
INF 111 / CSE 121 Discussion Session Week 2 - Fall 2007 Instructor: Michele Rousseau TA: Rosalva Gallardo.
1 v1.6 08/02/2006 Overview of Eclipse Lectures 1.Overview 2.Installing and Running 3.Building and Running Java Classes 4.Refactoring 5.Debugging 6.Testing.
1 Development Environments AUBG, COS dept Lecture Title: Dev Env: Eclipse (Extract from Syllabus) Reference:
Workbench Overview Dwight Deugo Nesa Matic
The Eclipse IDE Gareth Davies. Relevant Bio Professional Developer since 1994 Mostly Microsoft platform, using successive versions of Visual Studio Serious.
© 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.
TOOLS FOR DESIGN AND DEVELOPMENT ENVIRONMENTS. Case study - ECLIPSE Lecture notes 4.
TOOLS FOR DESIGN AND DEVELOPMENT ENVIRONMENTS. Case study - ECLIPSE Lecture notes 7.
CPSC1301 Computer Science 1 Overview of Dr. Java.
Introduction to Eclipse CSC 216 Lecture 3 Ed Gehringer Using (with permission) slides developed by— Dwight Deugo Nesa Matic
Debugging Dwight Deugo Nesa Matic
Debugging. 2 © 2003, Espirity Inc. Module Road Map 1.Eclipse Debugging  Debug Perspective  Debug Session  Breakpoint  Debug Views  Breakpoint Types.
Inheritance Dwight Deugo Nesa Matic
Welcome To Eclipse. Basic Concepts Workspace – directory where your projects are stored –Projects grouping of related works –Resources generic term to.
Eclipse Eclipse An IDE is an Integrated Development Environment Different IDEs meet different needs – BlueJ, DrJava are designed as teaching.
Creating and running a Java program. Eclipse Interactive Development Environment (IDE)  Eclipse is an Interactive Development Environment (IDE) for Java.
9/2/ CS171 -Math & Computer Science Department at Emory University.
Eclipse. An IDE is an Integrated Development Environment Different IDEs meet different needs BlueJ, DrJava are designed as teaching tools Emphasis is.
Eclipse 3.1 IDE Overview.
JUnit Dwight Deugo Nesa Matic
Eclipse 24-Apr-17.
JUnit Dwight Deugo Nesa Matic
Javadoc Dwight Deugo Nesa Matic
1 CSC/ECE 517 Fall 2010 Lec. 3 Overview of Eclipse Lectures Lecture 2 “Lecture 0” Lecture 3 1.Overview 2.Installing and Running 3.Building and Running.
Eclipse and JUnit. Eclipse Terms The Workbench Perspective –Collection of editors and views –Exampes: Java Pers., Debugging Persp. Editors (create a file)
Eclipse. An IDE is an Integrated Development Environment Different IDEs meet different needs BlueJ, DrJava are designed as teaching tools Emphasis is.
Development with Eclipse Software Engineering Prof. Werner Krandick.
Classes Dwight Deugo Nesa Matic
Surya Bahadur Kathayat Outline  Ramses  Installing Ramses  Ramses Perspective (Views and Editors)  Importing/Exporting Example.
® IBM Software Group © 2007 IBM Corporation Module 1: Getting Started with Rational Software Architect Essentials of Modeling with IBM Rational Software.
Object-Oriented Principals Dwight Deugo Nesa Matic
Introduction to Eclipse Programming with an Integrated Development Environment.
Eclipse 27-Apr-17.
Using Ant in Eclipse Dwight Deugo Nesa Matic
C Copyright © 2009, Oracle. All rights reserved. Using SQL Developer.
Module Road Map Refactoring Why Refactoring? Examples
Introduction to Eclipse
Introduction to Eclipse
ATS Application Programming: Java Programming
Debugging Dwight Deugo
IDE++ User study & Eclipse Tutorial
Eclipse 20-Sep-18.
Introduction to Eclipse
Some Tips for Using Eclipse
Overview of Eclipse Lectures
Test-Driven Development
Debugging Dwight Deugo
Java IDE Dwight Deugo Nesa Matic Portions of the notes for this lecture include excerpts from.
By Rajanikanth B Eclipse IDE Overview By Rajanikanth B
Test-Driven Development
JUnit Dwight Deugo Nesa Matic Portions of the notes for this lecture include excerpts from the Eclipse 3.0 and.
Presentation transcript:

Java IDE Dwight Deugo Nesa Matic

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

3 © , Espirity Inc. Module Overview 1.Building and Running Java Classes 2.Unit Testing

4 © , Espirity Inc. Module Road Map 1.Building and Running Java Classes  Developing Java applications  Projects, packages, classes  Browsing Java code  Searching Java code  Organizing Java code  Using Code Assist  Running Java applications 2.Unit Testing

5 © , Espirity Inc. Java Development Tooling - JDT Eclipse’s Java Development Environment is often referred to as JDT – Java Development Tooling  Using the JDT you can do following with the Java programs:  Write  Compile  Test  Debug

6 © , Espirity Inc. Perspectives When developing Java code commonly used perspectives are:  Java Perspective  Designed for working with Java projects  Java Browsing Perspective  Designed for browsing structure of Java projects  Java Type Hierarchy Perspective  Designed for exploring type hierarchy  Debug Perspective  Designed for debugging Java programs

7 © , Espirity Inc. Java Perspective Contains:  Editor area  Package Explorer View  Hierarchy View  Outline View  Tasks View

8 © , Espirity Inc. Java Browsing Perspective Contains:  Editor area  Projects View  Packages View  Types View  Members View

9 © , Espirity Inc. Java Type Hierarchy Perspective Contains editor area and Hierarchy View

10 © , Espirity Inc. Build Path Project Preferences You can set global preferences for a project Select Window -> Preferences to get Preferences View Good idea to separate your Java files into source and compiled directories (src and bin) This action only needs to be done once Done for all subsequent projects

11 © , Espirity Inc. Creating Java Project Project used to organize resources (source, class, icons) for a project To create Java project:  Select Window  New  Project… from the menu  The New Project wizard comes up  Select Java  Java Project  Click Next

12 © , Espirity Inc. New Project Wizard Specify Project Name Click Next

13 © , Espirity Inc. Java Settings Specify Java settings  Output folder (where compiled files will be stored)  External jar files project depends on  Classes from other projects that are referenced in the project Click Finish

14 © , Espirity Inc. Project Properties You can change the Java build path at any time  Choose Properties from the context menu on the project

15 © , Espirity Inc. Creating Packages Package contains Java class files To create a package for a project:  Select the project  Choose New  Package from the context menu  Specify package name  Click Finish

16 © , Espirity Inc. Creating Classes To create a class in a package:  Select the package  Choose New  Class from the context menu  The Class wizard comes up  Specify class details  Click Finish

17 © , Espirity Inc. Using Code Assist When activated, code assist opens a list of available code completions Code Assist activates by Crtl+Space  Activates automatically when a message needs to be sent to an object (after the dot is typed)

18 © , Espirity Inc. Using Quick Fix Useful if Java compiler shows errors  Gives options for fixing the errors  Activated through Edit  Quick Fix menu option Error indication

19 © , Espirity Inc. Searching for Java Classes When developing Java application a good search mechanism is very important  You often search for class, method declarations, and references  It is important to be able to find things quickly Eclipse Java Search mechanism is very extensive It allows you to search for:  Types, methods, constructors, packages, and fields  Declarations, Implementers, References  In the scope of Workspace, Working Set, or Selected Resources

20 © , Espirity Inc. Organizing Java Code Eclipse comes with extensive support for organizing and refactoring Java code It is possible to:  Generate getters and setters for the fields  Organize missing import statements  Move fields, methods, classes  Rename methods, classes, packages

21 © , Espirity Inc. Generating Getters and Setters Available for creating get and set methods on the fields  It supports encapsulation  Activated by choosing Source  Generate Getter and Setter from the editor’s context menu

22 © , Espirity Inc. Refactoring Available from the Refactor context menu option in the editor Helps with refactoring Java code Allows for:  Renaming  Methods, fields, packages, projects, parameters, or local variables  Changing of method signature  Pull up a field or method (into super class)  Push down a field or method (into sub class)  Extract Interface (generate interface from class)  Generalize type (change type of fields and methods)

23 © , Espirity Inc. Running Java Classes To Run Java application  Choose Run  Run… from the menu

24 © , Espirity Inc. Module Road Map 1.Building and Running Java Classes 2.JUnit  What is JUnit?  Where Does it Come From?  Working with TestCases  Working with TestSuites  JUnit Window

25 © , Espirity Inc. Java Development Tooling - JDT Eclipse’s Java Development Environment is often referred to as JDT – Java Development Tooling  Using the JDT you can do following with the Java programs:  Write  Compile  Test  Debug

26 © , Espirity Inc. Perspectives When developing Java code commonly used perspectives are:  Java Perspective  Designed for working with Java projects  Java Browsing Perspective  Designed for browsing structure of Java projects  Java Type Hierarchy Perspective  Designed for exploring type hierarchy  Debug Perspective  Designed for debugging Java programs

27 © , Espirity Inc. Java Perspective Contains:  Editor area  Package Explorer View  Hierarchy View  Outline View  Tasks View

28 © , Espirity Inc. Java Browsing Perspective Contains:  Editor area  Projects View  Packages View  Types View  Members View

29 © , Espirity Inc. Java Type Hierarchy Perspective Contains editor area and Hierarchy View

30 © , Espirity Inc. Build Path Project Preferences You can set global preferences for a project Select Window -> Preferences to get Preferences View Good idea to separate your Java files into source and compiled directories (src and bin) This action only needs to be done once Done for all subsequent projects

31 © , Espirity Inc. Creating Java Project Project used to organize resources (source, class, icons) for a project To create Java project:  Select Window  New  Project… from the menu  The New Project wizard comes up  Select Java  Java Project  Click Next

32 © , Espirity Inc. New Project Wizard Specify Project Name Click Next

33 © , Espirity Inc. Java Settings Specify Java settings  Output folder (where compiled files will be stored)  External jar files project depends on  Classes from other projects that are referenced in the project Click Finish

34 © , Espirity Inc. Project Properties You can change the Java build path at any time  Choose Properties from the context menu on the project

35 © , Espirity Inc. Creating Packages Package contains Java class files To create a package for a project:  Select the project  Choose New  Package from the context menu  Specify package name  Click Finish

36 © , Espirity Inc. Creating Classes To create a class in a package:  Select the package  Choose New  Class from the context menu  The Class wizard comes up  Specify class details  Click Finish

37 © , Espirity Inc. Using Code Assist When activated, code assist opens a list of available code completions Code Assist activates by Crtl+Space  Activates automatically when a message needs to be sent to an object (after the dot is typed)

38 © , Espirity Inc. Using Quick Fix Useful if Java compiler shows errors  Gives options for fixing the errors  Activated through Edit  Quick Fix menu option Error indication

39 © , Espirity Inc. Searching for Java Classes When developing Java application a good search mechanism is very important  You often search for class, method declarations, and references  It is important to be able to find things quickly Eclipse Java Search mechanism is very extensive It allows you to search for:  Types, methods, constructors, packages, and fields  Declarations, Implementers, References  In the scope of Workspace, Working Set, or Selected Resources

40 © , Espirity Inc. Organizing Java Code Eclipse comes with extensive support for organizing and refactoring Java code It is possible to:  Generate getters and setters for the fields  Organize missing import statements  Move fields, methods, classes  Rename methods, classes, packages

41 © , Espirity Inc. Generating Getters and Setters Available for creating get and set methods on the fields  It supports encapsulation  Activated by choosing Source  Generate Getter and Setter from the editor’s context menu

42 © , Espirity Inc. Refactoring Available from the Refactor context menu option in the editor Helps with refactoring Java code Allows for:  Renaming  Methods, fields, packages, projects, parameters, or local variables  Changing of method signature  Pull up a field or method (into super class)  Push down a field or method (into sub class)  Extract Interface (generate interface from class)  Generalize type (change type of fields and methods)

43 © , Espirity Inc. Running Java Classes To Run Java application  Choose Run  Run… from the menu

44 © , Espirity Inc. Summary You have learned:  How to create projects, packages and classes  How to browse Java code and search for Java code  How to organize Java code  How to run Java code  What is JUnit, and how is integrated into Eclipse  How to write Test Cases  How to write Test Suites

45 © , Espirity Inc. Labs! Lab: Building and Running Java Application