use of org.talend.dq.analysis.parameters.AnalysisParameter in project tdq-studio-se by Talend.
the class AnalyzeColumnAction method openStandardAnalysisDialog.
private int openStandardAnalysisDialog(AnalysisType type) {
// MOD klliu 2011-02-16 Modify this action for distincting CreateNewAnalysisAction feature 15387
IRepositoryNode firstElement = (RepositoryNode) this.selection.getFirstElement();
IRepositoryViewObject viewObject = firstElement.getObject();
Item item = viewObject.getProperty().getItem();
ConnectionItem connectionItem = (ConnectionItem) item;
Connection connection = connectionItem.getConnection();
IRepositoryNode repositoryNode = RepositoryNodeHelper.recursiveFind(connection);
AnalysisParameter parameter = new AnalysisParameter();
parameter.setConnectionRepNode(repositoryNode);
Wizard wizard = WizardFactory.createAnalysisWizard(type, parameter);
wizard.setForcePreviousAndNextButtons(true);
WizardDialog dialog = new WizardDialog(null, wizard);
dialog.setPageSize(500, 340);
return dialog.open();
}
use of org.talend.dq.analysis.parameters.AnalysisParameter in project tdq-studio-se by Talend.
the class ColumnWizard method addPages.
/*
* (non-Javadoc)
*
* @see org.eclipse.jface.wizard.Wizard#addPages()
*/
@Override
public void addPages() {
addPage(new AnalysisMetadataWizardPage());
AnalysisParameter parameter = (AnalysisParameter) getParameter();
if (parameter.getConnectionRepNode() == null && (parameter.getAnalysisType().equals(AnalysisType.MULTIPLE_COLUMN) || parameter.getAnalysisType().equals(AnalysisType.COLUMN_SET))) {
selectionPage = new ColumnAnalysisDOSelectionPage();
addPage(selectionPage);
}
for (IWizardPage page : getExtenalPages()) {
addPage(page);
}
}
use of org.talend.dq.analysis.parameters.AnalysisParameter in project tdq-studio-se by Talend.
the class MatchWizard method addPages.
// make the next button available and the next page is to select columns
@Override
public void addPages() {
metadataPage = new AnalysisMetadataWizardPage();
addPage(metadataPage);
AnalysisParameter parameter = (AnalysisParameter) getParameter();
if (parameter.getConnectionRepNode() == null && parameter.getAnalysisType().equals(AnalysisType.MATCH_ANALYSIS)) {
selectionPage = new ColumnAnalysisDOSelectionPage(new MatchAnaColumnContentProvider(true));
addPage(selectionPage);
}
for (IWizardPage page : getExtenalPages()) {
addPage(page);
}
}
Aggregations