當前位置: 首頁>>代碼示例>>Java>>正文


Java IdeAction類代碼示例

本文整理匯總了Java中oracle.ide.controller.IdeAction的典型用法代碼示例。如果您正苦於以下問題:Java IdeAction類的具體用法?Java IdeAction怎麽用?Java IdeAction使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


IdeAction類屬於oracle.ide.controller包,在下文中一共展示了IdeAction類的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: handleEvent

import oracle.ide.controller.IdeAction; //導入依賴的package包/類
@Override
public boolean handleEvent(IdeAction ideAction, Context context) {
    if (!started) {
        //String timeout = JOptionPane.showInputDialog(null, "Please input the desired timeout (in seconds)");
        PollIntervalDialog dlg = new PollIntervalDialog(null);
        dlg.setVisible(true);
        
        Integer pollInterval = dlg.getPollInterval();
        if(pollInterval != null) {
            started = true;
            ConnectionPinger conn = new ConnectionPinger(pollInterval);
            keeper = new Thread(conn);
            keeper.start();
        }
    } else {
        started = false;
        keeper.interrupt();
    }
    return true;
}
 
開發者ID:scristalli,項目名稱:SQL-Developer-4-keepalive,代碼行數:21,代碼來源:KeepaliveController.java

示例2: update

import oracle.ide.controller.IdeAction; //導入依賴的package包/類
@Override
public boolean update(IdeAction ideAction, Context context)
{
  if (ideAction.getCommandId()==EDIT_PERSISTENCE_MAPPING_COMMAND_ID)
  {
    ideAction.setEnabled(false);        
    // only enable when persistance mapping file exists
    URL fileUrl = new PersistenceMappingLoader().getPersistenceMappingFileUrl();
    if (fileUrl!=null)
    {
      InputStream is =FileUtils.getInputStream(fileUrl);
      boolean enabled = is!=null;
      //      System.err.println("EDIT PM ENABLED: "+enabled);
      ideAction.setEnabled(enabled);        
    }
  }
  else
  {
    ideAction.setEnabled(true);      
  }
  return true;
}
 
開發者ID:oracle,項目名稱:mobile-persistence,代碼行數:23,代碼來源:MobileController.java

示例3: menuWillShow

import oracle.ide.controller.IdeAction; //導入依賴的package包/類
@Override
public void menuWillShow(ContextMenu contextMenu) {
    JMenu sm = contextMenu.createSubMenu("SQLMemo", null, 0.1f);

    for (int i = 0; i < QueryManagementDialog.model.getRowCount(); i++) {
        String modelRow = (String) QueryManagementDialog.model.getValueAt(i, 0);
        IdeAction localIdeAction = IdeAction.findOrCreate(Ide.findOrCreateCmdID("QueryInsertCommand" + counter++), null, parseRow(modelRow, 0));
        localIdeAction.addController(new SQLMemoInsertController(parseRow(modelRow, 1)));
        sm.add(contextMenu.createMenuItem(localIdeAction));
    }
    IdeAction manageAction = IdeAction.find("sqldevelopext.sqlmemo.SQLMemoManage");
    sm.add(contextMenu.createMenuItem(manageAction));
    contextMenu.add(sm, 1.0f);
}
 
開發者ID:scristalli,項目名稱:SQLMemo,代碼行數:15,代碼來源:SQLMemoContextMenuListener.java

示例4: handleEvent

import oracle.ide.controller.IdeAction; //導入依賴的package包/類
@Override
  public boolean handleEvent(IdeAction ideAction, Context context)
  {
    if (ideAction.getCommandId()== OPEN_DOC_COMMAND_ID)
    {
      showDoc();      
    }
    else if (ideAction.getCommandId()== EDIT_PERSISTENCE_MAPPING_COMMAND_ID && ideAction.isEnabled())
    {

      WizardManager.getInstance().invokeWizard(new EditPersistenceMappingWizard(),context,null,null);
//      WizardManager.getInstance().invokeWizard(new BusinessObjectsFromRestWSWizard(),context,null,null);
    }
    return true;
  }
 
開發者ID:oracle,項目名稱:mobile-persistence,代碼行數:16,代碼來源:MobileController.java

示例5: update

import oracle.ide.controller.IdeAction; //導入依賴的package包/類
public boolean update(IdeAction action, Context context) {
    return true;
}
 
開發者ID:scristalli,項目名稱:SQLMemo,代碼行數:4,代碼來源:SQLMemoManageController.java

示例6: handleEvent

import oracle.ide.controller.IdeAction; //導入依賴的package包/類
public boolean handleEvent(IdeAction action, Context context) {
    return false;
}
 
開發者ID:scristalli,項目名稱:SQLMemo,代碼行數:4,代碼來源:SQLMemoManageController.java

示例7: handleEvent

import oracle.ide.controller.IdeAction; //導入依賴的package包/類
public boolean handleEvent(IdeAction action, Context context) {
    ((Worksheet) context.getView()).appendText(query);
    return true;
}
 
開發者ID:scristalli,項目名稱:SQLMemo,代碼行數:5,代碼來源:SQLMemoInsertController.java

示例8: update

import oracle.ide.controller.IdeAction; //導入依賴的package包/類
public boolean update(IdeAction action, Context context) {
    action.setEnabled(enabled);
    return true;
}
 
開發者ID:scristalli,項目名稱:SQLMemo,代碼行數:5,代碼來源:SQLMemoEnableController.java

示例9: update

import oracle.ide.controller.IdeAction; //導入依賴的package包/類
@Override
public boolean update(IdeAction ideAction, Context context) {
    return true;
}
 
開發者ID:scristalli,項目名稱:SQL-Developer-4-keepalive,代碼行數:5,代碼來源:KeepaliveController.java


注:本文中的oracle.ide.controller.IdeAction類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。