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.

Slides:



Advertisements
Similar presentations
Using T4Eclipse tool to Analyze Eclipse UI For t4eclipse version Ben Xu July 17,2010.
Advertisements

Extending Eclipse CDT for Remote Target Debugging Thomas Fletcher Director, Automotive Engineering Services QNX Software Systems.
Extending Eclipse Kai-Uwe Mätzel IBM OTI Labs Zurich
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.
Eclipse Architecture Dwight Deugo Nesa Matic
Introduction to Java Lab CS110A – Lab Section 004 Instructor: Duo Wei.
Eclipse Introduction Dwight Deugo Nesa Matic
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.
1 Eclipse Platform Plug-in developper Guide PDG HowTos.
Eclipse Begin at the Beginning. Where to Find it:
Views Dwight Deugo Nesa Matic
New Plug-in Template Wizard Present by Kun-Tse Wu.
1 Software Reuse in Eclipse Kellie-Ann Smith Norgye Yuanyuan Song Xiang Yin Jia Xu.
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.
Mobile Programming Lecture 1 Getting Started. Today's Agenda About the Eclipse IDE Hello, World! Project Android Project Structure Intro to Activities,
Duke University Program Design & Construction Course Application Development Tools Sherry Shavor
Developing Web Services with the Eclipse Web Tools Platform Boris Minkin.
TOOLS FOR DESIGN AND DEVELOPMENT ENVIRONMENTS. Case study - ECLIPSE Lecture notes 3.
Definition of the SDK for FIspace Augusto Morales & Hector Bedón UPM.
Android. The Eclipse IDE Installation Requirements: Eclipse Java Windows All must match (32-bit OR 64-bit) If you have a 64-bit OS & 32-bit browser,
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.
0 OCAP RI SDK July 1-2, Cable Television Laboratories, Inc All Rights Reserved. Proprietary/Confidential. 1 RI SDK Status Current State Released.
Graph Visualization Plug-in for Eclipse Gong Jun CCIS Northeastern Univ 10/2003 How To Finish your Project within Four Weeks.
Plug-in Development Environment. Session Outline Tools Installation Configuration New Project Basic Debugging Remote Debugging.
Extending the Eclipse Framework and Rich Client Platform Jeff Myers Languages for Lunch 10/13/2004.
Ontology Engineering and Plugin Development with the NeOn Toolkit Plug-in Development for the NeOn Toolkit June 1st, 2008 Michael Erdmann, Peter Haase,
Clement Allen, PhD Florida A&M University SUMMER 2006.
TOOLS FOR DESIGN AND DEVELOPMENT ENVIRONMENTS. Case study - ECLIPSE Lecture notes 1.
Aspect Oriented Programming Sumathie Sundaresan CS590 :: Summer 2007 June 30, 2007.
Introduction to Eclipse CSC 216 Lecture 3 Ed Gehringer Using (with permission) slides developed by— Dwight Deugo Nesa Matic
How to Run a Java Program CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington 1.
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.
Introduction to Eclipse. What is Eclipse? An Integrated Development Environment Provides many features to ease C++ programming (and others, e.g. C/Java)
CMSC 466 / 666 Yong Rao Feb. 11, 2004 Revised Mar. 15, 2004.
Plug-In Architecture Pattern. Problem The functionality of a system needs to be extended after the software is shipped The set of possible post-shipment.
A (very brief) intro to Eclipse Boyana Norris June 4, 2009.
DEV-8: OpenEdge® Architect – Extensibility & Third Party Integration Sunil Belgaonkar Principal Software Engineer Architect Phillip Magnay.
Eclipse 3.1 IDE Overview.
Eclipse Simple Profiler Ben Xu Mar 7,2011. About Eclipse simple profiler is a open source project to analyze your plug-ins/RCPs performance.
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.
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.
An EPICS IDE Using Eclipse Kenneth Evans, Jr. Presented at the EPICS Collaboration Meeting June 15, 2006 Argonne National Laboratory, Argonne, IL.
Eclipse Outlines: What is Eclipse? How to Install Eclipse? Eclipse Platform Eclipse Plug in Eclipse UML JUnit in Eclipse. References Latifa AlAbdulkarim.
Plug-In Architecture Pattern. Problem The functionality of a system needs to be extended after the software is shipped The set of possible post-shipment.
Java IDE Dwight Deugo Nesa Matic
INTRODUCTION TO ANDROID. Slide 2 Introduction I take a top-down approach to describing an application’s anatomy.
ECLIPSE RICH CLIENT PLATFORM Part 1 Introduction.
Guide To Develop Mobile Apps With Titanium. Agenda Overview Installation of Platform SDKs Pros of Appcelerator Titanium Cons of Appcelerator Titanium.
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
Getting Started ARCS Lab..
Architecture, Components, Configuration
Eclipse Database Plug-ins
Cordova & Cordova Plugin Installation and Management
Java IDE Dwight Deugo Nesa Matic Portions of the notes for this lecture include excerpts from.
An Introduction to Eclipse
Plug-In Architecture Pattern
Presentation transcript:

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 inside the platform workbench. »provides a set of platform extension contributions (views, editors, perspectives, etc.) that collectively streamline the process of developing plug-ins inside the workbench. »based on the platform and the Java development tooling (JDT).

