20041013 1 Extending the Eclipse Framework and Rich Client Platform Jeff Myers Languages for Lunch 10/13/2004.

Slides:



Advertisements
Similar presentations
Extending Eclipse CDT for Remote Target Debugging Thomas Fletcher Director, Automotive Engineering Services QNX Software Systems.
Advertisements

Extending Eclipse Kai-Uwe Mätzel IBM OTI Labs Zurich
Introduction to Eclipse plugin development for CSU 670 course project, Selector language (Xaspect) editor plugin implementation.
Developing an Eclipse Plug-in David Gallardo. Platform Runtime Workspace Help Team Workbench JFace SWT Eclipse Project Java Development Tools (JDT) Their.
Goals Give you a feeling of what Eclipse is.
1 GWT Google Web Toolkit Build AJAX apps in the Java language
On the Eclipse Project Mateusz Srebrny 16 February 2004 Warszawa Slides adapted from
Eclipse Architecture Dwight Deugo Nesa Matic
Eclipse Introduction 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.
Views Dwight Deugo Nesa Matic
1 Plug-in Development Environment (PDE) Guide. 2 Introduction to PDE l What is PDE: »a tool designed to help you develop platform plug-ins while working.
Chapter 2: Exploring the Desktop The Complete Guide to Linux System Administration.
ANDROID PROGRAMMING MODULE 1 – GETTING STARTED
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.
© 2006 by IBM 1 How to use Eclipse to Build Rich Internet Applications With PHP and AJAX Phil Berkland IBM Software Group Emerging.
1 eclipse the open platform for tool integration.
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
1 Introduction to Web Development. Web Basics The Web consists of computers on the Internet connected to each other in a specific way Used in all levels.
[________________________] Eclipse project briefing materials. Copyright (c) 2002 International Business Machines Corp. All rights reserved.
© 2005 by IBM; made available under the EPL v1.0 | March 1, 2005 Tim deBoer Gorkem Ercan Extend WTP Server Tools for your.
ECLIPSE and UML Onur Demir
Duke University Program Design & Construction Course Application Development Tools Sherry Shavor
Tutorial 1 Getting Started with Adobe Dreamweaver CS3
TOOLS FOR DESIGN AND DEVELOPMENT ENVIRONMENTS. Case study - ECLIPSE Lecture notes 3.
Definition of the SDK for FIspace Augusto Morales & Hector Bedón UPM.
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
Everything I Always Wanted to Know about Eclipse Harry Koehnemann Rocket Gang Many slides in this presentation can be found at
Introduction to Eclipse Plug-in Development. Who am I? Scott Kellicker Java, C++, JNI, Eclipse.
Android for Java Developers Denver Java Users Group Jan 11, Mike
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.
Ontology Engineering and Plugin Development with the NeOn Toolkit Plug-in Development for the NeOn Toolkit June 1st, 2008 Michael Erdmann, Peter Haase,
Contents 1.Introduction, architecture 2.Live demonstration 3.Extensibility.
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.
Jan Hatje, DESY CSS ITER March 2009: Technology and Interfaces XFEL The European X-Ray Laser Project X-Ray Free-Electron Laser 1 CSS – Control.
[________________________] Eclipse project briefing materials. Copyright (c) 2002, 2003 IBM Corporation and others. All rights reserved. This.
1 Geospatial and Business Intelligence Jean-Sébastien Turcotte Executive VP San Francisco - April 2007 Streamlining web mapping applications.
CMSC 466 / 666 Yong Rao Feb. 11, 2004 Revised Mar. 15, 2004.
A (very brief) intro to Eclipse Boyana Norris June 4, 2009.
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.
Australian Nuclear Science & Technology Organisation GumTree A Java Based GUI Framework for Beamline Experiments Tony Lam (ANSTO) Andy Götz (ESRF) Ferdi.
Eclipse 24-Apr-17.
CSE S. Tanimoto Java Introduction 1 Java A Programming Language for Web-based Computing with Graphics.
Copyright © by Shayne R Flint Simplified Web Application Development Shayne R Flint Department of Computer Science Australian National University.
Eclipse. An IDE is an Integrated Development Environment Different IDEs meet different needs BlueJ, DrJava are designed as teaching tools Emphasis is.
Eclipse Rich Client Platform Discover the Anatomy of an Application Based On Eclipse Wayne Beaton Evangelist, Eclipse Foundation.
© 2008 by Shawn Spiars; made available under the EPL v1.0 | March 17, 2008 Case Study – Phurnace Software and RCP Shawn Spiars Lead UI Developer Phurnace.
Plug-in Architectures Presented by Truc Nguyen. What’s a plug-in? “a type of program that tightly integrates with a larger application to add a special.
© 2002 IBM Corporation Transaction Processing Facility TPF Users Group Acapulco May 2004 © 2004 IBM Corporation Pete Nicholls IBM Toronto Lab TPF Toolkit.
Jan Hatje, DESY CSS GSI Feb. 2009: Technology and Interfaces XFEL The European X-Ray Laser Project X-Ray Free-Electron Laser 1 CSS – Control.
® IBM Software Group © 2007 IBM Corporation Module 1: Getting Started with Rational Software Architect Essentials of Modeling with IBM Rational Software.
Introduction 1 Lars Vogel 4/22/2009.  Who am I?  Eclipse as a platform  What is Eclipse RCP?  Extension Points / Extensions  Equinox  SWT & JFace.
Developing GUIs With the Eclipse Visual Editor, SWT Edition David Gallardo.
© 2009 by IBM; made available under the EPL v1.0 | Feb 1, 2009 Seneca 2009 Tim deBoer Gorkem Ercan Extend WTP Server Tools.
ECLIPSE RICH CLIENT PLATFORM Part 1 Introduction.
Progress Apama Fundamentals
Eclipse.
Goals Give you a feeling of what Eclipse is.
ATS Application Programming: Java Programming
A (very brief) intro to Eclipse
COSC-4840 Software Engineering
Architecture, Components, Configuration
An Introduction to Eclipse
Presentation transcript:

