Examples of open()


Examples of org.apache.uima.taeconfigurator.editors.ui.dialogs.AddFeatureDialog.open()

    TypeDescription td = getTypeDescriptionFromTableTreeItem(parent);
    // guaranteed non-null - otherwise add button disabled
    TypeDescription localTd = getLocalTypeDefinition(td);
    //
    AddFeatureDialog dialog = new AddFeatureDialog(this, td, null);
    if (dialog.open() == Window.CANCEL) {
      return;
    }

    FeatureDescription fd = localTd.addFeature(null, null, null);
    featureUpdate(fd, dialog);
View Full Code Here

Examples of org.apache.uima.taeconfigurator.editors.ui.dialogs.AddIndexDialog.open()

    if (event.widget == addIndexButton) {
      if (notAllowed("Adding an Index"))
        return;
      // creating the dialog and open it
      AddIndexDialog dialog = new AddIndexDialog(this);
      if (dialog.open() == Window.CANCEL)
        return;

      FsIndexDescription id = UIMAFramework.getResourceSpecifierFactory()
              .createFsIndexDescription();
View Full Code Here

Examples of org.apache.uima.taeconfigurator.editors.ui.dialogs.AddIndexKeyDialog.open()

        return;
      Object o = item.getData();
      if (o instanceof FsIndexDescription) {
        FsIndexDescription fsid = (FsIndexDescription) o;
        AddIndexDialog dialog = new AddIndexDialog(this, fsid);
        if (dialog.open() == Window.CANCEL)
          return;

        valueChanged = false;
        fsid.setLabel(setValueChanged(dialog.indexName, fsid.getLabel()));
        fsid.setTypeName(setValueChanged(dialog.indexType, fsid.getTypeName()));
View Full Code Here

Examples of org.apache.uima.taeconfigurator.editors.ui.dialogs.AddParameterDialog.open()

        if (isParmSelection())
          parentGroup = parentGroup.getParentItem();

        AddParameterDialog dialog = new AddParameterDialog(this, getCorrespondingModelGroup(parentGroup));
                //getName(parentGroup));
        if (dialog.open() == Window.CANCEL)
          return;

        addNewConfigurationParameter(dialog, parentGroup);

        if (null != parentGroup)
View Full Code Here

Examples of org.apache.uima.taeconfigurator.editors.ui.dialogs.AddRemoteServiceDialog.open()

    + "</customResourceSpecifier>";

  private void handleAddRemote() {
    String sDescriptorPath = editor.getFile().getParent().getLocation().toString() + '/';
    AddRemoteServiceDialog dialog = new AddRemoteServiceDialog(this, sDescriptorPath);
    dialog.open();
    if (dialog.getReturnCode() == InputDialog.CANCEL)
      return;

    String sServiceType = dialog.getSelectedServiceTypeName();
    if (sServiceType != null &&
View Full Code Here

Examples of org.apache.uima.taeconfigurator.editors.ui.dialogs.AddSofaDialog.open()

    switch (itemKind) {
      case SOFA_ITEM: {
        boolean existingIsInput = INPUT.equals(editItem.getText(INPUT_COL));
        String existingSofaName = editItem.getText(NAME_COL);
        AddSofaDialog dialog = new AddSofaDialog(this, c, existingSofaName, existingIsInput);
        if (dialog.open() == Window.CANCEL)
          return;

        if (dialog.isInput == existingIsInput && dialog.sofaName.equals(existingSofaName))
          return;
View Full Code Here

Examples of org.apache.uima.taeconfigurator.editors.ui.dialogs.AddTypeDialog.open()

    }
  }

  public void handleAddType() {
    AddTypeDialog dialog = new AddTypeDialog(this);
    if (dialog.open() == Window.CANCEL)
      return;

    TypeSystemDescription tsd = getMergedTypeSystemDescription();
    TypeSystemDescription localTsd = getTypeSystemDescription();
View Full Code Here

Examples of org.apache.uima.taeconfigurator.editors.ui.dialogs.AddTypeToPriorityListDialog.open()

        parent = parent.getParentItem();
      AddTypeToPriorityListDialog dialog = new AddTypeToPriorityListDialog(this,
              editor.definedTypesWithSupers.get(), // types
              getTypePriorityListFromTreeItem(parent).getTypes()); // types already in list

      if (dialog.open() == Window.CANCEL)
        return;

      TypePriorityList typePriorityList = getTypePriorityListFromTreeItem(parent);

      String[] newTypeNames = dialog.getSelectedTypeNames();
View Full Code Here

Examples of org.apache.uima.taeconfigurator.editors.ui.dialogs.CommonInputDialog.open()

              "Specify one or more unique group names, separated by 1 space character, and press OK",
              CommonInputDialog.GROUP_NAMES);

      for (;;) { // stay in loop until get "true" return from add below
        // used for looping while group name set is duplicate
        if (dialog.open() == Window.CANCEL)
          return;
        if (addNewOrEditExistingGroup(dialog.getValue(), null))
          break;
      }
      commonActionFinish();
View Full Code Here

Examples of org.apache.uima.taeconfigurator.editors.ui.dialogs.EditSofaBindingsDialog.open()

                      MessageDialog.WARNING);
      return;
    }

    EditSofaBindingsDialog dialog = new EditSofaBindingsDialog(this, aggrSofa, availAndBoundSofas);
    if (dialog.open() == Window.CANCEL)
      return;
    removeAggr(aggrSofa);
    addAggr(aggrSofa, dialog.selectedSofaNames);
    removeChildren(selected);
    fillBindings(selected, aggrSofa);
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.