Examples of ConnectionCreationToolEntry


Examples of org.eclipse.gef.palette.ConnectionCreationToolEntry

  }

  @Override
  protected List<PaletteEntry> createConnectionTools() {
    List<PaletteEntry> entries = new ArrayList<PaletteEntry>();
    ToolEntry tool = new ConnectionCreationToolEntry(
        Messages.getString("IntegrationEditorPaletteFactory.CONNECTION_COMPONENT_TITLE"), Messages.getString("IntegrationEditorPaletteFactory.CONNECTION_COMPONENT_DESCRIPTION"), //$NON-NLS-1$ //$NON-NLS-2$
        new TransitionCreationFactory(), ConfigGraphCommonImages.CONNECTION_SOLID,
        ConfigGraphCommonImages.CONNECTION_SOLID);
    entries.add(tool);

    tool = new ConnectionCreationToolEntry(
        "mapping/recipient/wire-tap", //$NON-NLS-1$
        Messages.getString("IntegrationEditorPaletteFactory.WIRE_TAP_COMPONENT_DESCRIPTION"), new AlternateTransitionCreationFactory(), ConfigGraphCommonImages.CONNECTION_DASHED, //$NON-NLS-1$
        ConfigGraphCommonImages.CONNECTION_DASHED);
    entries.add(tool);
    return entries;
View Full Code Here

Examples of org.eclipse.gef.palette.ConnectionCreationToolEntry

  }

  @Override
  protected List<PaletteEntry> createConnectionTools() {
    List<PaletteEntry> entries = new ArrayList<PaletteEntry>();
    ToolEntry tool = new ConnectionCreationToolEntry(Messages
        .getString("BatchEditorPaletteFactory.NEXT_CONNECTION_TITLE"), Messages //$NON-NLS-1$
        .getString("BatchEditorPaletteFactory.NEXT_CONNECTION_DESCRIPTION"), new TransitionCreationFactory(), //$NON-NLS-1$
        ConfigGraphCommonImages.CONNECTION_SOLID, ConfigGraphCommonImages.CONNECTION_SOLID);
    entries.add(tool);
    return entries;
View Full Code Here

Examples of org.eclipse.gef.palette.ConnectionCreationToolEntry

    PaletteSeparator sep = new PaletteSeparator(Activator.PLUGIN_ID + ".palette.sep2");
    sep.setUserModificationPermission(PaletteEntry.PERMISSION_NO_MODIFICATION);
    entries.add(sep);

    tool = new ConnectionCreationToolEntry("Transition", "Create a Transition",
        new SimpleFactory(StateTransition.class), WebflowImages.DESC_OBJS_CONNECTION,
        WebflowImages.DESC_OBJS_ELSE_CONNECTION);
    entries.add(tool);
    tool = new ConnectionCreationToolEntry("Else Transition", "Create a Transition",
        new SimpleFactory(IfTransition.class), WebflowImages.DESC_OBJS_ELSE_CONNECTION,
        WebflowImages.DESC_OBJS_ELSE_CONNECTION);
    ;
    entries.add(tool);
    controlGroup.addAll(entries);
View Full Code Here

Examples of org.eclipse.gef.palette.ConnectionCreationToolEntry

        return drawer;
    }
   
    public PaletteEntry createConnectionEntry() {
        final ElementConnectionFactory normalConnectionFactory = new ConnectionWrapperFactory();
        PaletteEntry tool = new ConnectionCreationToolEntry(
            "Sequence Flow",
            "Creating connections",
            new CreationFactory() {
                public Object getNewObject() {
                    return normalConnectionFactory.createElementConnection();
View Full Code Here

Examples of org.eclipse.graphiti.palette.impl.ConnectionCreationToolEntry

    ret.add(compartmentEntry);
    // add all create-connection-features to the new stack-entry
    ICreateConnectionFeature[] createConnectionFeatures = featureProvider.getCreateConnectionFeatures();
    for (ICreateConnectionFeature cf : createConnectionFeatures) {
      if (pref.isEnabled(FeatureMap.getElement(cf))) {
        ConnectionCreationToolEntry connectionCreationToolEntry = new ConnectionCreationToolEntry(
            cf.getCreateName(), cf.getCreateDescription(), cf.getCreateImageId(),
            cf.getCreateLargeImageId());
        connectionCreationToolEntry.addCreateConnectionFeature(cf);
        compartmentEntry.addToolEntry(connectionCreationToolEntry);
      }
    }
  }
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.