Extending the Eclipse Framework and Rich Client Platform Jeff Myers Languages for Lunch 10/13/2004

Follow-up on Last Week Eclipse is now installed on the CS machines From your home directory, run: /usr/local/eclipse-3.0.1/eclipse/eclipse Installed Plug-ins: C/C++ Development Tools, Visual Editor for Java, Graphical Editor Framework, Eclipse Modeling Framework

Presentation Notes Based on the Eclipse Project Presentation And RCP articles in Dr. Dobb's, the RCP FAQ, and the RCP Tutorials

Eclipse Project

Eclipse Project Aims ■ Provide open platform for application development tools –Run on a wide range of operating systems –GUI and non-GUI ■ Language-neutral –Permit unrestricted content types –HTML, Java, C, JSP, EJB, XML, GIF, … ■ Facilitate seamless tool integration –At UI and deeper –Add new tools to existing installed products ■ Attract community of tool developers –Including independent software vendors (ISVs) –Capitalize on popularity of Java for writing tools

Platform Runtime Workspace Help Team Workbench JFace SWT Eclipse Project Java Development Tools (JDT) Their Tool Your Tool Another Tool Eclipse Overview Plug-in Developmen t Environment (PDE) Eclipse Platform Debug

Eclipse Plug-in Architecture ■ Plug-in - smallest unit of Eclipse function –Big example: HTML editor –Small example: Action to create zip files ■ Extension point - named entity for collecting “contributions” –Example: extension point for workbench preference UI ■ Extension - a contribution –Example: specific HTML editor preferences

Eclipse Plug-in Architecture ■ Each plug-in –Contributes to 1 or more extension points –Optionally declares new extension points –Depends on a set of other plug-ins –Contains Java code libraries and other files –May export Java-based APIs for downstream plug-ins –Lives in its own plug-in subdirectory ■ Details spelled out in the plug-in manifest –Manifest declares contributions –Code implements contributions and provides API –plugin.xml file in root of plug-in subdirectory

Plug-in Manifest <plugin id = “com.example.tool" name = “Example Plug-in Tool" class = "com.example.tool.ToolPlugin"> <page id = "com.example.tool.preferences" icon = "icons/knob.gif" title = “Tool Knobs" class = "com.example.tool.ToolPreferenceWizard“/> Declare contribution this plug-in makes Declare new extension point open to contributions from other plug-ins Location of plug-in’s code Other plug-ins needed Plug-in identification plugin.xml

Eclipse Plug-in Architecture ■ Plug-in A –Declares extension point P –Declares interface I to go with P ■ Plug-in B –Implements interface I with its own class C –Contributes class C to extension point P ■ Plug-in A instantiates C and calls its I methods plug-in A plug-in B class C interface I extension point P extensio n ■ Typical arrangement contributes creates, calls implements

