Views Dwight Deugo Nesa Matic

Slides:



Advertisements
Similar presentations
Extending Eclipse Kai-Uwe Mätzel IBM OTI Labs Zurich
Advertisements

Developing an Eclipse Plug-in David Gallardo. Platform Runtime Workspace Help Team Workbench JFace SWT Eclipse Project Java Development Tools (JDT) Their.
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.
Goals Give you a feeling of what Eclipse is.
Eclipse Architecture Dwight Deugo Nesa Matic
Java Integrated Development Environments: ECLIPSE Part1 Installation.
Coursework 2: getting started (4) – using PhoneGap to build mobile applications (optional) Chris Greenhalgh G54UBI /
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
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
Perspectives Dwight Deugo Nesa Matic
Eclipse Begin at the Beginning. Where to Find it:
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.
New Plug-in Template Wizard Present by Kun-Tse Wu.
1 of 5 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2006 Microsoft Corporation.
15-Jul-15 Starting Eclipse Just the basics. Getting Eclipse If you Google for “Eclipse”: The first hit is the home page, The second.
ANDROID PROGRAMMING MODULE 1 – GETTING STARTED
CRSX plug-in development. Prerequisites Software and Libraries Eclipse RCP (3.5 or higher) –Go –Select.
Software Development COMP220/COMP285 Sebastian Coope Eclipse and Java These slides are mainly based on “Java Development with Eclipse” – D.Gallardo et.
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.
JSP and Servlets Lecture notes by Theodoros Anagnostopoulos.
Renesas Technology America Inc. 1 M16C/Tiny SKP Tutorial 2 Creating A New Project Using HEW4.
Google Maps Android API v2 吳俊興 國立高雄大學 資訊工程學系 CSF645 – Mobile Computing 行動計算
Eclipse Overview Introduction to Web Programming Kirkwood Continuing Education Fred McClurg © Copyright 2015, Fred McClurg, All Rights Reserved.
Duke University Program Design & Construction Course Application Development Tools Sherry Shavor
1 Development Environments AUBG, COS dept Lecture Title: Dev Env: Eclipse (Extract from Syllabus) Reference:
LLRP GUI Client User Guide
Introduction to Eclipse Plug-in Development. Who am I? Scott Kellicker Java, C++, JNI, Eclipse.
Workbench Overview Dwight Deugo Nesa Matic
Plug-in Development Environment. Session Outline Tools Installation Configuration New Project Basic Debugging Remote Debugging.
Ontology Engineering and Plugin Development with the NeOn Toolkit Plug-in Development for the NeOn Toolkit June 1st, 2008 Michael Erdmann, Peter Haase,
Renesas Technology America Inc. 1 SKP8CMINI Tutorial 2 Creating A New Project Using HEW.
Introduction to Eclipse CSC 216 Lecture 3 Ed Gehringer Using (with permission) slides developed by— Dwight Deugo Nesa Matic
Debugging Dwight Deugo Nesa Matic
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.
Introduction to Eclipse. What is Eclipse? An Integrated Development Environment Provides many features to ease C++ programming (and others, e.g. C/Java)
9/2/ CS171 -Math & Computer Science Department at Emory University.
JUnit Dwight Deugo Nesa Matic
Liferay Installation Prepared by: Do Xuan Hai 8 August 2011.
JUnit Dwight Deugo Nesa Matic
Javadoc Dwight Deugo Nesa Matic
SilkTest 2008 R2 SP1: Silk4J Introduction. ConfidentialCopyright © 2008 Borland Software Corporation. 2 What is Silk4J? Silk4J enables you to create functional.
Tool Install How to download & install Java 6 & Eclipse updated version based on Dr. G. L. Ray’s slides.
Classes Dwight Deugo Nesa Matic
Surya Bahadur Kathayat Outline  Ramses  Installing Ramses  Ramses Perspective (Views and Editors)  Importing/Exporting Example.
Renesas Technology America Inc. 1 SKP8CMINI Tutorial 2 Creating A New Project Using HEW.
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.
4 Copyright © 2004, Oracle. All rights reserved. Creating a Basic Form Module.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files 8/10/ :35 PM.
New Project Model UI Primary Author: Mikhail Sennikovsky Major contributors: Mikhail Voronin, Oleg Krasilnikov, Leo Treggiari Intel Corporation September,
An EPICS IDE Using Eclipse Kenneth Evans, Jr. Presented at the EPICS Collaboration Meeting June 15, 2006 Argonne National Laboratory, Argonne, IL.
Time to apply stuff… Faculty of Mathematics and Physics Charles University in Prague 5 th October 2015 Workshop 1 – Java Wrestling.
Using Ant in Eclipse Dwight Deugo Nesa Matic
Java IDE Dwight Deugo Nesa Matic
C Copyright © 2009, Oracle. All rights reserved. Using SQL Developer.
Eclipse.
Obtaining the Required Tools
Goals Give you a feeling of what Eclipse is.
ATS Application Programming: Java Programming
COSC-4840 Software Engineering
Introduction to Eclipse
Software Setup & Validation
Java IDE Dwight Deugo Nesa Matic Portions of the notes for this lecture include excerpts from.
Presentation transcript:

