Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » GMF Editor hasn't "Connection Creation Assistants" in MultiPageEditor
GMF Editor hasn't "Connection Creation Assistants" in MultiPageEditor [message #1064931] Fri, 21 June 2013 17:14
Binhua Liu is currently offline Binhua LiuFriend
Messages: 7
Registered: June 2013
Junior Member
Hi everyone,

I try to add the GMF editor into MultiPageEditor, my problem is, when mouse over the node in the gmf editor which in MultiPageEditor, the connection handle don't show. I think it caused by CONNECTION_HANDLES EditorPolicy isn't installed. So, how can I create the editor instance with CONNECTION_HANDLE policy? (now, I just 'new' the editor, I think it is not enough, it is maybe the point)

the code is like:

	
public void addPage(IFile file, String pageName)
	{
		FileEditorInput input = new FileEditorInput(file);
		VuidesignerDiagramEditor editor= new VuidesignerDiagramEditor();
		int index;
		try {
			index = addPage(editor,input);
		} catch (PartInitException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			return;
		}
		setPageText(index,pageName);
	}



Thank you very much
Previous Topic:How can i get Loadded Resource Instances
Next Topic:Create objects programmatically
Goto Forum:
  


Current Time: Thu Mar 28 17:37:19 GMT 2024

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

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

Back to the top