Eclipse Platform Architecture ■ Eclipse Platform Runtime is micro-kernel –All functionality supplied by plug-ins ■ Eclipse Platform Runtime handles start up –Discovers plug-ins installed on disk –Matches up extensions with extension points –Builds global plug-in registry –Caches registry on disk for next time

Plug-in Activation ■ Each plug-in gets its own Java class loader –Delegates to required plug-ins –Restricts class visibility to exported APIs ■ Contributions processed without plug-in activation –Example: Menu constructed from manifest info for contributed items ■ Plug-ins are activated only as needed –Example: Plug-in activated only when user selects its menu item –Scalable for large base of installed plug-ins –Helps avoid long start up times

Plug-in Fragments ■ Plug-in fragments holds some of plug-in’s files –Separately installable ■ Each fragment has separate subdirectory –Separate manifest file ■ Logical plug-in = Base plug-in + fragments ■ Plug-in fragments used for –Isolation of OS dependencies –Internalization – fragments hold translations

Plug-in Install ■ Features group plug-ins into installable chunks –Feature manifest file ■ Plug-ins and features bear version identifiers –major. minor. service –Multiple versions may co-exist on disk ■ Features downloadable from web site –Using Eclipse Platform update manager –Obtain and install new plug-ins –Obtain and install updates to existing plug-ins

Plug-in Architecture - Summary ■ All functionality provided by plug-ins –Includes all aspects of Eclipse Platform itself ■ Communication via extension points –Contributing does not require plug-in activation ■ Packaged into separately installable features –Downloadable Eclipse has open, extensible architecture based on plug-ins

Eclipse Platform ■ Eclipse Platform is the common base ■ Consists of several key components Platform Runtime Eclipse Platform Workspace Workbench SWTJFace TeamHelp Debu g Ant “Core” “UI”

Workbench Component ■ SWT – generic low-level graphics and widget set ■ JFace – UI frameworks for common UI tasks ■ Workbench – UI personality of Eclipse Platform Workbench SWTJFace

SWT ■ SWT = Standard Widget Toolkit ■ Generic graphics and GUI widget set –buttons, lists, text, menus, trees, styled text... ■ Simple ■ Small ■ Fast ■ OS-independent API ■ Uses native widgets where available ■ Emulates widgets where unavailable

Why SWT? ■ Consensus: hard to produce professional looking shrink-wrapped products using Swing and AWT ■ SWT provides –Tight integration with native window system –Authentic native look and feel –Good performance –Good portability –Good base for robust GUIs ■ The proof of the pudding is in the eating…

Why SWT? ■ Eclipse Platform on Windows XP

Why SWT? ■ Eclipse Platform on Windows XP (skinned)

Why SWT? ■ Eclipse Platform on Linux - GTK 2.0

Why SWT? ■ Eclipse Platform on Linux - Motif

Why SWT? ■ Eclipse Platform on Mac OS X - Carbon

Sample SWT Application Small example of SWT code

JFace ■ JFace is set of UI frameworks for common UI tasks ■ Designed to be used in conjunction with SWT ■ Classes for handling common UI tasks ■ API and implementation are window-system independent

JFace APIs ■ Image and font registries ■ Dialog, preference, and wizard frameworks ■ Structured viewers –Model-aware adapters for SWT tree, table, list widgets ■ Text infrastructure –Document model for SWT styled text widget –Coloring, formatting, partitioning, completion ■ Actions –Location-independent user commands –Contribute action to menu, tool bar, or button

Workbench Component ■ Workbench is UI personality of Eclipse Platform ■ UI paradigm centered around –Editors –Views –Perspectives

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

Editors ■ Editors appear in workbench editor area ■ Contribute actions to workbench menu and tool bars ■ Open, edit, save, close lifecycle ■ Open editors are stacked ■ Extension point for contributing new types of editors ■ Example: JDT provides Java source file editor ■ Eclipse Platform includes simple text file editor ■ Windows only: embed any OLE document as editor ■ Extensive text editor API and framework

Views ■ Views provide information on some object ■ Views augment editors –Example: Outline view summarizes content ■ Views augment other views –Example: Properties view describes selection ■ Extension point for new types of views ■ Eclipse Platform includes many standard views –Resource Navigator, Outline, Properties, Tasks, Bookmarks, Search, … ■ View API and framework –Views can be implemented with JFace viewers

