How to create a EditDomain in VE? RichKulp [message #141611] |
Tue, 09 October 2007 03:00 |
Eclipse User |
|
|
|
Originally posted by: caye5200.yahoo.com.cn
RichKulp :
I kown that you are JavaVisualEditorPart 'author ,i want get some
message from xxxview.java to restore a xml file,
i invest "JavaVisualEditorPart" class ,Frist load the Model,
but i encount some problem
now,i hava three problem ask you,if you know please help me.
1, how to create a EditDomain? i know the follow method but i
don't create a EditPart
public static EditDomain getEditDomain(EditPart ep)
{
return (EditDomain) ep.getRoot().getViewer().getEditDomain();
}
2,"loadModel" method have 3 arguments : IFileEditorInput frist argument
how to create ?
modelBuilder.loadModel((IFileEditorInput)
getEditorInput(),removeVECache,new SubProgressMonitor(monitor, 100))
3, how create IdiagramModelBuilder modelBuilder? i know this way but the
argument "editDomain" no way get.
modelBuilder = new JavaSourceTranslator(editDomain)
|
|
|
Powered by
FUDForum. Page generated in 0.02235 seconds