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] Tue, 09 October 2007 03:00
Eclipse UserFriend
Originally posted by:

RichKulp :
I kown that you are JavaVisualEditorPart 'author ,i want get some
message from 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 ?

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: Tue Apr 24 03:30:57 GMT 2018

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

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