当前位置: 首页>>代码示例>>Java>>正文


Java PaletteRoot.add方法代码示例

本文整理汇总了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;
}
 
开发者ID:dstl,项目名称:Open_Source_ECOA_Toolset_AS5,代码行数:17,代码来源:CompImplEditor.java

示例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;
}
 
开发者ID:eclipse,项目名称:birt,代码行数:22,代码来源:MasterPagePaletteFactory.java

示例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;
}
 
开发者ID:eclipse,项目名称:birt,代码行数:24,代码来源:DesignerPaletteFactory.java

示例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;
}
 
开发者ID:dstl,项目名称:Open_Source_ECOA_Toolset_AS5,代码行数:11,代码来源:IntLogicalSysEditor.java

示例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;
}
 
开发者ID:dstl,项目名称:Open_Source_ECOA_Toolset_AS5,代码行数:9,代码来源:IntFinalAssemblyEditor.java

示例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;
}
 
开发者ID:dstl,项目名称:Open_Source_ECOA_Toolset_AS5,代码行数:13,代码来源:IntDeploymentEditor.java

示例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;
}
 
开发者ID:dstl,项目名称:Open_Source_ECOA_Toolset_AS5,代码行数:11,代码来源:InitAssemblyEditor.java

示例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);
}
 
开发者ID:capitalone,项目名称:Hydrograph,代码行数:11,代码来源:ELTGraphicalEditor.java

示例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;
}
 
开发者ID:SK-HOLDINGS-CC,项目名称:NEXCORE-UML-Modeler,代码行数:15,代码来源:DiagramPaletteFactory.java

示例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);
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:13,代码来源:JDPaletteFactory.java

示例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;
}
 
开发者ID:lunifera,项目名称:lunifera-sharky-m2m,代码行数:13,代码来源:ShapesEditorPaletteFactory.java

示例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;
}
 
开发者ID:bsteker,项目名称:bdf2,代码行数:7,代码来源:DbToolGefEditorPaletteFactory.java

示例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;
}
 
开发者ID:SK-HOLDINGS-CC,项目名称:NEXCORE-UML-Modeler,代码行数:66,代码来源:DiagramPaletteFactory.java

示例14: fillPalette

import org.eclipse.gef.palette.PaletteRoot; //导入方法依赖的package包/类
/**
 * @generated
 */
public void fillPalette(PaletteRoot paletteRoot) {
	paletteRoot.add(createStatemachine1Group());
}
 
开发者ID:spoenemann,项目名称:xtext-gef,代码行数:7,代码来源:StatemachinePaletteFactory.java

示例15: createToolsCategory

import org.eclipse.gef.palette.PaletteRoot; //导入方法依赖的package包/类
protected PaletteContainer createToolsCategory(PaletteRoot root) {
	PaletteDrawer drawer = new PaletteDrawer("Tools");
	root.add(drawer);
	return drawer;
}
 
开发者ID:Yakindu,项目名称:statecharts,代码行数:6,代码来源:DefaultSCTPaletteFactory.java


注:本文中的org.eclipse.gef.palette.PaletteRoot.add方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。