Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


oracle.ide.cmd
Class SaveAllCommand

java.lang.Object
  extended by oracle.ide.controller.Command
      extended by oracle.ide.cmd.SaveAllCommand


public class SaveAllCommand
extends Command

The SaveAllCommand class implements the SaveAll command.

See Also:
Command

Field Summary

 

Fields inherited from class oracle.ide.controller.Command
CANCEL, context, EXECUTING, MULTI_NODE, NO_CHANGE, NO_UNDO, NORMAL, OK, type

 

Constructor Summary
SaveAllCommand()
          Constructor.

 

Method Summary
 int doit()
          Executes the redo command.
static int saveAll()
           
static int saveAll(boolean silent)
          Save all open editors.
static void saveSystemFiles()
          Saves all system files

 

Methods inherited from class oracle.ide.controller.Command
enableConfirmation, getAffectedNodes, getContext, getData, getId, getName, getType, isGlobal, setContext, setData, undo

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

SaveAllCommand

public SaveAllCommand()
Constructor.

Method Detail

saveAll

public static int saveAll()
                   throws java.lang.Exception
Throws:
java.lang.Exception

saveAll

public static int saveAll(boolean silent)
                   throws java.lang.Exception
Save all open editors. Version control operations might make this method slow to operate. To assist with resolving this slowness, this method can be called on on a worker thread, and all work will be done through a SwingWorker. If called on the Event Thread, this method will do all work on that Event Thread, and thus might hang the Event Thread for a little bit. In any case, this method will not come back till the work is done or an exception is thrown
Parameters:
silent - If true, ignore any failures during the save. If false, show a dialog to the user showing all failures, if any. Update the status bar with the results.
Returns:
Always returns OK
Throws:
java.lang.Exception - if called on a worker thread, which would be an InterruptedException if the thread got interrupted

doit

public int doit()
         throws java.lang.Exception
Executes the redo command. The command processor manages the undo/redo functionality.
Specified by:
doit in class Command
Throws:
java.lang.Exception

saveSystemFiles

public static void saveSystemFiles()
Saves all system files

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


Copyright © 1997, 2012, Oracle. All rights reserved.