private void onRemoveGraph() {
   // i18n[graph.delGraph=Do you really wish to delete this graph?]
   Window parent = SwingUtilities.windowForComponent(_desktopPane);
   int res = JOptionPane.showConfirmDialog(parent, s_stringMgr.getString("graph.delGraph"));
   if (res == JOptionPane.YES_OPTION) {
     _listener.removeRequest();
   }
 }
  private void onRenameGraph() {

    // i18n[graph.newName=Please enter a new name]
    Window parent = SwingUtilities.windowForComponent(_desktopPane);
    String newName = JOptionPane.showInputDialog(parent, s_stringMgr.getString("graph.newName"));
    if (null != newName && 0 != newName.trim().length()) {
      _listener.renameRequest(newName);
    }
  }
  private void onTablesDroped(DropTargetDropEvent dtde) {
    try {
      Object transferData =
          dtde.getTransferable()
              .getTransferData(dtde.getTransferable().getTransferDataFlavors()[0]);

      if (transferData instanceof ObjectTreeDndTransfer) {
        ObjectTreeDndTransfer objectTreeDndTransfer = (ObjectTreeDndTransfer) transferData;

        if (false
            == objectTreeDndTransfer.getSessionIdentifier().equals(_session.getIdentifier())) {
          JOptionPane.showMessageDialog(
              SwingUtilities.windowForComponent(_desktopPane),
              s_stringMgr.getString("GraphDesktopController.tableDropedFormOtherSession"));
          return;
        }

        _listener.tablesDropped(objectTreeDndTransfer.getSelectedTables(), dtde.getLocation());
      }

    } catch (Exception e) {
      throw new RuntimeException(e);
    }
  }
 private void onSaveGraph() {
   _listener.saveGraphRequested();
 }
 private void onRefreshAllTables() {
   _listener.refreshAllTablesRequested();
 }
 private void onScriptAllTables() {
   _listener.scriptAllTablesRequested();
 }
 private void onToggleWindowTab() {
   _listener.toggleWindowTab();
 }
 private void onAllTablesFilteredSelectedOrder() {
   _listener.allTablesFilteredSelectedOrderRequested();
 }
 private void onAllTablesDbOrder() {
   _listener.allTablesDbOrderRequested();
 }
 private void onAllTablesPkConstOrder() {
   _listener.allTablesPkConstOrderRequested();
 }
 private void onShowQualifiedTableNames() {
   _listener.showQualifiedTableNamesRequested();
 }