Flylib.com
List of Examples
Previous page
Table of content
< Day Day Up >
Chapter 1: Introduction to EMF
Example 1-1: The WorkflowNode interface@model tag
Example 1-2: The x attribute @model tag
Example 1-3: The WorkflowNode to OutputPort reference @model tag
Chapter 2: EMF Examples
Example 2-1: XMI for model of Workflow
Example 2-2: XMI fragment for Workflow class
Example 2-3: Importing the DiagramModel and WorkflowModel
Example 2-4: DiagramModel with references to WorkflowModel objects
Example 2-5: Using nested packages
Example 2-6: Example XML Schema
Example 2-7: EPackage from XML Schema
Example 2-8: EClass for the USAddress type
Example 2-9: EReference for element of complex type
Example 2-10: EClass from simple-typed element
Example 2-11: EAttribute from XML attributes
Example 2-12: Top-level element for WorkflowModel GenModel
Example 2-13: GenModel fragment for EClass Workflow
Example 2-14: Generated NON-NLS markers
Example 2-15: Methods generated for volatile feature
Example 2-16: Modifying the getID() method
Example 2-17: The getText() method of EdgeItemProvider
Example 2-18: Creating instances
Example 2-19: Creating a dynamic model
Example 2-20: Using the reflective API to create dynamic model instances
Example 2-21: Default XMI serialization of a Workflow instance
Example 2-22: Positional references
Example 2-23: Set up the ResourceSet
Example 2-24: Create an XMIResource
Example 2-25: Load an XMIResource
Example 2-26: Add a model object to a resource
Example 2-27: XSD annotation on workflow EPackage
Example 2-28: XSD annotation on comment EAttribute
Example 2-29: XSD annotation on nodes EReference
Example 2-30: XSD annotation on Workflow EClass
Example 2-31: Custom serialization of a Workflow instance
Example 2-32: Using an XMLMap to customize serialization of XMI
Example 2-33: Set object ids via setID()
Example 2-34: Override getId() to generate ids
Example 2-35: Customized XMLHelper
Example 2-36: Overriding the createXMLHelper() method
Example 2-37: A more readable representation of contained objects
Example 2-38: Our version of Header.javajet
Example 2-39: Merge rules for code generation from WorkflowModel
Example 2-40: The jet directive
Example 2-41: JET scriptlet, directive and expression tags
Example 2-42: Concrete example of additional method signatures
Example 2-43: Interface template fragment for additional methods
Example 2-44: Concrete example of additional methods
Example 2-45: Class template fragment for additional methods
Chapter 3: Introduction to GEF
Example 3-1: A standalone Draw2D application
Example 3-2: ExampleGEFEditor.java (initial stage)
Example 3-3: Adding EditDomain to the editor
Example 3-4: Indicating the dirty state of our editor (part 1)
Example 3-5: The CommandStackListener
Example 3-6: Attaching and removing the CommandStackListener
Example 3-7: Update CommandStack on editor save
Example 3-8: Attaching a GraphicalViewer to our editor
Example 3-9: Overwriting the getAdapter method
Example 3-10: Creating a PaletteViewer
Example 3-11: Adding the PaletteViewer to the editor's composite
Example 3-12: Initial PaletteRoot with default tools
Example 3-13: Adding an ActionRegistry to the editor
Example 3-14: Added infrastructure for supporting different actions
Example 3-15: Adding update support for the actions
Example 3-16: Adding actions to the editor
Example 3-17: Making the properties view undoable
Example 3-18: An overview outline page
Example 3-19: Attaching the overview to the editor
Example 3-20: Enabling our editor for keyboard interaction
Chapter 4: GEF Examples
Example 4-1: Configuring a RootEditPart
Example 4-2: Layer creation methods in FreeformGraphicalRootEditPart
Example 4-3: Adding a PrintAction
Example 4-4: Returning the ZoomManager via the IAdapter interface
Example 4-5: Adding ZoomComboContributionItem to the tool bar
Example 4-6: Registering the zoom actions
Example 4-7: Adding a menu for the zoom actions
Example 4-8: Placing a label in the center of a connection
Example 4-9: The
AddFlowContainerAction class
Example 4-10: Modifications to the LogicActionBarContributor class
Example 4-11: Adding a Tools menu in contributeToMenu
Example 4-12: Install the
DIRECT_EDIT_ROLE edit policy
Example 4-13: Calling DirectEditManager.show() in performRequest
Chapter 5: Using GEF with EMF
Example 5-1: NetworkEditPart constructor
Example 5-2: NetworkEditPart's getModelChildren() method
Example 5-3: The createEditPart() method
Example 5-4: NetworkEditPart's createFigure() method
Example 5-5: NodeFigure with child Label for id attribute
Example 5-6: Returning derived objects from getModelSourceConnections()
Example 5-7: The activate() method of NetworkEditPart
Example 5-8: NetworkEditPart refreshing children EditParts
Example 5-9: NetworkNodeEditPart refreshing connected EditParts
Example 5-10: Getting an instance from the ModelManager
Example 5-11: Hooking the model into the GraphicalViewer
Example 5-12: NodeEditPart template
Example 5-13: Using the templates
Chapter 7: Implementing the Sample
Example 7-1: A generic getPropertyDescriptors implementation for EMF classes
Example 7-2: The notifyChanged() implementation in WorkflowNodeEditPart
Example 7-3: The getModelChildren implementation in CompoundTaskEditParts
Example 7-4: Returning a node's connections
Example 7-5: A snippet of the getNewObject() factory method
Example 7-6: Initializing the CreateWorkflowNodeCommand
Example 7-7: Java reference implementation
Example 7-8: Workflow XMI file serialization
Example 7-9: TaskImpl connectTo method
< Day Day Up >
Previous page
Table of content
Eclipse Development Using the Graphical Editing Framework And the Eclipse Modeling Framework
ISBN: 0738453161
EAN: 2147483647
Year: 2004
Pages: 70
Authors:
IBM Redbooks
BUY ON AMAZON
A+ Fast Pass
Domain 1 Installation, Configuration, and Upgrading
Domain 2 Diagnosing and Troubleshooting
Domain 3 Preventive Maintenance
Domain 4 Motherboard/Processors/Memory
Domain 4 Networks
Adobe After Effects 7.0 Studio Techniques
Keyframes and The Graph Editor
Selections: The Key to Compositing
Linear Keyers and Hi-Con Mattes
Conclusion
Fire
C++ GUI Programming with Qt 3
Dynamic Dialogs
Inter-Process Communication
Using QTextBrowser as a Simple Help Engine
Session Management
Appendix A. Installing Qt
SQL Hacks
Hack 6. Dont Perform the Same Calculation Over and Over
Hack 12. Simplify Complicated Updates
Hack 55. Import Someone Elses Data
Hack 70. Combine Your Queries
Hack 95. Issue Automatic Updates
InDesign Type: Professional Typography with Adobe InDesign CS2
Apostrophes
Footnotes
Right-Aligned Type
Stylin with Paragraph and Character Styles
Snap to Guides
Visual Studio Tools for Office(c) Using C# with Excel, Word, Outlook, and InfoPath
Working with Excel Objects
Creating a Data-Bound Customized Word Document with VSTO
Code Access Security in .NET
VSTO Prerequisites
Moving Away from COM Add-Ins
flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net
Privacy policy
This website uses cookies. Click
here
to find out more.
Accept cookies