use of net.sourceforge.sqlexplorer.plugin.editors.SQLEditor in project tdq-studio-se by Talend.
the class AppendToEditorAction method isEnabled.
public boolean isEnabled() {
TableItem[] ti = _table.getSelection();
if (ti == null || ti.length == 0) {
return false;
}
IWorkbenchPage page = SQLExplorerPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getActivePage();
if (page == null) {
return false;
}
if (page.getActiveEditor() == null) {
return false;
}
if (!(page.getActiveEditor() instanceof SQLEditor)) {
return false;
}
return true;
}
Aggregations