[EuGENia | EOL] delete creation tool [message #483784] |
Wed, 02 September 2009 20:20  |
Eclipse User |
|
|
|
Hello,
I'm trying to delete some creation tools so that they don't appear on
the tools palette.
I've tried experimenting different ways but if I delete any tool then in
gmfmap the tool property in node mapping selects some other tool
available. I want it to map to no tool. I tried deleting from gmftool
anf gmfmap as well. But no luck. Please help me with this.
var rule = ECore!EClass.all.selectOne(o|o.name = 'Rule');
ruleTool = GmfTool!CreationTool.selectOne(t|t.title = 'Rule');
var nodeMapping =
GmfMap!NodeMapping.all.selectOne(nm|nm.domainMetaElement = rule);
--delete nodeMapping.tool;
nodeMapping.tool = ruleTool;
-- even though I do this it does not maps the same tool instead some
other tool is mapped
var r = ECore!EClass.all.selectOne(o|o.name = 'OclExp');
var nodeMapping =
GmfMap!NodeMapping.all.selectOne(nm|nm.domainMetaElement = r);
delete nodeMapping.tool;
--this deletes the tool but in gmfmap some other random tool is selected.
Thanks,
Mihir
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05543 seconds