Examples of InternalErrorCDE


Examples of org.apache.uima.taeconfigurator.InternalErrorCDE

      for (int j = 0; j < parms.length; j++) {
        if (getCorrespondingModelParm(parms[j]) == p)
          return parms[j];
      }
    }
    throw new InternalErrorCDE("invalid state");
  }
View Full Code Here

Examples of org.apache.uima.taeconfigurator.InternalErrorCDE

    TreeItem[] items = tree.getItems();
    for (int i = 2; i < items.length; i++) {
      if (getName(items[i].getText()).equals(g.getName()))
        return items[i];
    }
    throw new InternalErrorCDE("invalid state");
  }
View Full Code Here

Examples of org.apache.uima.taeconfigurator.InternalErrorCDE

    TableItem[] items = parent.getItems();
    for (int i = items.length - 1; i >= 0; i--) {
      if (items[i] == item)
        return i;
    }
    throw new InternalErrorCDE("invalid state"); //$NON-NLS-1$
  }
View Full Code Here

Examples of org.apache.uima.taeconfigurator.InternalErrorCDE

   *          group; or may be a regular group with a set of group names
   */
  protected void addNewConfigurationParameterToGUI(ConfigurationParameter newCP, TreeItem group) {

    if (null == group)
      throw new InternalErrorCDE("invalid state"); //$NON-NLS-1$

    // is part of group but could be NOT_IN_ANY_GROUP
    if (null != settingsTree) {
      boolean isCommonOrNotInAnyGrp = COMMON_GROUP.equals(getName(group))
              || NOT_IN_ANY_GROUP.equals(getName(group));
View Full Code Here

Examples of org.apache.uima.taeconfigurator.InternalErrorCDE

    final TreeItem[] items = group.getItems();
    for (int i = 0; i < items.length; i++) {
      if (name.equals(getName(items[i])))
        return items[i];
    }
    throw new InternalErrorCDE("invalid state");
  }
View Full Code Here

Examples of org.apache.uima.taeconfigurator.InternalErrorCDE

    TreeItem[] items = settingsTree.getItems();
    for (int i = 0; i < items.length; i++) {
      if (name.equals(getName(items[i].getText())))
        return items[i];
    }
    throw new InternalErrorCDE("invalid state"); //$NON-NLS-1$
  }
View Full Code Here

Examples of org.apache.uima.taeconfigurator.InternalErrorCDE

    throw new InternalErrorCDE("invalid state"); //$NON-NLS-1$
  }

  protected ConfigurationParameter getCorrespondingModelParm(TreeItem item) {
    if (!isParameter(item))
      throw new InternalErrorCDE("invalid argument"); //$NON-NLS-1$
    return (ConfigurationParameter) item.getData();
  }
View Full Code Here

Examples of org.apache.uima.taeconfigurator.InternalErrorCDE

    return (ConfigurationParameter) item.getData();
  }

  protected ConfigGroup getCorrespondingModelGroup(TreeItem item) {
    if (!isGroup(item))
      throw new InternalErrorCDE("invalid argument"); //$NON-NLS-1$
    return (ConfigGroup) item.getData();
  }
View Full Code Here

Examples of org.apache.uima.taeconfigurator.InternalErrorCDE

   * @param treeItem
   *          in ParameterSection of parameter belonging to (multiple) groups
   */
  public void removeParmSettingFromMultipleGroups(TreeItem parmItem, boolean removeFromGUI) {
    if (!isParameter(parmItem))
      throw new InternalErrorCDE("invalid argument"); //$NON-NLS-1$

    ConfigurationParameterSettings modelSettings = getModelSettings();
    String parmName = getName(parmItem);
    TreeItem parent = parmItem.getParentItem();
    String groupName = getName(parent.getText());
View Full Code Here

Examples of org.apache.uima.taeconfigurator.InternalErrorCDE

  public void removeIncludedParmSettingsFromSingleGroup(String groupName,
          ConfigurationParameter[] cps) {
    ConfigurationParameterSettings modelSettings = getModelSettings();
    // modelSettings.setParameterValue()
    if (groupName.equals(COMMON_GROUP))
      throw new InternalErrorCDE("invalid state"); //$NON-NLS-1$

    if (groupName.equals(NOT_IN_ANY_GROUP)) {
      modelSettings.setParameterSettings(nameValuePairArray0);

    } else {
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.