Perspectives ■ Perspectives are arrangements of views and editors ■ Different perspectives suited for different user tasks ■ Users can quickly switch between perspectives ■ Task orientation limits visible views, actions –Scales to large numbers of installed tools ■ Perspectives control –View visibility –View and editor layout –Action visibility ■ Extension point for new perspectives ■ Eclipse Platform includes standard perspectives –Resource, Debug, … ■ Perspective API

Other Workbench Features ■ Tools may also –Add global actions –Add actions to existing views and editors –Add views, action sets to existing perspectives ■ Eclipse Platform is accessible (Section 508) Section 508Section 508 ■ Accessibility mechanisms available to all plug-ins

Workbench Responsibilities ■ Eclipse Platform manages windows and perspectives ■ Eclipse Platform creates menu and tool bars –Labels and icons listed in plug-in manifest –Contributing plug-ins not activated ■ Eclipse Platform creates views and editors –Instantiated only as needed ■ Scalable to large numbers of installed tools

Help Component ■ Help is presented in a standard web browser

Help Component ■ Help books are HTML webs ■ Extension points for contributing –entire books –sections to existing books –F1-help pop ups ■ Eclipse Platform contributes –“Workbench User Guide” –“Platform Plug-in Developer Guide” (APIs) –F1-help for views, editors, dialogs, … ■ JDT and PDE contribute their own help ■ Help mechanisms available to all plug-ins ■ Help search engine based on Apache Lucene Apache LuceneApache Lucene ■ Headless help server based on Apache Tomcat Apache TomcatApache Tomcat

Eclipse Platform - Summary ■ Eclipse Platform is the nucleus of IDE products ■ Plug-ins, extension points, extensions –Open, extensible architecture ■ Workspace, projects, files, folders –Common place to organize & store development artifacts ■ Workbench, editors, views, perspectives –Common user presentation and UI paradigm ■ Key building blocks and facilities –Help, team support, internationalization, … Eclipse is a universal platform for integrating development tools

Plug-in Development Environment ■ PDE = Plug-in development environment ■ Specialized tools for developing Eclipse plug-ins ■ Built atop Eclipse Platform and JDT –Implemented as Eclipse plug-ins –Using Eclipse Platform and JDT APIs and extension points ■ Included in Eclipse Project releases –Separately installable feature –Part of Eclipse SDK drops

PDE Goals ■ Goal: To make it easier to develop Eclipse plug-ins ■ Goal: Support self-hosted Eclipse development

PDE ■ PDE templates for creating simple plug-in projects

PDE ■ Specialized PDE editor for plug-in manifest files

PDE ■ PDE runs and debugs another Eclipse workbench 1. Workbench running PDE (host) 2. Run-time workbench (target)

PDE - Summary ■ PDE makes it easier to develop Eclipse plug-ins ■ PDE also generates Ant build scripts –Compile and create deployed form of plug-in PDE is basis for self-hosted Eclipse development

Example Plug-In Short Hello World example Plug-in

Rich Client Platform ■ Eclipse Platform design could be used as a base for most any client application. ■ Rich Client Platform describes the minimal set of plug-ins from Eclipse needed to build a rich client application –Base: Eclipse RuntimeEclipse Runtime SWTSWT JFaceJFace WorkbenchWorkbench –Optional HelpHelp Update MangerUpdate Manger TextText Other Eclipse functionsOther Eclipse functions

Benefits of Using RCP ■ Clear, consistent, cohesive architecture ■ Development and deployment on all major desktop platforms ■ Have a “snappy” UI while maintaining the platform's native look- and-feel ■ Large set of widgets and extended features (progress meters, tree views, etc) ■ Extensive text processing capability including editing, styling, content completion, formatting, searching and hover help ■ Support platform- specific features (web browser, ActiveX, OpenGL) ■ Product branding ■ Integrated help system ■ Manage user configuration and preferences ■ Support remote discovery and installation of application updates ■ Support internationalization ■ Flexibility of adding features for new functionality

Benefits for Using the Eclipse Framework in Computer Science and Software Engineering ■ Base platform for projects / independent studies / thesis work –Research in languages, compilers, object oriented frameworks ■ Base platform for large scale research projects – Extensibility framework allows continuous development with many developers over a long period of time ■ RCP as platform for Software Engineering projects