/** * @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); }
public OdaDataSetTypeElement(DataSetType dataSetType, IConfigurationElement configureElement) { super(dataSetType.getDisplayName()); this.dataSetType = dataSetType; this.configureElement = configureElement; }