Eclipse 20-Sep-18.

Slides:



Advertisements
Similar presentations
©2004 BLACKBOARD, INC. ALL RIGHTS RESERVED. Java Integrated Development Environments Heather Natour Senior Lead Engineer Blackboard Inc. July 18 th 10:15am.
Advertisements

DEV-2: Getting Started with OpenEdge® Architect – Part I
On the Eclipse Project Mateusz Srebrny 16 February 2004 Warszawa Slides adapted from
Java Integrated Development Environments: ECLIPSE Part1 Installation.
Integrated Development Environments. Today We Will: Go over more advanced functionality of Eclipse. Break up into teams to work on presentation and final.
Fall 2007CS 2251 Programming Tools Eclipse JUnit Testing make and ant.
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
Eclipse Begin at the Beginning. Where to Find it:
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.
Getting started with Eclipse By Alexander Butyaev.
ECLIPSE and UML Onur Demir
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.
Everything I Always Wanted to Know about Eclipse Harry Koehnemann Rocket Gang Many slides in this presentation can be found at
The Eclipse IDE Gareth Davies. Relevant Bio Professional Developer since 1994 Mostly Microsoft platform, using successive versions of Visual Studio Serious.
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.
Developing C/C++ applications with the Eclipse CDT David Gallardo.
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.
Eclipse Eclipse An IDE is an Integrated Development Environment Different IDEs meet different needs – BlueJ, DrJava are designed as teaching.
9/2/ CS171 -Math & Computer Science Department at Emory University.
Presented by IBM developer Works ibm.com/developerworks/ 2006 January – April © 2006 IBM Corporation. Making the most of The Eclipse debugger.
Eclipse. An IDE is an Integrated Development Environment Different IDEs meet different needs BlueJ, DrJava are designed as teaching tools Emphasis is.
Eclipse 24-Apr-17.
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.
Introduction to Common Java Development Tools (1) 1.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 4 Slide 1 Slide 1 What we'll cover here l Using the debugger: Starting the debugger Setting.
© 2002 IBM Corporation Transaction Processing Facility TPF Users Group Acapulco May 2004 © 2004 IBM Corporation Pete Nicholls IBM Toronto Lab TPF Toolkit.
Object Oriented Programming Criteria: P2 Date: 07/10/15 Name: Thomas Jazwinski.
TOOLS FOR DESIGN AND DEVELOPMENT ENVIRONMENTS. Case study - ECLIPSE Lecture notes 5.
Eclipse 27-Apr-17.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
Debugging using By: Samuel Ashby. What is debugging?  A bug is an error in either a program or the hardware itself.  Debugging is first locating and.
Java IDE Dwight Deugo Nesa Matic
Introduction to Algorithm. What is Algorithm? an algorithm is any well-defined computational procedure that takes some value, or set of values, as input.
Eclipse.
Chapter 2: The Visual Studio .NET Development Environment
Development with Eclipse
Module Road Map Refactoring Why Refactoring? Examples
Introduction to Eclipse
Goals Give you a feeling of what Eclipse is.
ATS Application Programming: Java Programming
Debugging Dwight Deugo
Ruby Tooling in NetBeans
IDE++ User study & Eclipse Tutorial
Using Visual Studio with C#
Important terms Black-box testing White-box testing Regression testing
Important terms Black-box testing White-box testing Regression testing
Debugging with Eclipse
Overview of Eclipse Lectures
DEBUGGING JAVA PROGRAMS USING ECLIPSE DEBUGGER
Introduction to Eclipse
Test-Driven Development
Debugging Dwight Deugo
Java IDE Dwight Deugo Nesa Matic Portions of the notes for this lecture include excerpts from.
Eclipse JUnit Testing make and ant
An Introduction to Eclipse
Code Composer Essentials 3.0
By Rajanikanth B Eclipse IDE Overview By Rajanikanth B
Test-Driven Development
Java Code Review with CheckStyle
Debugging with Eclipse
Presentation transcript:

Eclipse 20-Sep-18

