コード例 #1
0
 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();
   }
 }
コード例 #2
0
  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);
    }
  }
コード例 #3
0
  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);
    }
  }
コード例 #4
0
 private void onSaveGraph() {
   _listener.saveGraphRequested();
 }
コード例 #5
0
 private void onRefreshAllTables() {
   _listener.refreshAllTablesRequested();
 }
コード例 #6
0
 private void onScriptAllTables() {
   _listener.scriptAllTablesRequested();
 }
コード例 #7
0
 private void onToggleWindowTab() {
   _listener.toggleWindowTab();
 }
コード例 #8
0
 private void onAllTablesFilteredSelectedOrder() {
   _listener.allTablesFilteredSelectedOrderRequested();
 }
コード例 #9
0
 private void onAllTablesDbOrder() {
   _listener.allTablesDbOrderRequested();
 }
コード例 #10
0
 private void onAllTablesPkConstOrder() {
   _listener.allTablesPkConstOrderRequested();
 }
コード例 #11
0
 private void onShowQualifiedTableNames() {
   _listener.showQualifiedTableNamesRequested();
 }