Search in sources :

Example 1 with GenerateSelectSQLAction

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());
}
Also used : MetadataRefreshAction(org.talend.sqlbuilder.actions.MetadataRefreshAction) DeleteQueryAction(org.talend.sqlbuilder.actions.DeleteQueryAction) GenerateSelectSQLAction(org.talend.sqlbuilder.actions.GenerateSelectSQLAction) OpenQueryAction(org.talend.sqlbuilder.actions.OpenQueryAction) OpenNewEditorAction(org.talend.sqlbuilder.actions.OpenNewEditorAction) ShowQueryPropertyAction(org.talend.sqlbuilder.actions.ShowQueryPropertyAction)

Example 2 with GenerateSelectSQLAction

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();
}
Also used : GenerateSelectSQLAction(org.talend.sqlbuilder.actions.GenerateSelectSQLAction) RepositoryNode(org.talend.repository.model.RepositoryNode) IRepositoryNode(org.talend.repository.model.IRepositoryNode)

Aggregations

GenerateSelectSQLAction (org.talend.sqlbuilder.actions.GenerateSelectSQLAction)2 IRepositoryNode (org.talend.repository.model.IRepositoryNode)1 RepositoryNode (org.talend.repository.model.RepositoryNode)1 DeleteQueryAction (org.talend.sqlbuilder.actions.DeleteQueryAction)1 MetadataRefreshAction (org.talend.sqlbuilder.actions.MetadataRefreshAction)1 OpenNewEditorAction (org.talend.sqlbuilder.actions.OpenNewEditorAction)1 OpenQueryAction (org.talend.sqlbuilder.actions.OpenQueryAction)1 ShowQueryPropertyAction (org.talend.sqlbuilder.actions.ShowQueryPropertyAction)1