Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Creates areas in Graphiti
Creates areas in Graphiti [message #1288675] Tue, 08 April 2014 19:33 Go to next message
Simone Di Cola is currently offline Simone Di ColaFriend
Messages: 60
Registered: February 2014
Member
Hi,
is it possible to create a sort of "areas" where I can drop only certain kind of objects? This area should not be in the ecore model.

Thanks
Simone
Re: Creates areas in Graphiti [message #1297014 is a reply to message #1288675] Tue, 15 April 2014 11:06 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Simone,

2 ideas, depending on what you mean with "not in the ecore model":
1) If you mean it should not be in the domain model, but may be in the
graphical representation, then you can add a rectangle (or other suiting
shape) to the diagram and restrict the add features to allow these certain
objects only to be added in that area.
2) If it should not even be part of the graphical model, you can check in
the add feature for the location and allow the add opeeration only in case
it happens in the area you want to allow.

Michael
Previous Topic:Migration to GEF 4
Next Topic:Dropping an element refresh the whole diagram
Goto Forum:
  


Current Time: Fri Apr 19 15:45:26 GMT 2024

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

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

Back to the top