Search in sources :

Example 6 with AnalysisParameter

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();
}
Also used : Item(org.talend.core.model.properties.Item) ConnectionItem(org.talend.core.model.properties.ConnectionItem) IRepositoryNode(org.talend.repository.model.IRepositoryNode) ConnectionItem(org.talend.core.model.properties.ConnectionItem) AnalysisParameter(org.talend.dq.analysis.parameters.AnalysisParameter) IRepositoryViewObject(org.talend.core.model.repository.IRepositoryViewObject) Connection(org.talend.core.model.metadata.builder.connection.Connection) IRepositoryNode(org.talend.repository.model.IRepositoryNode) RepositoryNode(org.talend.repository.model.RepositoryNode) Wizard(org.eclipse.jface.wizard.Wizard) WizardDialog(org.eclipse.jface.wizard.WizardDialog)

Example 7 with AnalysisParameter

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);
    }
}
Also used : AnalysisParameter(org.talend.dq.analysis.parameters.AnalysisParameter) IWizardPage(org.eclipse.jface.wizard.IWizardPage) AnalysisMetadataWizardPage(org.talend.dataprofiler.core.ui.wizard.analysis.AnalysisMetadataWizardPage)

Example 8 with AnalysisParameter

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);
    }
}
Also used : MatchAnaColumnContentProvider(org.talend.dataprofiler.core.ui.wizard.analysis.provider.MatchAnaColumnContentProvider) AnalysisParameter(org.talend.dq.analysis.parameters.AnalysisParameter) IWizardPage(org.eclipse.jface.wizard.IWizardPage) AnalysisMetadataWizardPage(org.talend.dataprofiler.core.ui.wizard.analysis.AnalysisMetadataWizardPage)

Aggregations

AnalysisParameter (org.talend.dq.analysis.parameters.AnalysisParameter)8 IWizardPage (org.eclipse.jface.wizard.IWizardPage)2 OpeningHelpWizardDialog (org.talend.dataprofiler.core.ui.utils.OpeningHelpWizardDialog)2 AnalysisMetadataWizardPage (org.talend.dataprofiler.core.ui.wizard.analysis.AnalysisMetadataWizardPage)2 IContext (org.eclipse.help.IContext)1 IPreferenceStore (org.eclipse.jface.preference.IPreferenceStore)1 DoubleClickEvent (org.eclipse.jface.viewers.DoubleClickEvent)1 IDoubleClickListener (org.eclipse.jface.viewers.IDoubleClickListener)1 ISelectionChangedListener (org.eclipse.jface.viewers.ISelectionChangedListener)1 IStructuredSelection (org.eclipse.jface.viewers.IStructuredSelection)1 SelectionChangedEvent (org.eclipse.jface.viewers.SelectionChangedEvent)1 Wizard (org.eclipse.jface.wizard.Wizard)1 WizardDialog (org.eclipse.jface.wizard.WizardDialog)1 GridData (org.eclipse.swt.layout.GridData)1 Label (org.eclipse.swt.widgets.Label)1 Text (org.eclipse.swt.widgets.Text)1 Test (org.junit.Test)1 Connection (org.talend.core.model.metadata.builder.connection.Connection)1 ConnectionItem (org.talend.core.model.properties.ConnectionItem)1 Item (org.talend.core.model.properties.Item)1