Difference between revisions of "EMF/SinglePageEditor"

From Eclipsepedia

< EMF
Jump to: navigation, search
m
m
Line 1: Line 1:
 
This page gives you an overview of an unmodified EMF (single page) editor (inc. a wizard) generated with EMF 2.6  
 
This page gives you an overview of an unmodified EMF (single page) editor (inc. a wizard) generated with EMF 2.6  
  
The example is created based on the [http://help.eclipse.org/helios/topic/org.eclipse.emf.doc/tutorials/clibmod/clibmod.htm Generating an EMF Model] example. You can find the source code and in this context the "library.editor" plugin / project e.g. [http://code.google.com/a/eclipselabs.org/p/emf-examples/source/browse/ here].
+
The example is created based on the [http://help.eclipse.org/helios/topic/org.eclipse.emf.doc/tutorials/clibmod/clibmod.html Generating an EMF Model] example. You can find the source code and in this context the "library.editor" plugin / project e.g. [http://code.google.com/a/eclipselabs.org/p/emf-examples/source/browse/ here].
  
 
Usually the example and the default setup of the genmodel produces a multiple page editor. For the generation of a singel page editor you have to set the attribute "Multiple Page Editor" to false. This attribute is on package level, in this case the Library package.
 
Usually the example and the default setup of the genmodel produces a multiple page editor. For the generation of a singel page editor you have to set the attribute "Multiple Page Editor" to false. This attribute is on package level, in this case the Library package.

Revision as of 06:10, 25 December 2010

This page gives you an overview of an unmodified EMF (single page) editor (inc. a wizard) generated with EMF 2.6

The example is created based on the Generating an EMF Model example. You can find the source code and in this context the "library.editor" plugin / project e.g. here.

Usually the example and the default setup of the genmodel produces a multiple page editor. For the generation of a singel page editor you have to set the attribute "Multiple Page Editor" to false. This attribute is on package level, in this case the Library package.

Classes

The code generator produces just the following 4 classes:

  • LibraryEditor - The editor class itself.
  • LibraryActionBarContributor - The ActionBarContributor of the editor.
  • LibraryModelWizard - The wizard implementation ( find in File | New | Other... )
  • LibraryEditorPlugin - The plugin class. A subclass of EMFPlugin.


LibraryEditor

TODO

LibraryActionBarContributor

TODO