mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-16 12:45:41 +02:00
Changed updateViews() calls
This commit is contained in:
parent
080f6d053f
commit
20706240c3
5 changed files with 13 additions and 12 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright (c) 2006 Intel Corporation and others.
|
* Copyright (c) 2006, 2007 Intel Corporation and others.
|
||||||
* All rights reserved. This program and the accompanying materials
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* which accompanies this distribution, and is available at
|
||||||
|
@ -58,7 +58,7 @@ public class BuildConfigAction extends Action {
|
||||||
configs[i].setActive();
|
configs[i].setActive();
|
||||||
try {
|
try {
|
||||||
CoreModel.getDefault().setProjectDescription(prj, prjd);
|
CoreModel.getDefault().setProjectDescription(prj, prjd);
|
||||||
AbstractPage.updateViews();
|
AbstractPage.updateViews(prj);
|
||||||
} catch (CoreException e) { }
|
} catch (CoreException e) { }
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -116,8 +116,8 @@ implements IWorkbenchWindowPulldownDelegate2, IObjectActionDelegate {
|
||||||
if (selected != null && selected.length > 0) {
|
if (selected != null && selected.length > 0) {
|
||||||
for (int i = 0; i < selected.length; i++) {
|
for (int i = 0; i < selected.length; i++) {
|
||||||
((ResCfgData)selected[i]).delete();
|
((ResCfgData)selected[i]).delete();
|
||||||
|
AbstractPage.updateViews(((ResCfgData)selected[i]).res);
|
||||||
}
|
}
|
||||||
AbstractPage.updateViews();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -184,9 +184,8 @@ outer:
|
||||||
try {
|
try {
|
||||||
CoreModel.getDefault().setProjectDescription(p, prjd);
|
CoreModel.getDefault().setProjectDescription(p, prjd);
|
||||||
} catch (CoreException e) {}
|
} catch (CoreException e) {}
|
||||||
|
AbstractPage.updateViews(res);
|
||||||
}
|
}
|
||||||
AbstractPage.updateViews();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -69,6 +69,8 @@ import org.eclipse.cdt.core.settings.model.ICResourceDescription;
|
||||||
import org.eclipse.cdt.ui.CUIPlugin;
|
import org.eclipse.cdt.ui.CUIPlugin;
|
||||||
import org.eclipse.cdt.utils.ui.controls.ControlFactory;
|
import org.eclipse.cdt.utils.ui.controls.ControlFactory;
|
||||||
|
|
||||||
|
import org.eclipse.cdt.internal.ui.util.ProblemMarkerManager;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* It is a parent for all standard CDT property pages
|
* It is a parent for all standard CDT property pages
|
||||||
* in new CDT model.
|
* in new CDT model.
|
||||||
|
@ -408,7 +410,7 @@ implements
|
||||||
try {
|
try {
|
||||||
CoreModel.getDefault().setProjectDescription(getProject(), prjd);
|
CoreModel.getDefault().setProjectDescription(getProject(), prjd);
|
||||||
} catch (CoreException e) { }
|
} catch (CoreException e) { }
|
||||||
updateViews();
|
updateViews(internalElement);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -431,7 +433,7 @@ implements
|
||||||
} catch (CoreException e) {
|
} catch (CoreException e) {
|
||||||
System.out.println("setProjectDescription: " + e.getLocalizedMessage()); //$NON-NLS-1$
|
System.out.println("setProjectDescription: " + e.getLocalizedMessage()); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
updateViews();
|
updateViews(internalElement);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
IRunnableWithProgress op = new WorkspaceModifyDelegatingOperation(runnable);
|
IRunnableWithProgress op = new WorkspaceModifyDelegatingOperation(runnable);
|
||||||
|
@ -853,7 +855,7 @@ implements
|
||||||
}
|
}
|
||||||
|
|
||||||
// update views (in particular, display resource configurations)
|
// update views (in particular, display resource configurations)
|
||||||
public static void updateViews() {
|
public static void updateViews(IResource res) {
|
||||||
WorkbenchPlugin.getDefault().getDecoratorManager().updateForEnablementChange();
|
WorkbenchPlugin.getDefault().getDecoratorManager().updateForEnablementChange();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,7 +76,7 @@ public class ManageConfigDialog extends Dialog {
|
||||||
if (d.open() == OK) {
|
if (d.open() == OK) {
|
||||||
try {
|
try {
|
||||||
CoreModel.getDefault().setProjectDescription(prj, prjd);
|
CoreModel.getDefault().setProjectDescription(prj, prjd);
|
||||||
AbstractPage.updateViews();
|
AbstractPage.updateViews(prj);
|
||||||
} catch (CoreException e) { return false; }
|
} catch (CoreException e) { return false; }
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue