示例#1
0
  /**
   * @return
   * @throws SemanticException
   */
  private DataSetHandle createDataSetODAV2() throws SemanticException {
    String dataSetTypeName = null;
    if (getSelectedDataSet() instanceof Object[]) {
      DataSetType dataSetElement = (DataSetType) ((Object[]) getSelectedDataSet())[0];
      dataSetTypeName = dataSetElement.getID();
    } else if (getSelectedDataSet() instanceof OdaDataSetTypeElement) {
      dataSetTypeName = ((OdaDataSetTypeElement) getSelectedDataSet()).getDataSetType().getID();
    } else if (getSelectedDataSet() instanceof DataSetTypeElement) {
      dataSetTypeName = ((DataSetTypeElement) getSelectedDataSet()).getDataSetTypeName();
    }

    return createDataSet(dataSetTypeName);
  }
示例#2
0
 public OdaDataSetTypeElement(DataSetType dataSetType, IConfigurationElement configureElement) {
   super(dataSetType.getDisplayName());
   this.dataSetType = dataSetType;
   this.configureElement = configureElement;
 }