Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » How to create a EditDomain in VE? RichKulp
How to create a EditDomain in VE? RichKulp [message #141611] Mon, 08 October 2007 23: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)
Previous Topic:VE Generating code in wrong place
Next Topic:How to create a EditDomain in VE? RichKulp
Goto Forum:
  


Current Time: Wed Jul 30 19:33:31 EDT 2014

Powered by FUDForum. Page generated in 0.07660 seconds