Troubles while setting the GMF editor inside a MultiPageEditor [message #700267] |
Sat, 23 July 2011 04:55 |
bunta Choudhary Messages: 38 Registered: December 2010 |
Member |
|
|
I am getting lots of exception mainly with cast exception while trying to add the GMF generated editor inside a multipageeditor .
Like Grid and Rulers stop working. Can anybody suggest me the solution.
Actually My problem is here -
Actually I am dumping the generated GMF Editor inside MultiPageEditor createPage method like this -
ShapesDiagramEditor editor = new ShapesDiagramEditor();
int index = addPage(editor, getEditorInput());
setPageText(index, "Design");
Well as soon as I do the above, the GMF autogenerated properties named Rulers and Grid shows ClassCastException as (as we click on the properties menus)
Quote:java.lang.ClassCastException: multipageeditor.editors.MultiPageEditor cannot be cast to org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramWorkbenchPart
at org.eclipse.gmf.runtime.diagram.ui.properties.sections.grid.RulerGridPropertySection.initWorkspacePropertyListener(RulerGridPropertySection.java:879)
at org.eclipse.gmf.runtime.diagram.ui.properties.sections.grid.RulerGridPropertySection.setInput(RulerGridPropertySection.java:624)
at org.eclipse.ui.views.properties.tabbed.TabContents$5.run(TabContents.java:181)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.ui.views.properties.tabbed.TabContents.setInput(TabContents.java:184)
at org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage$SelectionChangedListener.selectionChanged(TabbedPropertySheetPage.java:212)
at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
So this is the actual issue I am facing and I could not resolve the same
Along with this I am not able to set even the background color for editor, it won't reflect anything.
[Updated on: Wed, 27 July 2011 04:35] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04381 seconds