use of org.talend.dataprofiler.core.ui.action.actions.PackageFilterAction in project tdq-studio-se by Talend.
the class MetaDataFilterProvider method fillContextMenu.
@Override
public void fillContextMenu(IMenuManager menu) {
// MOD mzhao user readonly role on svn repository mode.
if (!isShowMenu()) {
return;
}
TreeSelection currentSelection = ((TreeSelection) this.getContext().getSelection());
Object firstElement = currentSelection.getFirstElement();
if (firstElement instanceof IRepositoryNode) {
IRepositoryNode node = (IRepositoryNode) firstElement;
if (node instanceof DBConnectionRepNode) {
PackageFilterAction packageFilterAction = new PackageFilterAction(node);
menu.add(packageFilterAction);
} else if (node instanceof DBTableRepNode || node instanceof DBViewRepNode) {
ColumnFilterAction ecfAction = new ColumnFilterAction(node);
menu.add(ecfAction);
}
}
}
Aggregations