|
Eclipse JDT Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jdt.ui.refactoring.RefactoringSaveHelper
public class RefactoringSaveHelper
Helper to save dirty editors prior to starting a refactoring.
PreferenceConstants.REFACTOR_SAVE_ALL_EDITORS| Field Summary | |
|---|---|
static int |
SAVE_ALL
Save mode to save all dirty editors. |
static int |
SAVE_ALL_ALWAYS_ASK
Save mode to save all dirty editors (always ask). |
static int |
SAVE_NOTHING
Save mode to not save any editors. |
static int |
SAVE_REFACTORING
Save mode to save all editors that are known to cause trouble for Java refactorings, e.g. |
| Constructor Summary | |
|---|---|
RefactoringSaveHelper(int saveMode)
Creates a refactoring save helper with the given save mode. |
|
| Method Summary | |
|---|---|
boolean |
didSaveFiles()
Returns whether this save helper did actually save any files. |
boolean |
saveEditors(Shell shell)
Saves all editors. |
void |
triggerIncrementalBuild()
Triggers an incremental build if this save helper did save files before. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SAVE_ALL_ALWAYS_ASK
public static final int SAVE_ALL
public static final int SAVE_NOTHING
public static final int SAVE_REFACTORING
| Constructor Detail |
|---|
public RefactoringSaveHelper(int saveMode)
saveMode - one of the SAVE_* constants| Method Detail |
|---|
public boolean saveEditors(Shell shell)
PreferenceConstants.REFACTOR_SAVE_ALL_EDITORS
preference, the user is asked to save affected dirty editors.
shell - the parent shell for the confirmation dialog
true if save was successful and refactoring can proceed;
false if the refactoring must be cancelledpublic void triggerIncrementalBuild()
public boolean didSaveFiles()
true iff files have been saved
|
Eclipse JDT Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) 2000, 2010 IBM Corporation and others. All rights reserved.