use of org.talend.dataprofiler.core.ui.views.DQRespositoryView in project tdq-studio-se by Talend.
the class DQDeleteAction method getSelection.
@Override
public ISelection getSelection() {
ISelection selection = null;
if (currentNode == null) {
if (deleteElements != null) {
selection = super.getSelection();
} else {
// select by UI(tree)
DQRespositoryView findView = CorePlugin.getDefault().getRepositoryView();
selection = findView.getCommonViewer().getSelection();
}
} else {
// new instance of selection for dependency modeleEelemnt.
selection = new StructuredSelection(currentNode);
}
return selection;
}
use of org.talend.dataprofiler.core.ui.views.DQRespositoryView in project tdq-studio-se by Talend.
the class DQEmptyRecycleBinAction method getSelection.
@Override
public ISelection getSelection() {
DQRespositoryView findView = CorePlugin.getDefault().getRepositoryView();
ISelection selection = findView.getCommonViewer().getSelection();
return selection;
}
use of org.talend.dataprofiler.core.ui.views.DQRespositoryView in project tdq-studio-se by Talend.
the class DQEditContextAction method getSelection.
@Override
public ISelection getSelection() {
ISelection selection;
if (node == null) {
// select by UI(tree)
DQRespositoryView findView = CorePlugin.getDefault().getRepositoryView();
selection = findView.getCommonViewer().getSelection();
} else {
// new instance of selection for dependency modeleEelemnt.
selection = new StructuredSelection(node);
}
return selection;
}
use of org.talend.dataprofiler.core.ui.views.DQRespositoryView in project tdq-studio-se by Talend.
the class DQRestoreAction method getSelection.
@Override
public ISelection getSelection() {
DQRespositoryView findView = CorePlugin.getDefault().getRepositoryView();
ISelection selection = findView.getCommonViewer().getSelection();
return selection;
}
Aggregations