Search in sources :

Example 1 with GetDbConnectionAction

use of org.apache.cayenne.modeler.action.GetDbConnectionAction in project cayenne by apache.

the class TreeToolbarPanel method createButtons.

private void createButtons(DraggableTreePanel panel) {
    schemaButton = createButton(AddSchemaAction.class, 0);
    catalogButton = createButton(AddCatalogAction.class, 0);
    includeTableButton = createButton(AddIncludeTableAction.class, 1);
    excludeTableButton = createButton(AddExcludeTableAction.class, 2, ExcludeTable.class);
    includeColumnButton = createButton(AddIncludeColumnAction.class, 2, IncludeColumn.class);
    excludeColumnButton = createButton(AddExcludeColumnAction.class, 2, ExcludeColumn.class);
    includeProcedureButton = createButton(AddIncludeProcedureAction.class, 2, IncludeProcedure.class);
    excludeProcedureButton = createButton(AddExcludeProcedureAction.class, 3, ExcludeProcedure.class);
    editButton = createButton(EditNodeAction.class, 0);
    DeleteNodeAction deleteNodeAction = projectController.getApplication().getActionManager().getAction(DeleteNodeAction.class);
    deleteNodeAction.setTree(reverseEngineeringTree);
    deleteNodeAction.setPanel(panel);
    deleteButton = deleteNodeAction.buildButton(0);
    GetDbConnectionAction action = projectController.getApplication().getActionManager().getAction(GetDbConnectionAction.class);
    configureButton = action.buildButton(0);
}
Also used : AddIncludeColumnAction(org.apache.cayenne.modeler.action.dbimport.AddIncludeColumnAction) AddCatalogAction(org.apache.cayenne.modeler.action.dbimport.AddCatalogAction) GetDbConnectionAction(org.apache.cayenne.modeler.action.GetDbConnectionAction) AddExcludeTableAction(org.apache.cayenne.modeler.action.dbimport.AddExcludeTableAction) ExcludeColumn(org.apache.cayenne.dbsync.reverse.dbimport.ExcludeColumn) IncludeColumn(org.apache.cayenne.dbsync.reverse.dbimport.IncludeColumn) ExcludeTable(org.apache.cayenne.dbsync.reverse.dbimport.ExcludeTable) AddSchemaAction(org.apache.cayenne.modeler.action.dbimport.AddSchemaAction) AddExcludeProcedureAction(org.apache.cayenne.modeler.action.dbimport.AddExcludeProcedureAction) DeleteNodeAction(org.apache.cayenne.modeler.action.dbimport.DeleteNodeAction) AddIncludeTableAction(org.apache.cayenne.modeler.action.dbimport.AddIncludeTableAction) AddExcludeColumnAction(org.apache.cayenne.modeler.action.dbimport.AddExcludeColumnAction) ExcludeProcedure(org.apache.cayenne.dbsync.reverse.dbimport.ExcludeProcedure) AddIncludeProcedureAction(org.apache.cayenne.modeler.action.dbimport.AddIncludeProcedureAction) IncludeProcedure(org.apache.cayenne.dbsync.reverse.dbimport.IncludeProcedure) EditNodeAction(org.apache.cayenne.modeler.action.dbimport.EditNodeAction)

Aggregations

ExcludeColumn (org.apache.cayenne.dbsync.reverse.dbimport.ExcludeColumn)1 ExcludeProcedure (org.apache.cayenne.dbsync.reverse.dbimport.ExcludeProcedure)1 ExcludeTable (org.apache.cayenne.dbsync.reverse.dbimport.ExcludeTable)1 IncludeColumn (org.apache.cayenne.dbsync.reverse.dbimport.IncludeColumn)1 IncludeProcedure (org.apache.cayenne.dbsync.reverse.dbimport.IncludeProcedure)1 GetDbConnectionAction (org.apache.cayenne.modeler.action.GetDbConnectionAction)1 AddCatalogAction (org.apache.cayenne.modeler.action.dbimport.AddCatalogAction)1 AddExcludeColumnAction (org.apache.cayenne.modeler.action.dbimport.AddExcludeColumnAction)1 AddExcludeProcedureAction (org.apache.cayenne.modeler.action.dbimport.AddExcludeProcedureAction)1 AddExcludeTableAction (org.apache.cayenne.modeler.action.dbimport.AddExcludeTableAction)1 AddIncludeColumnAction (org.apache.cayenne.modeler.action.dbimport.AddIncludeColumnAction)1 AddIncludeProcedureAction (org.apache.cayenne.modeler.action.dbimport.AddIncludeProcedureAction)1 AddIncludeTableAction (org.apache.cayenne.modeler.action.dbimport.AddIncludeTableAction)1 AddSchemaAction (org.apache.cayenne.modeler.action.dbimport.AddSchemaAction)1 DeleteNodeAction (org.apache.cayenne.modeler.action.dbimport.DeleteNodeAction)1 EditNodeAction (org.apache.cayenne.modeler.action.dbimport.EditNodeAction)1