本文整理汇总了Java中org.eclipse.gef.palette.PaletteRoot.add方法的典型用法代码示例。如果您正苦于以下问题:Java PaletteRoot.add方法的具体用法?Java PaletteRoot.add怎么用?Java PaletteRoot.add使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.gef.palette.PaletteRoot
的用法示例。
在下文中一共展示了PaletteRoot.add方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getPaletteRoot
import org.eclipse.gef.palette.PaletteRoot; //导入方法依赖的package包/类
@Override
protected PaletteRoot getPaletteRoot() {
PaletteRoot root = new PaletteRoot();
PaletteDrawer manipGroup = new PaletteDrawer("Definitions");
manipGroup.add(new CreationToolEntry("Add Module Type", "Add Module Type", new ModuleTypeCreationFactory(), null, null));
manipGroup.add(new CreationToolEntry("Add Module Implementation", "Add Module Implementation", new ModuleImplementationCreationFactory(), null, null));
manipGroup.add(new CreationToolEntry("Add Module Instance", "Add Module Instance", new ModuleInstanceCreationFactory(), null, null));
manipGroup.add(new CreationToolEntry("Add Module Instance Property", "Add Module Instance Property", new ModuleInstancePropertyCreationFactory(), null, null));
manipGroup.add(new CreationToolEntry("Add Module Operation", "Add Module Operation", new ModuleOperationCreationFactory(), null, null));
manipGroup.add(new CreationToolEntry("Add Module Operation Parameter", "Add Module Operation Parameter", new ModuleOperationParameterCreationFactory(), null, null));
manipGroup.add(new CreationToolEntry("Add Trigger Instance", "Add Trigger Instance", new TriggerInstanceNodeCreationFactory(), null, null));
manipGroup.add(new CreationToolEntry("Add Dynamic Trigger Instance", "Add Dynamic Trigger Instance", new DynamicTriggerInstanceNodeCreationFactory(), null, null));
manipGroup.add(new ConnectionCreationToolEntry("Add Wire", "Add Wire", new LinkCreationFactory(), null, null));
root.add(manipGroup);
return root;
}
示例2: createPalette
import org.eclipse.gef.palette.PaletteRoot; //导入方法依赖的package包/类
/**
* Creates the palette and returns the palette
*
* @return the editor palette
*/
public static PaletteRoot createPalette( )
{
PaletteRoot root = BasePaletteFactory.createPalette( );
root.addAll( createCategories( ) );
root.add( createAutoTextDrawer( ) );
IExtension extension = new IExtension.Stub( ) {
public String getExtendsionIdentify( )
{
return GuiExtensionManager.PALETTE_MASTERPAGE;
}
};
GuiExtensionManager.doExtension( extension, root );
return root;
}
示例3: createPalette
import org.eclipse.gef.palette.PaletteRoot; //导入方法依赖的package包/类
/**
* Creates the palette and returns the palette
*
* @return the editor palette
*/
public static PaletteRoot createPalette( )
{
PaletteRoot root = BasePaletteFactory.createPalette( );
root.addAll( createCategories( ) );
IExtension extension = new IExtension.Stub( ) {
public String getExtendsionIdentify( )
{
return GuiExtensionManager.PALETTE_DESIGNER;
}
};
GuiExtensionManager.doExtension( extension, root );
root.add( createQuickTools( ) );
return root;
}
示例4: getPaletteRoot
import org.eclipse.gef.palette.PaletteRoot; //导入方法依赖的package包/类
@Override
protected PaletteRoot getPaletteRoot() {
PaletteRoot root = new PaletteRoot();
PaletteDrawer manipGroup = new PaletteDrawer("Definitions");
manipGroup.add(new CreationToolEntry("Add Computing Platform", "Add Computing Platform Definition", new LogicalComputingPlatformCreationFactory(), null, null));
manipGroup.add(new CreationToolEntry("Add Computing Node", "Add Computing Node Definition", new LogicalComputingCreationFactory(), null, null));
manipGroup.add(new CreationToolEntry("Add Logical Processor", "Add Logical Processor Definition", new LogicalProcessorsCreationFactory(), null, null));
root.add(manipGroup);
return root;
}
示例5: getPaletteRoot
import org.eclipse.gef.palette.PaletteRoot; //导入方法依赖的package包/类
@Override
protected PaletteRoot getPaletteRoot() {
PaletteRoot root = new PaletteRoot();
PaletteDrawer manipGroup = new PaletteDrawer("Definitions");
manipGroup.add(new CreationToolEntry("Add Composite Property", "Add Composite Property", new CompositePropertyNodeCreationFactory(), null, null));
root.add(manipGroup);
return root;
}
示例6: getPaletteRoot
import org.eclipse.gef.palette.PaletteRoot; //导入方法依赖的package包/类
@Override
protected PaletteRoot getPaletteRoot() {
PaletteRoot root = new PaletteRoot();
PaletteDrawer manipGroup = new PaletteDrawer("Definitions");
manipGroup.add(new CreationToolEntry("Add Platform Configuration", "Add Platform Configuration", new PlatformConfigurationCreationFactory(), null, null));
manipGroup.add(new CreationToolEntry("Add Computing Node Configuration", "Add Computing Node Configuration", new ComputingNodeConfigurationCreationFactory(), null, null));
manipGroup.add(new CreationToolEntry("Add Protection Domain", "Add Protection Domain", new ProtectionDomainCreationFactory(), null, null));
manipGroup.add(new CreationToolEntry("Add Module Instance", "Add Module Instance", new DeployedModuleInstanceCreationFactory(), null, null));
manipGroup.add(new CreationToolEntry("Add Trigger Instance", "Add Trigger Instance", new DeployedTriggerInstanceCreationFactory(), null, null));
root.add(manipGroup);
return root;
}
示例7: getPaletteRoot
import org.eclipse.gef.palette.PaletteRoot; //导入方法依赖的package包/类
@Override
protected PaletteRoot getPaletteRoot() {
PaletteRoot root = new PaletteRoot();
PaletteDrawer manipGroup = new PaletteDrawer("Definitions");
manipGroup.add(new CreationToolEntry("Add Composite Property", "Add Composite Property", new CompositePropertyNodeCreationFactory(), null, null));
manipGroup.add(new CreationToolEntry("Add Component", "Add Component Definition", new ComponentNodeCreationFactory(), null, null));
manipGroup.add(new ConnectionCreationToolEntry("Add Wire", "Add Wire Definition", new LinkCreationFactory(), null, null));
root.add(manipGroup);
return root;
}
示例8: createToolsGroup
import org.eclipse.gef.palette.PaletteRoot; //导入方法依赖的package包/类
private void createToolsGroup(PaletteRoot palette) {
PaletteToolbar toolbar = new PaletteToolbar("Tools");
// Add a selection tool to the group
// ToolEntry tool = new PanningSelectionToolEntry();
// toolbar.add(tool);
// palette.setDefaultEntry(tool);
palette.add(toolbar);
}
示例9: createPalette
import org.eclipse.gef.palette.PaletteRoot; //导入方法依赖的package包/类
/**
* createPalette
*
* @return PaletteRoot
*/
public static PaletteRoot createPalette(DiagramType diagramType) {
PaletteRoot palette = new PaletteRoot();
palette = createShapesDrawer(diagramType);
palette.add(0, createToolsGroup(diagramType));
// palette.add(createShapesDrawer(diagramType));
return palette;
}
示例10: createToolBar
import org.eclipse.gef.palette.PaletteRoot; //导入方法依赖的package包/类
/**
* Creates a new JDPalette object.
*
* @param paletteRoot
* the palette root
*/
public static void createToolBar(PaletteRoot paletteRoot) {
PaletteToolbar paletteToolbar = new PaletteToolbar("toolbar"); //$NON-NLS-1$
paletteToolbar.add(new SelectionToolEntry());
paletteToolbar.add(new JDMarqueeToolEntry());
paletteRoot.add(paletteToolbar);
}
示例11: createPalette
import org.eclipse.gef.palette.PaletteRoot; //导入方法依赖的package包/类
/**
* Creates the PaletteRoot and adds all palette elements. Use this factory
* method to create a new palette for your graphical editor.
*
* @return a new PaletteRoot
*/
static PaletteRoot createPalette() {
PaletteRoot palette = new PaletteRoot();
palette.add(createToolsGroup(palette));
palette.add(createShapesDrawer());
return palette;
}
示例12: createPalette
import org.eclipse.gef.palette.PaletteRoot; //导入方法依赖的package包/类
public static PaletteRoot createPalette() {
PaletteRoot root = new PaletteRoot();
root.add(createPaletteGroup());
root.add(createPaletteDrawer());
return root;
}
示例13: componentDiagramPaletteDrawer
import org.eclipse.gef.palette.PaletteRoot; //导入方法依赖的package包/类
/**
*
* ComponentDiagramPaletteDrawer
*
* @return PaletteRoot
*/
private static PaletteRoot componentDiagramPaletteDrawer() {
PaletteRoot palette = new PaletteRoot();
PaletteDrawer componentsDrawer = new PaletteDrawer("Component");
componentsDrawer.add(createToolEntryForComponentDiagram(UMLMessage.UML_COMPONENT,
UMLMessage.MESSAGE_PALETTE_COMPONENT,
org.eclipse.uml2.uml.Component.class,
org.eclipse.uml2.uml.Component.class,
IConstantImageRegistry.ICONNAME_COMPONENT));
componentsDrawer.add(createToolEntryForComponentDiagram(UMLMessage.UML_PACKAGE,
UMLMessage.MESSAGE_PALETTE_PACKAGE,
org.eclipse.uml2.uml.Package.class,
org.eclipse.uml2.uml.Package.class,
IConstantImageRegistry.ICONNAME_PACKAGE));
componentsDrawer.add(createToolEntryForComponentDiagram(UMLMessage.UML_INTERFACE,
UMLMessage.MESSAGE_PALETTE_INTERFACE,
org.eclipse.uml2.uml.Interface.class,
org.eclipse.uml2.uml.Interface.class,
IConstantImageRegistry.ICONNAME_INTERFACE));
componentsDrawer.add(createToolEntryForComponentDiagram(UMLMessage.UML_ARTIFACT,
UMLMessage.MESSAGE_PALETTE_ARTIFACT,
org.eclipse.uml2.uml.Artifact.class,
org.eclipse.uml2.uml.Artifact.class,
IConstantImageRegistry.ICONNAME_ARTIFACT));
// componentsDrawer.add(createToolEntryForComponentDiagram(UMLMessage.UML_USAGE,
// UMLMessage.MESSAGE_PALETTE_USAGE,
// org.eclipse.uml2.uml.Usage.class,
// org.eclipse.uml2.uml.Usage.class,
// IConstantImageRegistry.ICONNAME_USAGE));
// componentsDrawer.add(createToolEntryForComponentDiagram(UMLMessage.UML_COMPONENTREALIZATION,
// UMLMessage.MESSAGE_PALETTE_COMPONENTREALIZATION, null,
// org.eclipse.uml2.uml.ComponentRealization.class,
// IConstantImageRegistry.ICONNAME_COMPONENTREALIZATION));
componentsDrawer.add(createToolEntryForComponentDiagram(UMLMessage.UML_INTERFACEREALIZATION,
UMLMessage.MESSAGE_PALETTE_INTERFACEREALIZATION,
null,
org.eclipse.uml2.uml.InterfaceRealization.class,
IConstantImageRegistry.ICONNAME_INTERFACEREALIZATION));
componentsDrawer.add(createToolEntryForComponentDiagram(UMLMessage.UML_DEPENDENCY,
UMLMessage.MESSAGE_PALETTE_DEPENDENCY,
null,
org.eclipse.uml2.uml.Dependency.class,
IConstantImageRegistry.ICONNAME_DEPENDENCY));
componentsDrawer.add(createToolEntryForComponentDiagram(UMLMessage.UML_USAGE,
UMLMessage.MESSAGE_PALETTE_USAGE,
null,
org.eclipse.uml2.uml.Usage.class,
IConstantImageRegistry.ICONNAME_USAGE));
componentsDrawer.add(createToolEntryForComponentDiagram(UMLMessage.UML_ABSTRACTION,
UMLMessage.MESSAGE_PALETTE_ABSTRACTION,
null,
org.eclipse.uml2.uml.Abstraction.class,
IConstantImageRegistry.ICONNAME_ABSTRACTION));
palette.add(componentsDrawer);
return palette;
}
示例14: fillPalette
import org.eclipse.gef.palette.PaletteRoot; //导入方法依赖的package包/类
/**
* @generated
*/
public void fillPalette(PaletteRoot paletteRoot) {
paletteRoot.add(createStatemachine1Group());
}
示例15: createToolsCategory
import org.eclipse.gef.palette.PaletteRoot; //导入方法依赖的package包/类
protected PaletteContainer createToolsCategory(PaletteRoot root) {
PaletteDrawer drawer = new PaletteDrawer("Tools");
root.add(drawer);
return drawer;
}