About IDEs An IDE is an Interactive Development Environment Different IDEs meet different needs Some are teaching tools, such as BlueJ and DrJava Emphasis is on ease of use for beginners There is little to learn, so students can concentrate on learning Java Eclipse, JBuilder, NetBeans are designed as professional-level work tools Emphasis is on supporting professional programmers More to learn, but well worth it in the long run We will use Eclipse, but other professional IDEs are similar The following slides are taken from www.eclipse.org/eclipse/presentation/eclipse-slides.ppt

Workbench Terminology Menu bar Text editor Tool bar Perspective and Fast View bar Outline view Resource Navigator view [Contains animated elements] Bookmarks view Properties view Tasks view Message area Editor Status area Stacked views

Help Component Help is presented in a standard web browser

Java Development Tools JDT = Java development tools State of the art Java development environment Built atop Eclipse Platform Implemented as Eclipse plug-ins Using Eclipse Platform APIs and extension points Included in Eclipse Project releases Available as separately installable feature Part of Eclipse SDK drops

Java Perspective Java-centric view of files in Java projects Java elements meaningful for Java programmers Java project package class field method Java editor

Java Perspective Browse type hierarchies “Up” hierarchy to supertypes “Down” hierarchy to subtypes Type hierarchy Selected type’s members

Java Perspective Search for Java elements Declarations or references Including libraries and other projects Hits flagged in margin of editor All search results

Java Editor Hovering over identifier shows Javadoc spec [Contains animated elements]

Java Editor Method completion in Java editor List of plausible methods Doc for method [Contains animated elements]

Java Editor On-the-fly spell check catches errors early Click to see Quick fixes Preview Click to see fixes [Contains animated elements] Syntax and spell checking are done on-the-fly. Calls Java compiler to parse source code and resolve names in context. Developers refer to those wavy red lines as “the red sea” :-). Problem markers are appear in the left margin of editor. “Red X” instead of “light bulb” if no proposed corrections. Problem

Java Editor Code templates help with drudgery Statement template Preview [Contains animated elements]

Java Editor Java editor creates stub methods Method stub insertion for anonymous inner types [Contains animated elements] Method stub insertion for inherited methods

Java Editor Java editor helps programmers write good Java code Variable name suggestion JavaDoc code assist [Contains animated elements] Argument hints and proposed argument names

Java Editor Other features of Java editor include Local method history Code formatter Source code for binary libraries Built-in refactoring

Refactoring JDT has actions for refactoring Java code

Refactoring Refactoring actions rewrite source code Within a single Java source file Across multiple interrelated Java source files Refactoring actions preserve program semantics Does not alter what program does Just affects the way it does it Encourages exploratory programming Encourages higher code quality Makes it easier to rewrite poor code

Refactoring Full preview of all ensuing code changes Programmer can veto individual changes List of changes Screen shot shows Extract Method applied to the print statement in HelloWorld.main method. “before” vs. “after”

Refactoring Growing catalog of refactoring actions Organize imports Rename {field, method, class, package} Move {field, method, class} Extract method Extract local variable Inline local variable Reorder method parameters

Eclipse Java Compiler Eclipse Java compiler JCK-compliant Java compiler (selectable, now up to version 6) Helpful error messages Generates runnable code even in presence of errors Fully-automatic incremental recompilation High performance Scales to large projects Multiple other uses besides the obvious Syntax and spell checking Analyze structure inside Java source file Name resolution Content assist Refactoring Searches Scales to large projects, like Eclipse itself.

Eclipse Java Debugger Run or debug Java programs Local variables Threads and stack frames Editor with breakpoint marks Console I/O

Eclipse Java Debugger Run Java programs Debug Java programs In separate target JVM (user selectable) Console provides stdout, stdin, stderr Scrapbook pages for executing Java code snippets Debug Java programs Full source code debugging Any JPDA-compliant JVM Debugger features include Method and exception breakpoints Conditional breakpoints Watchpoints Step over, into, return; run to line Inspect and modify fields and local variables Evaluate snippets in context of method Hot swap (if target JVM supports)

The End