Views Dwight Deugo Nesa Matic

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

3 © , Espirity Inc. Module Road Map 1.Adding Views

4 © , Espirity Inc. Module Road Map 1.Adding Views  Plug-in development environment (PDE)  Developing plug-in with new views  Using PDE for plug-in development  Plug-in editor  Installing and running plug-in

5 © , Espirity Inc. Plug-in Development Environment (PDE) A tool that designed to help developing platform plug-ins inside the platform workbench  It ensures that the rules for creating new plug-ins are followed so that they are correctly incorporated by the platform. Provides set of platform extension contributions  Collectively these contributions streamline process of plug-in development PDE is platform based  Relies on the JDT

6 © , Espirity Inc. PDE and Projects Plug-ins are managed by PDE inside projects  Each project represents one plug-in Each project holds:  Holders and files that define the plug-in  The ways plug-in will interact with the platform Plug-ins are in the workspace  They show up in the resource navigator and other views that show workspace resources

7 © , Espirity Inc. PDE Projects Special kind of projects that contain:  Plug-in code  Other plug-in details such as manifest file  Set of features for developing plug-ins Some of the features include:  Computing and managing Java class path for plug-ins and fragments under development  Manifest syntax check It is possible to convert non-plug-in projects into plug-in projects

8 © , Espirity Inc. Converting Java Projects To activate wizard, use the right mouse button context menu in the Package Explorer View PDE Tools -> Convert Projects to Plugi-n Project… Select the project for converting and click Finish

9 © , Espirity Inc. Workbench Host vs. Runtime There are two different instances of Workbench that can run:  Host, the instance used for developing plug-ins  Run-time, the instance used for running, i.e. testing developed plug-ins Runtime Workbench instance is launched from the host instance  It will contain all plug-ins of the host instance as well as the ones just developed in the host instance  It is launched by choosing: Window  New Window

10 © , Espirity Inc. External vs. Workspace Plug-ins External plug-ins arrived with the basic platform installation  Simply referenced from their original location without modification  Considered read-only Workspace plug-ins are plug-ins under development in the host workbench  Can be added, deleted and modified in any way

11 © , Espirity Inc. Configuring PDE PDE is installed as part of the default platform installation Once installed runtime Workbench instance path must be defined  The path of the Workbench installation that will be used to run and debug plug-ins  The default path is the host Workbench instance  There may be need to differentiate these paths Different workspaces should be used for host and runtime Workbench instances

12 © , Espirity Inc. Runtime Workspace Location Set up by selecting: Window  Preferences  Plug-in Development  Target Platform

13 © , Espirity Inc. Views and Editors as Plug-ins Platform allows creation of new views and editors  They can be created as plug-ins and added to the Workbench This allows further customization of the Workbench  Allows for adding views and editors with special functionality  Added plug-ins can be visible only for certain perspectives

14 © , Espirity Inc. Creating Plug-in Project To create new plug-in project select: File  New  Plug-in Development  Plug-in Project Click Next, specify project’s name and click Next again

15 © , Espirity Inc. Plug-in Content Specify:  Plug-in id (will be stored in the plug-in manifest)  Plug-in name  Version  Provider name  Class name  Optional Click Next

16 © , Espirity Inc. Plug-in Templates PDE predefines plug-in templates that can be used during plug-in development  If templates are used wizards will be used for creating on the plug-in  Tool will populate the manifest file based on options chosen through the wizards  Otherwise details must be specified in the the manifest file  Extension points, required plug-ins, etc.

