GMF Editor hasn't "Connection Creation Assistants" in MultiPageEditor [message #1064931] |
Fri, 21 June 2013 17:14 |
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
|
|
|
Powered by
FUDForum. Page generated in 0.03889 seconds