Package org.eclipse.gef.palette

Examples of org.eclipse.gef.palette.ToolEntry


  static private PaletteContainer createControlGroup(PaletteRoot root) {
    PaletteGroup controlGroup = new PaletteGroup(
        MusicMessages.MusicPlugin_Category_ControlGroup_Label);

    List<PaletteEntry> entries = new ArrayList<PaletteEntry>();
    ToolEntry tool = new SelectionToolEntry();
    entries.add(tool);
    root.setDefaultEntry(tool);
    controlGroup.addAll(entries);
    return controlGroup;
  }
View Full Code Here


      for (ObjectType type : edgeTypes) {
        String typeStr = type.getName();

        ImageDescriptor id = getImgDescEdge(type);

        ToolEntry tool = new ConnectionCreationToolEntry(typeStr,
            "Create a new " + typeStr,
            new EdgeCreationFactory(type), id, ImageDescriptor
                .getMissingImageDescriptor());

        edgeDrawer.add(tool);
View Full Code Here

      for (ObjectType type : vertexTypes) {
        String typeStr = type.getName();

        ImageDescriptor id = getImgDescVertex(type);

        ToolEntry tool = new CreationToolEntry(typeStr, "Create a new "
            + typeStr, new VertexCreationFactory(type), id, null);

        toolDrawer.add(tool);
      }
View Full Code Here

    PaletteRoot paletteModel = new PaletteRoot();
    PaletteGroup toolGroup = new PaletteGroup("Tools");
    paletteModel.add(toolGroup);

    // Add a selection tool to the group
    ToolEntry tool = new SelectionToolEntry();
    toolGroup.add(tool);
    paletteModel.setDefaultEntry(tool);

    // Add a marquee tool to the group
    toolGroup.add(new MarqueeToolEntry());
View Full Code Here

  /**
   * @generated
   */
  private ToolEntry createInput2CreationTool() {
    ToolEntry entry = new ToolEntry(Messages.Input2CreationTool_title,
        null, null, null) {
    };
    entry.setId("createInput2CreationTool"); //$NON-NLS-1$
    entry.setSmallIcon(DispelDiagramEditorPlugin
        .findImageDescriptor("icons/palette/icon_d06.gif")); //$NON-NLS-1$
    return entry;
  }
View Full Code Here

  /**
   * @generated
   */
  private ToolEntry createOutput3CreationTool() {
    ToolEntry entry = new ToolEntry(Messages.Output3CreationTool_title,
        null, null, null) {
    };
    entry.setId("createOutput3CreationTool"); //$NON-NLS-1$
    entry.setSmallIcon(DispelDiagramEditorPlugin
        .findImageDescriptor("icons/palette/icon_d07.gif")); //$NON-NLS-1$
    return entry;
  }
View Full Code Here

  /**
   * @generated
   */
  private ToolEntry createProcessingElement4CreationTool() {
    ToolEntry entry = new ToolEntry(
        Messages.ProcessingElement4CreationTool_title, null, null, null) {
    };
    entry.setId("createProcessingElement4CreationTool"); //$NON-NLS-1$
    entry.setSmallIcon(DispelDiagramEditorPlugin
        .findImageDescriptor("icons/palette/icon_d01.gif")); //$NON-NLS-1$
    return entry;
  }
View Full Code Here

  /**
   * @generated
   */
  private ToolEntry createVariable5CreationTool() {
    ToolEntry entry = new ToolEntry(Messages.Variable5CreationTool_title,
        null, null, null) {
    };
    entry.setId("createVariable5CreationTool"); //$NON-NLS-1$
    entry.setSmallIcon(DispelDiagramEditorPlugin
        .findImageDescriptor("icons/palette/icon_d03.gif")); //$NON-NLS-1$
    return entry;
  }
View Full Code Here

  /**
   * @generated
   */
  private ToolEntry createLiteral1CreationTool() {
    ToolEntry entry = new ToolEntry(Messages.Literal1CreationTool_title,
        null, null, null) {
    };
    entry.setId("createLiteral1CreationTool"); //$NON-NLS-1$
    entry.setSmallIcon(DispelDiagramEditorPlugin
        .findImageDescriptor("icons/palette/icon_d04.gif")); //$NON-NLS-1$
    return entry;
  }
View Full Code Here

  /**
   * @generated
   */
  private ToolEntry createStringLiteral2CreationTool() {
    ToolEntry entry = new ToolEntry(
        Messages.StringLiteral2CreationTool_title, null, null, null) {
    };
    entry.setId("createStringLiteral2CreationTool"); //$NON-NLS-1$
    entry.setSmallIcon(DispelDiagramEditorPlugin
        .findImageDescriptor("icons/palette/icon_d04.gif")); //$NON-NLS-1$
    return entry;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.gef.palette.ToolEntry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.