Search in sources :

Example 1 with RespositoryDetailView

use of org.talend.dataprofiler.core.ui.views.RespositoryDetailView in project tdq-studio-se by Talend.

the class AnalysisColumnCompareTreeViewer method showDetailView.

public void showDetailView(TableViewer tableView) {
    TableItem[] selection = tableView.getTable().getSelection();
    if (selection.length > 0) {
        RespositoryDetailView detailView = CorePlugin.getDefault().getRespositoryDetailView();
        if (detailView == null) {
            return;
        }
        DQRespositoryView dqview = CorePlugin.getDefault().getRepositoryView();
        detailView.selectionChanged(dqview, new StructuredSelection(selection[0].getData()));
    }
}
Also used : TableItem(org.eclipse.swt.widgets.TableItem) IStructuredSelection(org.eclipse.jface.viewers.IStructuredSelection) StructuredSelection(org.eclipse.jface.viewers.StructuredSelection) DQRespositoryView(org.talend.dataprofiler.core.ui.views.DQRespositoryView) RespositoryDetailView(org.talend.dataprofiler.core.ui.views.RespositoryDetailView)

Example 2 with RespositoryDetailView

use of org.talend.dataprofiler.core.ui.views.RespositoryDetailView in project tdq-studio-se by Talend.

the class AnalysisColumnNominalIntervalTreeViewer method showDetailView.

private void showDetailView(Tree newTree) {
    TreeItem[] selection = newTree.getSelection();
    if (selection.length > 0) {
        RespositoryDetailView detailView = CorePlugin.getDefault().getRespositoryDetailView();
        if (detailView == null) {
            return;
        }
        DQRespositoryView dqview = CorePlugin.getDefault().getRepositoryView();
        detailView.selectionChanged(dqview, new StructuredSelection(selection[0].getData(COLUMN_INDICATOR_KEY)));
    }
}
Also used : TreeItem(org.eclipse.swt.widgets.TreeItem) StructuredSelection(org.eclipse.jface.viewers.StructuredSelection) DQRespositoryView(org.talend.dataprofiler.core.ui.views.DQRespositoryView) RespositoryDetailView(org.talend.dataprofiler.core.ui.views.RespositoryDetailView)

Example 3 with RespositoryDetailView

use of org.talend.dataprofiler.core.ui.views.RespositoryDetailView in project tdq-studio-se by Talend.

the class ModelElementTreeMenuProvider method showDetailView.

/**
 * DOC Zqin Comment method "showSelectedElements".MOD 2009-01-07 mzhao.
 *
 * @param newTree
 */
public void showDetailView(Tree newTree) {
    TreeItem[] selection = newTree.getSelection();
    if (selection.length > 0) {
        RespositoryDetailView detailView = CorePlugin.getDefault().getRespositoryDetailView();
        if (detailView == null) {
            return;
        }
        DQRespositoryView dqview = CorePlugin.getDefault().getRepositoryView();
        RepositoryNode node = getSelectedNode(selection);
        detailView.selectionChanged(dqview, new StructuredSelection(node));
    }
}
Also used : TreeItem(org.eclipse.swt.widgets.TreeItem) StructuredSelection(org.eclipse.jface.viewers.StructuredSelection) RepositoryNode(org.talend.repository.model.RepositoryNode) IRepositoryNode(org.talend.repository.model.IRepositoryNode) DQRespositoryView(org.talend.dataprofiler.core.ui.views.DQRespositoryView) RespositoryDetailView(org.talend.dataprofiler.core.ui.views.RespositoryDetailView)

Aggregations

StructuredSelection (org.eclipse.jface.viewers.StructuredSelection)3 DQRespositoryView (org.talend.dataprofiler.core.ui.views.DQRespositoryView)3 RespositoryDetailView (org.talend.dataprofiler.core.ui.views.RespositoryDetailView)3 TreeItem (org.eclipse.swt.widgets.TreeItem)2 IStructuredSelection (org.eclipse.jface.viewers.IStructuredSelection)1 TableItem (org.eclipse.swt.widgets.TableItem)1 IRepositoryNode (org.talend.repository.model.IRepositoryNode)1 RepositoryNode (org.talend.repository.model.RepositoryNode)1