Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "GEF and GMF usage and customizations"

m
m (Shapes attached to the border)
Line 46: Line 46:
 
Also the layout in the compartment is well defined.
 
Also the layout in the compartment is well defined.
  
 +
Mykola Peleshchyshyn developped that and might want to comment further.
  
 
=== Save the layout between collapse-expand of shapes. ===
 
=== Save the layout between collapse-expand of shapes. ===

Revision as of 17:14, 23 November 2006

The stp.bpmn modeler is built on GMF that itself depends on GEF and EMF.

This page is a place to share our experience developing with GEF and GMF in the context of this application.

It targets the GMF GEF developer who might need to do similar things. All of them are code based modifications: nothing related to the code generation although templates could be modified.

Some of these paragraph might be better placed in the GMF or the GEF wiki. If this is the case, please let us know which items should graduate there.

In order to achieve the look and feel and to support our domain model a couple of things had to be worked upon specifically.

This page is very incomplete currently.

Palette behavior and look-and-feel preferences customizations

Sitcky tool mode: select twice the same tool and it will not unload when used.

SelectionTool customization

Double click issues a direct edit request. No edit-mode at the end of a creation.

Snap-helpers inside compartments

Clipboard support

In progress. Support inside the diagram and the various compartments.

Selection of compartments behavior

Connection routers

Vertical label

Scale support: zoom and the actual font to use changes size so it does not get pixelized. Issue with Linux and MacOS to be debugged.


Shapes attached to the border

The main stream strategy consists of using BorderItemEditPart. It is available at runtime in GMF-1.0 and at design time in GMF-2.0. Please refer to the runtime documentation of GMF.

The solution used in the stp.bpmn modeler consisted of using a second compartment: the border-compartment. This is the way it was originally developed early on and so we decided to keep it. The issue is that it is quite some work to make the figures look as if the items dropped in the border-compartment as if they were attached to the border of the main figure. The advantage: popup assistant will show when mousing next to the border: the mouse is in fact over the border-compartment. Also the layout in the compartment is well defined.

Mykola Peleshchyshyn developped that and might want to comment further.

Save the layout between collapse-expand of shapes.

Use EAnnotations on the View model. The View are the object model for the GMF visual notation. They are also EModelElement and hence support storing extra pieces of data.

Pool layout and setbound policies

Change the figures for the NotationPackage

BPMN Text does not follow the same look and feel than the one provided by default by the NotationPackage. It is overridden in the EditPartFactory. Just need to look for a model that is an instance of a View.

Back to the top