Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Selecting Node name from the list instead entering in GMF Editor( Selecting Node name from the list instead entering in GMF Editor)
Selecting Node name from the list instead entering in GMF Editor [message #755394] Tue, 08 November 2011 05:57 Go to next message
Eclipse UserFriend
Hi All,

How can I implement Selecting the Node name from the list instead entering in GMF Editor ?

Thanks,
Vinay

[Updated on: Tue, 08 November 2011 05:59] by Moderator

Re: Selecting Node name from the list instead entering in GMF Editor [message #755395 is a reply to message #755394] Tue, 08 November 2011 06:00 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

from which list are you talking about?

Regards,
Re: Selecting Node name from the list instead entering in GMF Editor [message #755398 is a reply to message #755395] Tue, 08 November 2011 06:03 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Having some kind of popup window when a node is dragged and dropped on to the editor and then selecting the its name.

Thanks,
Vinay
Re: Selecting Node name from the list instead entering in GMF Editor [message #755423 is a reply to message #755398] Tue, 08 November 2011 08:04 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I see DropTargetListener inner class in xxxDiagramEditor.java file...Is it the implementation of pop-up window when a node is dropped on to the editor is done here ??

Thanks,
Vinay

[Updated on: Tue, 08 November 2011 08:25] by Moderator

Re: Selecting Node name from the list instead entering in GMF Editor [message #755431 is a reply to message #755423] Tue, 08 November 2011 08:43 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I want to know which part in the generated code in GMF Editor having the control over drag and drop ??

Thanks,
Vinay
Re: Selecting Node name from the list instead entering in GMF Editor [message #755798 is a reply to message #755431] Wed, 09 November 2011 10:51 Go to previous messageGo to next message
Eclipse UserFriend
vinny503 wrote on Tue, 08 November 2011 15:43
Hi,

I want to know which part in the generated code in GMF Editor having the control over drag and drop ??

Thanks,
Vinay


I don't know if I understood your question but I try to give an answer. I think that what you want is to do some action when a new node is created. Go to the XXX.diagram.edit.parts and then to the XXXEditPart.java. There add code like this:
@Override
  protected void handleNotificationEvent(Notification notification) {
  super.handleNotificationEvent(notification);
  if (notification.getNotifier() instanceof XXX) {
			//your code
  }
}

[Updated on: Wed, 09 November 2011 10:52] by Moderator

Re: Selecting Node name from the list instead entering in GMF Editor [message #755901 is a reply to message #755798] Thu, 10 November 2011 01:13 Go to previous messageGo to next message
Eclipse UserFriend
Hi mouch,

I will explain my problem in detail, As of now I am setting the node name in the property window but I want that to be done when I drag a node and drop it on to the editor some pop up window should come where I can select the name of it.

Thanks,
Vinay
Re: Selecting Node name from the list instead entering in GMF Editor [message #755960 is a reply to message #755901] Thu, 10 November 2011 05:31 Go to previous message
Eclipse UserFriend
Hi,

As I observe that in the java file xxxEditPart.java, there is a line in the createDefaultEditPolicies() method shown below

installEditPolicy(EditPolicyRoles.OPEN_ROLE, new SubclassOfOpenEditPolicy());

Anyone have the idea on how to install SubclassOfOpenEditPolicy, so that its getOpenCommand() can be accessed.


Thanks,
Vinay

[Updated on: Thu, 10 November 2011 05:32] by Moderator

Previous Topic:How to install custom subclass of OpenEditPolicy for editpart in GMF
Next Topic:Validation and other Stuff
Goto Forum:
  


Current Time: Sun Nov 09 02:56:34 EST 2025

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

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

Back to the top