Skip to main content



      Home
Home » Eclipse Projects » Sirius » Custom edit parts and 'appearance' and 'style' properties
Custom edit parts and 'appearance' and 'style' properties [message #1742464] Thu, 01 September 2016 20:21 Go to next message
Eclipse UserFriend
Hi!

I am developing a tool with sirius. As part of our solution, we are creating custom edit parts and figures. We need, for example, to display two labels per node as well as custom shapes.

When I use default shapes, all the properties for appearance e.g. font size and colour are available. However, with my custom styles, this is not the case.

Is this an inherent loss of functionality? Or can clever subclassing help me here? My edit parts extend AbstractNotSelectableShapeNodeEditPart and my figures extend AirStyleDefaultSizeNodeFigure.
Re: Custom edit parts and 'appearance' and 'style' properties [message #1742580 is a reply to message #1742464] Mon, 05 September 2016 08:38 Go to previous message
Eclipse UserFriend
Hi

First remark: the property view is updated at selection change. Consequently, your EditPart must be selectable or part of a selectable one.
You can try to create an editPart inheriting from ShapeNodeEditPart for example.

There is an example of custom edit part in UML Designer [1] that may help you

Regards
Laurent

[1] https://github.com/ObeoNetwork/UML-Designer/blob/master/plugins/org.obeonetwork.gmf.runtime.diagram.ui.extension/src/org/obeonetwork/gmf/runtime/diagram/ui/extension/rotatable/editPart/RotatableNodeEditPart.java
Previous Topic:how to add notes when creating diagram programmatically
Next Topic:Tools defined in a disabled layer are active
Goto Forum:
  


Current Time: Thu Mar 20 08:39:52 EDT 2025

Powered by FUDForum. Page generated in 0.04822 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top