Package org.eclipse.gef.palette

Examples of org.eclipse.gef.palette.SelectionToolEntry


  }

  @Override
  protected PaletteRoot getPaletteRoot() {
    PaletteStack stackPalette = new PaletteStack("Palette Stack", "no desc !", null);
    stackPalette.add(new SelectionToolEntry());
    stackPalette.add(new MarqueeToolEntry());
    if (logger.isLoggable(Level.FINE)) {
      //$ANALYSIS-IGNORE
      logger.fine("Root palette created");
    }
View Full Code Here


    private static PaletteContainer createControlGroup(PaletteRoot root) {
        PaletteGroup controlGroup = new PaletteGroup(Messages.PageEditorPaletteFactory_controlGroup_title);

        List<ToolEntry> entries = new ArrayList<ToolEntry>();
        ToolEntry tool = new SelectionToolEntry();
        tool.setToolClass(SelectionToolWithDoubleClick.class);
        entries.add(tool);
        root.setDefaultEntry(tool);
       

        controlGroup.addAll(entries);
View Full Code Here

    private static PaletteContainer createControlGroup( PaletteRoot root ) {
        PaletteGroup controlGroup = new PaletteGroup("Actions");

        List<ToolEntry> entries = new ArrayList<ToolEntry>();

        ToolEntry tool = new SelectionToolEntry();
        tool.setToolClass(SelectionToolWithDoubleClick.class);
        entries.add(tool);
        root.setDefaultEntry(tool);

        controlGroup.addAll(entries);
View Full Code Here

        addSelectionTool(controls);
        return controls;
    }

    private void addSelectionTool(PaletteGroup controls) {
        ToolEntry tool = new SelectionToolEntry();
        tool.setId("org.jbpm.ui.palette.Selection");
        controls.add(tool);
        setDefaultEntry(tool);
    }
View Full Code Here

    PaletteGroup controls = new PaletteGroup(PageDesignerResources
        .getInstance().getString(
            "JSFPalette.DefaultGroup.LabelJSFPallete")); //$NON-NLS-1$
    add(controls);
    // the selection tool
    ToolEntry tool = new SelectionToolEntry() {
      public Tool createTool() {
        return new RangeSelectionTool();
      }
    };
    controls.add(tool);
View Full Code Here

      _paletteRoot = new PaletteRoot();
      final List<PaletteContainer> categories = new ArrayList<PaletteContainer>();
      // a group of default control tools
      final PaletteGroup controls = new PaletteGroup(Messages.MapPalette_Controls);
      // the selection tool
      final ToolEntry tool = new SelectionToolEntry();
      controls.add(tool);
      // use selection tool as default entry
      _paletteRoot.setDefaultEntry(tool);
      // the marquee selection tool
      controls.add(new MarqueeToolEntry());
View Full Code Here

  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

    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

    private static PaletteContainer createControlGroup(PaletteRoot root) {
        PaletteGroup controlGroup = new PaletteGroup("Control Group");

        List<PaletteEntry> entries = new ArrayList<PaletteEntry>();

        ToolEntry tool = new SelectionToolEntry();
        entries.add(tool);
        root.setDefaultEntry(tool);

        tool = new MarqueeToolEntry();
        entries.add(tool);
View Full Code Here

  protected PaletteContainer createControlGroup() {
    PaletteGroup group = new PaletteGroup(Messages.AbstractConfigPaletteFactory_CONTROL_GROUP_TITLE);
    List<PaletteEntry> entries = new ArrayList<PaletteEntry>();

    ToolEntry tool = new SelectionToolEntry();
    entries.add(tool);
    root.setDefaultEntry(tool);
    // tool = new MarqueeToolEntry();
    // entries.add(tool);
View Full Code Here

TOP

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

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.