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 13:14
Binhua Liu is currently offline Binhua Liu
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: Fri Aug 01 08:12:50 EDT 2014

Powered by FUDForum. Page generated in 0.01538 seconds