本文整理匯總了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;
}
示例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;
}
示例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);
}
示例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;
}
示例5: update
import oracle.ide.controller.IdeAction; //導入依賴的package包/類
public boolean update(IdeAction action, Context context) {
return true;
}
示例6: handleEvent
import oracle.ide.controller.IdeAction; //導入依賴的package包/類
public boolean handleEvent(IdeAction action, Context context) {
return false;
}
示例7: handleEvent
import oracle.ide.controller.IdeAction; //導入依賴的package包/類
public boolean handleEvent(IdeAction action, Context context) {
((Worksheet) context.getView()).appendText(query);
return true;
}
示例8: update
import oracle.ide.controller.IdeAction; //導入依賴的package包/類
public boolean update(IdeAction action, Context context) {
action.setEnabled(enabled);
return true;
}
示例9: update
import oracle.ide.controller.IdeAction; //導入依賴的package包/類
@Override
public boolean update(IdeAction ideAction, Context context) {
return true;
}