Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Creating a node from a menu
Creating a node from a menu [message #123202] Wed, 02 May 2007 06:42
Eclipse UserFriend
Hello,

I'm trying to create programmaticaly a node when the user clic on a menu
item with this code :

----

CreateElementRequest request =
new CreateElementRequest(klasse, elementType);

org.eclipse.gmf.runtime.common.core.command.ICommand command
= elementType.getEditCommand(request);

DiagramCommandStack stack =
diagramEditor.getDiagramEditDomain().getDiagramCommandStack( );

stack.execute(command);

-----

The problem is that the execute method is not visible : it's a protected
method.

How could I do ?
Previous Topic:Constraining the scope of validation rules
Next Topic:Opening the Diagram from code
Goto Forum:
  


Current Time: Thu Sep 18 18:16:13 EDT 2025

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

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

Back to the top