use of org.talend.sqlbuilder.actions.GenerateSelectSQLAction in project tdi-studio-se by Talend.
the class DBStructureComposite method makeActions.
/**
* qianbing Comment method "makeActions". Makes actions
*/
private void makeActions() {
generateSelectAction = new GenerateSelectSQLAction(treeViewer, builderDialog, false);
openNewEditorAction = new OpenNewEditorAction(treeViewer, builderDialog, builderDialog.getConnParameters(), false);
//$NON-NLS-1$
refreshConnectionAction = new RefreshConnectionAction(treeViewer, Messages.getString("DBStructureComposite.Refresh"));
metadataRefreshAction = new MetadataRefreshAction(treeViewer, builderDialog);
openQueryAction = new OpenQueryAction(treeViewer, builderDialog, builderDialog.getConnParameters());
deleteQueryAction = new DeleteQueryAction(treeViewer, builderDialog);
showQueryPropertyAction = new ShowQueryPropertyAction(treeViewer, builderDialog);
doubleClickAction = new OpenQueryAction(treeViewer, builderDialog, builderDialog.getConnParameters());
}
use of org.talend.sqlbuilder.actions.GenerateSelectSQLAction in project tdi-studio-se by Talend.
the class DBStructureComposite method openNewTableEditor.
/**
* yzhang Comment method "openNewTableEditor".
*/
public void openNewTableEditor() {
final RepositoryNode selectedMetadataTableNode = this.treeLabelProvider.getSelectedExtReposiotryNode();
((GenerateSelectSQLAction) generateSelectAction).setSelectedNode(selectedMetadataTableNode);
generateSelectAction.run();
}
Aggregations