Skip to main content


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 #616754] Tue, 09 October 2007 03:00
Eclipse UserFriend
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:How to create a EditDomain in VE? RichKulp
Next Topic:VE Parse Error
Goto Forum:
  


Current Time: Tue Mar 19 03:48:15 GMT 2024

Powered by FUDForum. Page generated in 0.01812 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top