Download E-books Eclipse Development using the Graphical Editing Framework and the Eclipse Modeling Framework PDF

By Anna Gerber, Bill Moore, David Dean, Gunnar Wagenknecht, Philippe Vanderheyden

Eclipse improvement utilizing the Graphical enhancing Framework and the Eclipse Modelling Framework is written for builders who use the Eclipse SDK to enhance plug-in code. This IBM Redbooks ebook is meant for a technical readership and for builders who have already got strong wisdom and event in Eclipse plug-in development.

In this ebook, we learn frameworks which are built through the Eclipse instruments undertaking to be used with the Eclipse Platform: the Graphical modifying Framework (GEF), and the Eclipse Modeling Framework (EMF). We disguise either the Graphical modifying Framework and the Eclipse Modeling Framework, yet those frameworks can be utilized individually, and there's no dependency among them.

This e-book offers a excessive point creation to those frameworks in order that Eclipse plug-in builders can give some thought to no matter if the frameworks might be valuable for the necessities in their specific improvement setting. subsequent, counsel and strategies are supplied for writing code that makes use of GEF and EMF. additionally, an in depth instance is built to demonstrate a GEF editor that makes use of an EMF version.

Show description

Read or Download Eclipse Development using the Graphical Editing Framework and the Eclipse Modeling Framework PDF

Similar Computers books

Digital Design and Computer Architecture, Second Edition

Electronic layout and computing device structure takes a special and glossy method of electronic layout. starting with electronic good judgment gates and progressing to the layout of combinational and sequential circuits, Harris and Harris use those primary development blocks because the foundation for what follows: the layout of an exact MIPS processor.

The Linux Programmer's Toolbox

Grasp the Linux instruments that may Make You a extra effective, powerful Programmer The Linux Programmer's Toolbox is helping you faucet into the giant selection of open resource instruments to be had for GNU/Linux. writer John Fusco systematically describes the main priceless instruments on hand on so much GNU/Linux distributions utilizing concise examples that you should simply regulate to satisfy your wishes.

Algorithms in C++, Parts 1-4: Fundamentals, Data Structure, Sorting, Searching, Third Edition

Robert Sedgewick has completely rewritten and considerably accelerated and up to date his renowned paintings to supply present and finished insurance of significant algorithms and knowledge constructions. Christopher Van Wyk and Sedgewick have built new C++ implementations that either exhibit the tools in a concise and direct demeanour, and in addition supply programmers with the sensible ability to check them on genuine functions.

Introduction to Machine Learning (Adaptive Computation and Machine Learning series)

The objective of laptop studying is to application desktops to take advantage of instance information or prior event to unravel a given challenge. Many profitable functions of computing device studying already exist, together with structures that examine earlier revenues information to foretell client habit, optimize robotic habit in order that a role should be accomplished utilizing minimal assets, and extract wisdom from bioinformatics facts.

Additional resources for Eclipse Development using the Graphical Editing Framework and the Eclipse Modeling Framework

Show sample text content

AddSelectionListener( getSelectionListener()); } /* (non-Javadoc) * @see org. eclipse. ui. IWorkbenchPart#dispose() */ public void dispose() { // get rid of CommandStackListener getCommandStack(). removeCommandStackListener(getCommandStackListener()); // get rid of choice listener bankruptcy three. creation to GEF 127 getSite() . getWorkbenchWindow() . getSelectionService() . removeSelectionListener( getSelectionListener()); / disposy the ActionRegistry (will dispose all activities) getActionRegistry(). dispose(); // vital: regularly name large implementation of dispose great. dispose(); } /* (non-Javadoc) * @see org. eclipse. ui. half. WorkbenchPart#firePropertyChange(int) */ safe void firePropertyChange(int propertyId) { large. firePropertyChange(propertyId); updateActions(editorActionIDs); } Now, while all of the infrastructure is prepared, we will create and upload our activities as proven in instance 3-16. instance 3-16 including activities to the editor /** * Initializes the editor. * @see EditorPart#init */ public void init(IEditorSite web site, IEditorInput enter) throws PartInitException { // shop website and enter setSite(site); setInput(input); // upload CommandStackListener getCommandStack(). addCommandStackListener(getCommandStackListener()); // upload choice swap listener getSite() . getWorkbenchWindow() . getSelectionService() . addSelectionListener( getSelectionListener()); // initialize activities 128 Eclipse improvement utilizing the Graphical enhancing Framework and the Eclipse Modeling Framework createActions(); } /** * Creates activities and registers them to the ActionRegistry. */ secure void createActions() { addStackAction(new UndoAction(this)); addStackAction(new RedoAction(this)); addEditPartAction(new DeleteAction((IWorkbenchPart) this)); addEditorAction(new SaveAction(this)); addEditorAction(new PrintAction(this)); } three. four. eight Adapting to the homes view EditParts are liable for supplying IPropertySource adapters for the homes view, yet this isn't mentioned the following. The Graphical modifying Framework presents an answer to hide differences happened within the homes view into the CommandStack. this permits the prospect to undo and redo alterations. To let this, the editor needs to carry its personal IPropertySheetPage. This IPropertySheetPage is a default PropertySheetPage custom-made with an undoable root access supplied through GEF. See instance 3-17. instance 3-17 Making the houses view undoable /* (non-Javadoc) * @see org. eclipse. center. runtime. IAdaptable#getAdapter(java. lang. classification) */ public item getAdapter(Class adapter) { // we have to deal with universal GEF components we created if (adapter == GraphicalViewer. classification || adapter == EditPartViewer. category) go back getGraphicalViewer(); else if (adapter == CommandStack. category) go back getCommandStack(); else if (adapter == EditDomain. type) go back getEditDomain(); else if (adapter == ActionRegistry. classification) go back getActionRegistry(); else if (adapter == IPropertySheetPage. type) bankruptcy three. creation to GEF 129 return getPropertySheetPage(); // the large implementation handles the remainder go back tremendous.

Rated 4.21 of 5 – based on 4 votes