/** * Save all dirty editors in the workbench that are open on files that may * be affected by this operation. Opens a dialog to prompt the user if * <code>confirm</code> is true. Return true if successful. Return false * if the user has canceled the command. Must be called from the UI thread. * @param resources the root resources being operated on * @param confirm prompt the user if true * @return boolean false if the operation was canceled. */ public final boolean saveAllEditors(IResource[] resources, boolean confirm) { return IDE.saveAllEditors(resources, confirm); }
/** * Save all dirty editors in the workbench that are open on files that may * be affected by this operation. Opens a dialog to prompt the user if * <code>confirm</code> is true. Return true if successful. Return false * if the user has canceled the command. Must be called from the UI thread. * @param resources the root resources being operated on * @param confirm prompt the user if true * @return boolean false if the operation was canceled. */ public final boolean saveAllEditors(IResource[] resources, boolean confirm) { return IDE.saveAllEditors(resources, confirm); }
/** * Save all dirty editors in the workbench that are open on files that may * be affected by this operation. Opens a dialog to prompt the user if * <code>confirm</code> is true. Return true if successful. Return false * if the user has canceled the command. Must be called from the UI thread. * @param resources the root resources being operated on * @param confirm prompt the user if true * @return boolean false if the operation was canceled. */ public final boolean saveAllEditors(IResource[] resources, boolean confirm) { return IDE.saveAllEditors(resources, confirm); }
/** * Performs the save of the editor parts returned by getScopedResources */ protected void doSave() { if(fSaves != null) { IDE.saveAllEditors(fSaves, false); } }
/** * Save all dirty editors in the workbench that are open on files that may * be affected by this operation. Opens a dialog to prompt the user if * <code>confirm</code> is true. Return true if successful. Return false * if the user has canceled the command. Must be called from the UI thread. * @param resources the root resources being operated on * @param confirm prompt the user if true * @return boolean false if the operation was canceled. */ public final boolean saveAllEditors(IResource[] resources, boolean confirm) { return IDE.saveAllEditors(resources, confirm); }
/** * This method will save all dirty editors. It will prompt the user if the Compare preference to save * dirty editors before viewing a patch is <code>false</code>. Clients can use this or provide their own * implementation. */ protected void saveAllEditors(){ IDE.saveAllEditors(new IResource[]{ResourcesPlugin.getWorkspace().getRoot()}, !ComparePreferencePage.getSaveAllEditors()); }
/** * This method will save all dirty editors. It will prompt the user if the Compare preference to save * dirty editors before viewing a patch is <code>false</code>. Clients can use this or provide their own * implementation. */ protected void saveAllEditors(){ saveAllEditors = IDE.saveAllEditors(new IResource[]{ResourcesPlugin.getWorkspace().getRoot()}, !ComparePreferencePage.getSaveAllEditors()); }
/** * This method will save all dirty editors. It will prompt the user if the Compare preference to save * dirty editors before viewing a patch is <code>false</code>. Clients can use this or provide their own * implementation. */ protected void saveAllEditors(){ saveAllEditors = IDE.saveAllEditors(new IResource[]{ResourcesPlugin.getWorkspace().getRoot()}, !ComparePreferencePage.getSaveAllEditors()); }
/** * Save all dirty editors in the workbench that are open on files that may * be affected by this operation. Opens a dialog to prompt the user if * <code>confirm</code> is true. Return true if successful. Return false * if the user has canceled the command. Must be called from the UI thread. * * @param confirm prompt the user if true * @return boolean false if the operation was canceled. */ public final boolean saveAllEditors(boolean confirm) { return IDE.saveAllEditors(Utils.getResources(getFilteredDiffElements()), confirm); } }
/** * Save all dirty editors in the workbench that are open on files that may * be affected by this operation. Opens a dialog to prompt the user if * <code>confirm</code> is true. Return true if successful. Return false * if the user has canceled the command. Must be called from the UI thread. * * @param confirm prompt the user if true * @return boolean false if the operation was canceled. */ public final boolean saveAllEditors(boolean confirm) { return IDE.saveAllEditors(Utils.getResources(getFilteredDiffElements()), confirm); } }
if (!IDE.saveAllEditors(projectArray, true)) { return;