[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: Auto-generating tool commands.

Hi Alex,

On the topic below discussed earlier.

I want to add some data in a Tool, which can be passed along when the semantic model element is created. (In a EditorHelper).

As a tool, is initially defined as a UnspecifiedTypeCreationTool(),
I wonder if somehow, I can set and pickup this data set in a ToolEntry, in a Edit Helper.


So:

MyCustomPaletteFactory -> ToolEntry -> ? -> xEditHelper -> myData?
			  (myData) 			

Thank You, Christophe





Christophe Bouhier wrote:
Thank you for confirming.

I haven't used any of the GMF services, but from what I understand this is a plugin extension. If this is the case, how do I generate this from runtime (As I need access to the model first). Sorry might be a stupid question as I am not to familiar with the GMF services.. (Or actually this is more an RCP/plugin question perhaps).

rgds, Christophe

Alex Shatalin wrote:
Hello Christophe,

This use case is not covered with current code generators. So, you have to create a custom code for it. I think you can start with contributing your own creation tools via PaletteService.

-----------------
Alex Shatalin