17 © , Espirity Inc. Plug-in with a View Extension point will be automatically added by the tool to the manifest file Click Next

18 © , Espirity Inc. View Settings Specifying View details:  Package name  Class name  Category id  Category name  Viewer type Click Next

19 © , Espirity Inc. View Features Select list of features to be added to the view  By default all of them are selected Click Finish

20 © , Espirity Inc. Plug-in Development Perspective Defines views and editors that are mostly used when developing plug-ins When using PDE wizards, after creating plug-in you will be prompt if wanted to switch to this perspective  Also, all required plug-ins will be installed at this time if they are not already there

21 © , Espirity Inc. Generated View Class public class SampleView extends ViewPart { private TableViewer viewer; … class ViewContentProvider implements IStructuredContentProvider { … } class ViewLabelProvider extends LabelProvider implements ITableLabelProvider { … } public SampleView() {} public void createPartControl(Composite parent) { viewer = new TableViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL); viewer.setContentProvider(new ViewContentProvider()); viewer.setLabelProvider(new ViewLabelProvider()); viewer.setInput(getViewSite()); … } private void showMessage(String message) { MessageDialog.openInformation( viewer.getControl().getShell(), "Sample View", message); } public void setFocus() { viewer.getControl().setFocus(); }}

22 © , Espirity Inc. Plug-in Editor Double-click on the plug-in.xml opens the editor Plug-in details can be changed in the editor Overview page displays basic plug-in information

23 © , Espirity Inc. Dependencies Page Displays dependant plug-ins  Created by tools when the plug-in type is chosen  New dependences can be added

24 © , Espirity Inc. Runtime Page Displays runtime information such as plug-in classpath Populated by the tools based on inputs from wizards Additional libraries can be added to the classpath

25 © , Espirity Inc. Extensions Page Displays plug-in extensions  Created by the tool based on the plug-in type  Extensions can be added

26 © , Espirity Inc. Extension Points Page Displays plug-in extension points  There are none in our example

27 © , Espirity Inc. MANIFEST.MF Page OSGI bundle information for the plug-in  Version  Symbolic name (ID)  Name  Required bundles

28 © , Espirity Inc. plugin.xml Page Editor uses round-trip for changing the plug- in details:  Changes to other pages in editor will change source  Changes in source will change content of other editor pages

29 © , Espirity Inc. Build and build.properties Pages Interface to the build.properties file: source.. = src/ output.. = bin/ bin.includes = plugin.xml,\ META-INF/,\.,\ icons/

30 © , Espirity Inc. Running the Plug-in From Workbench From the Workbench Run  Run As  Eclipse Application  This will open a new Workbench To make view plug-in visible select: Window  Show View  Other… Select the view plug-in and click OK

31 © , Espirity Inc. … Running the Plug-in From Scratch Restart the Workbench  This causes newly defined plug-in to be picked up by the system and stored in the plug- in registry  Exit the platform  Start it again To make view plug-in visible select: Window  Show View  Other… Select the view plug-in and click OK

32 © , Espirity Inc. Showing the View The view shows up in the Workbench with its sample content  The sample content was generated by the PDE  The content should be changed to implement specific functionality that view should provide Sample Content

33 © , Espirity Inc. Getting Ready to Export Plug-in Check the build.properties file in your project for the following content: source.. = src/ output.. = bin/ bin.includes = plugin.xml,\ META-INF/,\.,\ icons/

34 © , Espirity Inc. Export Deployable Plug-ins and Fragments…

35 © , Espirity Inc. …Export Deployable Plug-ins and Fragments Export the code as a Archive file The plug-in will have a zip extension Your plug-in is in the zip file and has the jar extension

36 © , Espirity Inc. Plug-in ZIP and JAR files The Plug-in ZIP file has:  Your Plug-in’s JAR file Unzip contents into plugins directory

37 © , Espirity Inc. Installing Plug-in Make sure the new plug-in.jar file is in Eclipse’s plugin directory. Restart Eclipse Warning  Try your new plug-in in a fresh/non- development Eclipse install  You don’t want to have problems in your development install

38 © , Espirity Inc. Summary You have learned:  How to use PDE to develop plug-ins  How to use the plug-in editor  How to develop a plug-in with a view  How to install and run a plug-in

39 © , Espirity Inc. Labs! Lab: Adding Views to the Workbench