我使用GMF / Sirius框架创建一个项目,
仅剩一个问题,如何将工具条目添加到Palette中,
我发现有人这样说,但是不知道如何继续,有什么想法吗?谢谢,
PaletteToolEntry defaultEntry3 = new PaletteToolEntry("platform:/plugin/fr.obeo.dsl.arduino.design/description/arduino.odesign#//@ownedViewpoints[name='abc']/@ownedRepresentations[name='SoftwareRadar']/@defaultLayer/@toolSections.0/@ownedTools[name='creationDataFlow']", "test test test", viewpointDiagramPaletteFactory); //$NON-NLS-1$//$NON-NLS-2$
defaultEntry3.setToolProperty(CreationTool.PROPERTY_CREATION_FACTORY, viewpointDiagramPaletteFactory);
drawner.add(defaultEntry3);