Package org.eclipse.emf.ecp.common.utilities

Examples of org.eclipse.emf.ecp.common.utilities.ShortLabelProvider


    linkRadioGroup.setText("action");
    GridLayout layout = new GridLayout(1, false);
    linkRadioGroup.setLayout(layout);
    linkRadioGroup.setToolTipText("please select an action");

    String targetStr = oldTarget != null ? new ShortLabelProvider()
        .getText(oldTarget) : "none";
    keepTargetCheckBox = new Button(linkRadioGroup, SWT.RADIO);

    keepTargetCheckBox.setText("keep old link target (" + targetStr + ")");
    GridData gridData = new GridData();
View Full Code Here


      public void widgetSelected(SelectionEvent e) {
        if (factorTable.getEntries().size() > 0
            && MessageDialog.openQuestion(part.getBaseComposite()
                .getShell(), "Delete all entries",
                "Do you really want to delete all entries of "
                    + new ShortLabelProvider()
                        .getText(factorTable) + "?"))
          new ClearFactorTableEntriesCommand(factorTable).runAsJob();
      }

    };
View Full Code Here

      @Override
      public void widgetSelected(SelectionEvent e) {
        if (MessageDialog.openQuestion(part.getBaseComposite()
            .getShell(), "Delete factor table",
            "Do you really want to delete "
                + new ShortLabelProvider().getText(factorTable)
                + "?"))
          new DeleteFactorTableCommand(factorTable).runAsJob();
      }

    };
View Full Code Here

        // only ask if category has no children
        if (category.getChildren().size() == 0
            || MessageDialog.openQuestion(part.getBaseComposite()
                .getShell(), "Delete factor category",
                "Do you really want to delete "
                    + new ShortLabelProvider()
                        .getText(category)
                    + " and all children?"))
          new DeleteFTEntryCommand(category).runAsJob();
      }
View Full Code Here

        // only ask if category has no children
        if (factor.getChildren().size() == 0
            || MessageDialog.openQuestion(part.getBaseComposite()
                .getShell(), "Delete factor",
                "Do you really want to delete "
                    + new ShortLabelProvider()
                        .getText(factor)
                    + " and all children?"))

          new DeleteFTEntryCommand(factor).runAsJob();
      }
View Full Code Here

      public void widgetSelected(SelectionEvent e) {
        if (ic.getInfluencingFactors().size() > 0
            && MessageDialog.openQuestion(part.getBaseComposite()
                .getShell(), "Delete all InfluencingFactors",
                "Do you really want to delete all influencings factors of "
                    + new ShortLabelProvider().getText(ic)
                    + "?"))

          new ClearIssueCardInfluencingFactorsCommand(ic).runAsJob();
      }
View Full Code Here

      public void widgetSelected(SelectionEvent e) {
        if (ic.getRelatedIssues().size() > 0
            && MessageDialog.openQuestion(part.getBaseComposite()
                .getShell(), "Delete all RelatedIssues",
                "Do you really want to delete all RelatedIssues of "
                    + new ShortLabelProvider().getText(ic)
                    + "?"))

          new ClearIssueCardRelatedIssuesCommand(ic).runAsJob();
      }
View Full Code Here

      public void widgetSelected(SelectionEvent e) {
        if (ic.getStrategies().size() > 0
            && MessageDialog.openQuestion(part.getBaseComposite()
                .getShell(), "Delete all strategies",
                "Do you really want to delete all strategies of "
                    + new ShortLabelProvider().getText(ic)
                    + "?"))

          new ClearIssueCardStrategiesCommand(ic).runAsJob();
      }
View Full Code Here

      @Override
      public void widgetSelected(SelectionEvent e) {
        if (MessageDialog.openQuestion(part.getBaseComposite()
            .getShell(), "Delete IssueCard",
            "Do you really want to delete "
                + new ShortLabelProvider().getText(ic) + "?"))
          new DeleteIssueCardCommand(ic).runAsJob();
      }
    };
  }
View Full Code Here

   */
  public void setTarget(EObject target) {

    this.target = target;
    if (target != null) {
      setTargetDescription(new ShortLabelProvider().getText(target));
    } else {
      setTargetDescription("");
    }

    updateLinkDisplay();
View Full Code Here

TOP

Related Classes of org.eclipse.emf.ecp.common.utilities.ShortLabelProvider

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.