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:
parent
6be903f7bc
commit
1346d01ba1
1 changed files with 9 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue