Package org.eclipse.jface.dialogs

Examples of org.eclipse.jface.dialogs.Dialog


    final Integer[] result = new Integer[1];
    final Shell shell = getShell();

    Display.getDefault().syncExec(new Runnable() {
      public void run() {
        Dialog dialog = null;
        if (element instanceof IEndState) {
          dialog = new EndStatePropertiesDialog(shell, parent,
              (IEndState) element);
        }
        else if (element instanceof IViewState) {
          dialog = new ViewStatePropertiesDialog(shell, parent,
              (IViewState) element);
        }
        else if (element instanceof ISubflowState) {
          dialog = new SubFlowStatePropertiesDialog(shell, parent,
              (ISubflowState) element, index);
        }
        else if (element instanceof IActionState) {
          dialog = new ActionStatePropertiesDialog(shell, parent,
              (IActionState) element);
        }
        else if (element instanceof Action) {
          dialog = new ActionPropertiesDialog(shell, parent,
              (Action) element);
        }
        else if (element instanceof BeanAction) {
          dialog = new BeanActionPropertiesDialog(shell, parent,
              (BeanAction) element);
        }
        else if (element instanceof EvaluateAction) {
          dialog = new EvaluateActionPropertiesDialog(shell, parent,
              (EvaluateAction) element);
        }
        else if (element instanceof Set) {
          dialog = new SetActionPropertiesDialog(shell, parent,
              (Set) element);
        }
        else if (element instanceof OutputAttribute) {
          dialog = new InputAttributeEditorDialog(shell,
              (IOutputAttribute) element);
        }
        else if (element instanceof InputAttribute) {
          dialog = new InputAttributeEditorDialog(shell,
              (IInputAttribute) element);
        }
        else if (element instanceof IMapping) {
          dialog = new MappingEditorDialog(shell, (IMapping) element);
        }
        else if (element instanceof ExceptionHandler) {
          dialog = new ExceptionHandlerPropertiesDialog(shell,
              parent, (ExceptionHandler) element);
        }
        else if (element instanceof IStateTransition) {
          dialog = new StateTransitionPropertiesDialog(shell, parent,
              (IStateTransition) element);
        }
        else if (element instanceof IDecisionState) {
          dialog = new DecisionStatePropertiesDialog(shell, parent,
              (IDecisionState) element);
        }
        else if (element instanceof IIf) {
          dialog = new IfPropertiesDialog(shell,
              (IDecisionState) parent, (IIf) element, newMode);
        }
        else if (element instanceof IWebflowState) {
          dialog = new WebflowStatePropertiesDialog(shell,
              (IWebflowState) element);
        }

        if (dialog != null) {
          dialog.setBlockOnOpen(true);
          result[0] = dialog.open();
        }
      }
    });
    return result[0];
  }
View Full Code Here


   */
  private void editReviewId() {
    int selectedIndex = table.getSelectionIndex();
    if (selectedIndex >= 0) {
      ReviewId reviewId = (ReviewId) tableViewer.getElementAt(selectedIndex);
      Dialog dialog = new ReviewIdEditDialog(composite.getShell(), this.project, reviewId);
      dialog.open();
      this.tableViewer.setInput(PropertyResource.getInstance(this.project, true)
          .getReviewIdList());
    }
  }
View Full Code Here

  private void removeReviewId() {
    int selectedIndex = table.getSelectionIndex();
    if (selectedIndex >= 0) {
      ReviewId reviewId = (ReviewId) tableViewer.getElementAt(selectedIndex);
      IFile[] reviewIFiles = FileResource.getReviewIFiles(this.project, reviewId);
      Dialog dialog = new ReviewIdRemovalDialog(composite.getShell(), reviewIFiles);
      dialog.open();
      if (dialog.getReturnCode() == Dialog.OK) {
        // remove review files associated with the review id.
        FileResource.remove(reviewIFiles);
        try {
          PropertyResource propertyResource = PropertyResource
              .getInstance(this.project, false);
View Full Code Here

TOP

Related Classes of org.eclipse.jface.dialogs.Dialog

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.