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);
}
Aggregations