Examples of PaletteStack


Examples of org.eclipse.gef.palette.PaletteStack

    return false;
  }

  @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");
    }
    PaletteGroup group = new PaletteGroup("creation tools");
View Full Code Here

Examples of org.eclipse.gef.palette.PaletteStack

            drawer.add(createTool);
          }

        } else if (toolEntry instanceof IStackToolEntry) {
          IStackToolEntry stackToolEntry = (IStackToolEntry) toolEntry;
          PaletteStack stack = new PaletteStack(stackToolEntry.getLabel(), stackToolEntry.getDescription(), GraphitiUi
              .getImageService().getImageDescriptorForId(cfgProvider.getDiagramTypeProvider().getProviderId(), stackToolEntry.getIconId()));
          drawer.add(stack);
          List<ICreationToolEntry> creationToolEntries = stackToolEntry.getCreationToolEntries();
          for (ICreationToolEntry creationToolEntry : creationToolEntries) {
            PaletteEntry createTool = createTool(creationToolEntry);
            if (createTool != null) {
              stack.add(createTool);
            }
          }
        } else if (toolEntry instanceof IPaletteSeparatorEntry) {
          drawer.add(new PaletteSeparator());
        }
View Full Code Here

Examples of org.eclipse.gef.palette.PaletteStack

    ImageDescriptor.createFromFile(Circuit.class, "icons/and16.gif"),//$NON-NLS-1$
    ImageDescriptor.createFromFile(Circuit.class, "icons/and24.gif")//$NON-NLS-1$
  );
  entries.add(combined);

  PaletteStack liveGroundStack = new PaletteStack(
      LogicMessages.LogicPlugin_Tool_CreationTool_LiveGroundStack_Label,
      LogicMessages.LogicPlugin_Tool_CreationTool_LiveGroundStack_Description, null);
 
  combined = new CombinedTemplateCreationEntry(
    LogicMessages.LogicPlugin_Tool_CreationTool_LiveOutput_Label,
    LogicMessages.LogicPlugin_Tool_CreationTool_LiveOutput_Description,
    new SimpleFactory(LiveOutput.class),
    ImageDescriptor.createFromFile(Circuit.class, "icons/live16.gif"),//$NON-NLS-1$
    ImageDescriptor.createFromFile(Circuit.class, "icons/live24.gif")//$NON-NLS-1$
  );
  liveGroundStack.add(combined);

  combined = new CombinedTemplateCreationEntry(
    LogicMessages.LogicPlugin_Tool_CreationTool_Ground_Label,
    LogicMessages.LogicPlugin_Tool_CreationTool_Ground_Description,
    new SimpleFactory(GroundOutput.class),
    ImageDescriptor.createFromFile(Circuit.class, "icons/ground16.gif"),//$NON-NLS-1$
    ImageDescriptor.createFromFile(Circuit.class, "icons/ground24.gif")//$NON-NLS-1$
  );
  liveGroundStack.add(combined);

  entries.add(liveGroundStack);
 
  drawer.addAll(entries);
  return drawer;
View Full Code Here

Examples of org.eclipse.gef.palette.PaletteStack

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

  PaletteStack marqueeStack = new PaletteStack(LogicMessages.Marquee_Stack, "", null); //$NON-NLS-1$
  marqueeStack.add(new MarqueeToolEntry());
  MarqueeToolEntry marquee = new MarqueeToolEntry();
  marquee.setToolProperty(MarqueeSelectionTool.PROPERTY_MARQUEE_BEHAVIOR,
      new Integer(MarqueeSelectionTool.BEHAVIOR_CONNECTIONS_TOUCHED));
  marqueeStack.add(marquee);
  marquee = new MarqueeToolEntry();
  marquee.setToolProperty(MarqueeSelectionTool.PROPERTY_MARQUEE_BEHAVIOR,
      new Integer(MarqueeSelectionTool.BEHAVIOR_CONNECTIONS_TOUCHED
      | MarqueeSelectionTool.BEHAVIOR_NODES_CONTAINED));
  marqueeStack.add(marquee);
  marqueeStack.setUserModificationPermission(PaletteEntry.PERMISSION_NO_MODIFICATION);
  entries.add(marqueeStack);
 
  tool = new ConnectionCreationToolEntry(
    LogicMessages.LogicPlugin_Tool_ConnectionCreationTool_ConnectionCreationTool_Label,
    LogicMessages.LogicPlugin_Tool_ConnectionCreationTool_ConnectionCreationTool_Description,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.