3 Conecpts l PDE identifies plug-in projects in the workspace by the existence of the special plugin.xml manifest file under the project. »also associate a special PDE nature with these projects to be able to attach special PDE builders l Host and run-time workbench instances »host instance: the workbench that you use to develop your plug-in. »run-time instance: the wrokbench that yu use to test/run your plug-in. »contains the same set of plug-ins as host instance and the additional developed plug-in.

4 External vs. workspace plug-ins l Run-time workbench instance contains two types of plug- ins: those from the host and those from the workspace. »External plug-ins are those from the original host and are considered read-only. »Workspace plug-ins are those plug-ins under development in your host workbench. l plug-ins are treated differently by PDE because of their location. »Ex: opening the plug-in manifest of a workspace plug- in will launch an editor on that manifest file in the workspace. The same operation for an external plug- in will launch an editor on an external URL.

5 Configuring PDE l PDE is part of the platform SDK, but it may or may not be present in your particular installation. l run-time instance configuration: »set the run-time workbench instance path. –This is the path of the workbench installation that will be used to run and debug your plug-ins. –default is the same as that of host workbench. »set the workspace of your run-time platform. –it is important to use different workspaces for your host and run-time platform »select external plug-ins used by the run-time instance.(preference > PDE > target Platform)

6 Setting up the workbench l using the default workbench PDE perspective »(window > open perspective > PDE ) l two new views: »error log »plug-in registry.

7 Eclipse Plug-Ins developer guide Simple Plug-in Example

8 l Eclipse platform = a core runtime engine + a set of additional features that are installed as platform plug-ins. l Plug-ins contribute functionality to the platform by contributing to pre-defined extension points. l The workbench UI is contributed by one such plug-in. »When you start up the workbench, you are not starting up a single Java program. You are activating a platform runtime which can dynamically discover registered plug-ins and start them as needed.

9 Make your code a plug-in l Decide how your plug-in will be integrated with the platform. l Identify the extension points that you need to contribute in order to integrate your plug-in. l Implement these extensions according to the specification for the extension points. l Provide a manifest file (plugin.xml) that describes »the extensions you are providing and »the packaging of your code.

10 The HelloWorld plug-in public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World"); } l There are many ways to make this a plug-in. »Extend this plug-in as a view now.

11 Hello world view l extend org.eclipse.ui.part.ViewPart [which]implements l org.eclipse.ui.IViewPart l Standard Views often display some information about an object that the user has selected or is navigating. »Views update their contents based on actions that occur in the workbench. In our case, we are just saying hello, so our view is quite simple.

12 Using the tools to write our plug-in l can use any editors/tools to build your plug-in, but use Eclipse Java IDE in this example. l procedure to start: 1.create a project to do your work (use the new project wizard) –use org.eclipse.examples.helloworld as the name and id of your plug-in. –choose Create a blank plug-in project on the code generators page. 2.Create a package org.eclipse.examples.helloworld underneath the src directory for the project. 3.Create a new class called HelloWorldView in this package.

13 Writing the code package org.eclipse.examples.helloworld; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Label; import org.eclipse.swt.SWT; import org.eclipse.ui.part.ViewPart; public class HelloWorldView extends ViewPart { Label label; public HelloWorldView() { } public void createPartControl(Composite parent) { label = new Label(parent, SWT.WRAP); label.setText("Hello World"); }

14 public void setFocus() { /* set focus to my widget. For a label, this doesn't make much sense, but for more complex sets of widgets, you would decide which one gets the focus. */ }