Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Invoke command programatically
Invoke command programatically [message #614713] Tue, 17 October 2006 17:19
hung is currently offline hungFriend
Messages: 117
Registered: July 2009
Senior Member
Hello,
I need to invoke this command from a process after on the current active
VE editor. My command extends CommandWrapper, and the constructor is

public MyCommand(EditDomain domain, IJavaObjectInstance model)

I can get the org.eclipse.gef.EditDomain from the current editor, but
don't know how to get the current editing model.

So I have 2 questions :
1. How do I get or create the model from the current editing content?
2. After constructed my command, can I just simply call the execute?

Thanks.
Previous Topic:Invoke command programatically
Next Topic:code generation/reverse engineering principle
Goto Forum:
  


Current Time: Fri Apr 26 04:51:50 GMT 2024

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

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

Back to the top