1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 17:56:01 +02:00

performOkForced() method added

This commit is contained in:
Oleg Krasilnikov 2007-04-25 13:56:44 +00:00
parent 6be903f7bc
commit 1346d01ba1

View file

@ -93,11 +93,19 @@ public class CDTPropertyManager {
} }
/** /**
* * Performs optimized (single-time) saving
* @param p - widget which calls this functionality * @param p - widget which calls this functionality
*/ */
public static void performOk(Object p) { public static void performOk(Object p) {
if (saveDone) return; if (saveDone) return;
performOkForced(p);
}
/**
* Performs mandatory saving
* @param p
*/
public static void performOkForced(Object p) {
saveDone = true; saveDone = true;
try { try {
CoreModel.getDefault().setProjectDescription(project, prjd); CoreModel.getDefault().setProjectDescription(project, prjd);