Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » What PictogramsElement#active means?
What PictogramsElement#active means? [message #905903] Fri, 31 August 2012 09:35 Go to next message
Jeeeyul Lee is currently offline Jeeeyul LeeFriend
Messages: 117
Registered: July 2009
Location: Seoul
Senior Member

I think we may need some human written API for PE and GA.

For many case, It's okay with APIs which have insightful name.

But, Sometimes I can't sure what feature which have too general name doing.
in this case, EMF generated document not helps much.

In this time,
I don't know what pictogramsElement#isActive() means.

Can anyone help me?
Re: What PictogramsElement#active means? [message #906027 is a reply to message #905903] Fri, 31 August 2012 13:34 Go to previous messageGo to next message
Rui Domingues is currently offline Rui DominguesFriend
Messages: 194
Registered: October 2010
Senior Member
Hi. Yes. From documentation:
An active shape can be selected in the diagram editor and it is also relevant for layouting: an active shape opens a coordinate system which can be used for layouting its PictogramElement children, while an inactive one does not provide one but uses the coordinate system of its next active parent for layouting its children.
By default all shapes should be active, inactive shapes should be used for grouping purposes or for linking a group of graphical objects to the domain world only.
For those familiar with GEF: only for active shapes a GEF EditPart will be created by the Graphiti framework, not for inactive ones.

Hope it helps.
Re: What PictogramsElement#active means? [message #907067 is a reply to message #906027] Mon, 03 September 2012 08:39 Go to previous messageGo to next message
Jeeeyul Lee is currently offline Jeeeyul LeeFriend
Messages: 117
Registered: July 2009
Location: Seoul
Senior Member

Thanks!

I can't still sure what actually it means in some context.
(IE, some shape which is not active contained by connection shape can't be shown, but shapes contained by ContainerShape always shown)
Re: What PictogramsElement#active means? [message #907090 is a reply to message #907067] Mon, 03 September 2012 09:14 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
What do you mean with "contained by connection shape"? Connections can have
ConnectionDecorators, is that what you refer to?

Michael
Re: What PictogramsElement#active means? [message #907485 is a reply to message #907090] Tue, 04 September 2012 05:09 Go to previous messageGo to next message
Jeeeyul Lee is currently offline Jeeeyul LeeFriend
Messages: 117
Registered: July 2009
Location: Seoul
Senior Member

These are what I suffered during experiment:
* Inactive Connection Decorator which have Text GA will not be shown.
* Active Connection Decorator which have PolyLine GA will not be rotatable.
* Updating Active PE contained by Inactive ContainerShape(I created this to use as content pane) will not be updated to Display(draw2d) till I make other changes on it's container even it's PE has been updated.
* Active PE in Inactive ContainerShape can be selected and re-sizable, but it doesn't show context pad.

Re: What PictogramsElement#active means? [message #910683 is a reply to message #907485] Mon, 10 September 2012 07:59 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Sorry, this somehow dropped from my radar...

Each of these points sound like something we shouold track as a bugzilla.
There are some limitations currently with inactive shapes and rotation of
decorators, unfortunatly they are not really documented or tracked...

Would you open a bugzilla for each of these points?

Thanks,
Michael
Previous Topic:Adding function to the palette?
Next Topic:Creating graphiti diagrams without file based resource
Goto Forum:
  


Current Time: Fri Apr 26 08:16:06 GMT 2024

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

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

Back to the top