Package org.eclipse.graphiti.features

Examples of org.eclipse.graphiti.features.IFeature


  protected void addEntry(IMenuManager manager, IContextMenuEntry cmEntry, ICustomContext context, String groupID,
      String textParentEntry) {
    String text = cmEntry.getText();
    IContextMenuEntry[] children = cmEntry.getChildren();
    if (children.length == 0) {
      IFeature feature = cmEntry.getFeature();
      if (feature instanceof ICustomFeature && feature.isAvailable(context)) {
        IAction action = new CustomAction((ICustomFeature) feature, context, getBehavior());
        if (textParentEntry != null) {
          text = textParentEntry + " " + text; //$NON-NLS-1$
        }
        action.setText(text);
View Full Code Here


  /**
   * Configure the ContextEntryFeature passed into the AbstractContextEntry constructor
   */
  public static void configure(AbstractContextEntry entry) {
    IFeature feature = entry.getFeature();
    if (feature instanceof ContextEntryFeature) {
      ContextEntryFeature aFeature = (ContextEntryFeature) feature;
      aFeature.setContextEntry(entry);
    }

View Full Code Here

    } else if (source == documentationText) {
      oldValue = userTask.getDocumentation();
    }
   
    if (StringUtils.isEmpty(oldValue) || oldValue.equals(newValue) == false) {
      IFeature feature = new AbstractFeature(getDiagramTypeProvider().getFeatureProvider()) {
       
        @Override
        public void execute(IContext context) {
          if (source == assigneeText) {
            userTask.setAssignee(assigneeText.getText());
View Full Code Here

TOP

Related Classes of org.eclipse.graphiti.features.IFeature

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.