Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Action question
Action question [message #239051] Wed, 10 October 2007 16:07
Eclipse UserFriend
Originally posted by: trommas.yahoo.com

Running this gives me a new element (ClassNode)

type = UemlbaseElementTypes.ClassNode_2002

CreateElementRequest eReq = new CreateElementRequest(type);

ViewAndElementDescriptor viewDescriptor = new ViewAndElementDescriptor(
new CreateElementRequestAdapter(eReq), Node.class,((IHintedType)
type).getSemanticHint(), prefs);

, but i want to decide what item to add. I tried:

ClassNode dummy = new ClassNodeImpl();
dummy.setName("dummy");
CreateElementRequest eReq = new CreateElementRequest(dummy, type);

, but for some strange reason it doesn't work.

I've run out of ideas.. Any help would be appreciated!

Thanks,

Tomas
Previous Topic:Programmatically run arrange action
Next Topic:EditPart doubt
Goto Forum:
  


Current Time: Fri Mar 29 14:21:03 GMT 2024

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

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

Back to the top