org.eclipse.cdt.ui.newui
Class CDTPropertyManager
java.lang.Object
org.eclipse.cdt.ui.newui.CDTPropertyManager
public class CDTPropertyManager
- extends java.lang.Object
This class is intended to handle
When new propertypage is created, it should request
project description by method
getProjectDescription()
This method, in addition, registers page in list.
While page is active, it can change this description
but should not set it, to avoid inconsistency.
When page's "performOK" called, it should call
manager's method
performOk()
In addition, there are utility methods for pages:
getPagesCount()
getPage()
isSaveDone()
Method Summary |
static java.lang.Object |
getPage(int index)
|
static int |
getPagesCount()
|
static org.eclipse.cdt.core.settings.model.ICProjectDescription |
getProjectDescription(org.eclipse.core.resources.IProject prj)
|
static org.eclipse.cdt.core.settings.model.ICProjectDescription |
getProjectDescription(org.eclipse.ui.dialogs.PropertyPage p,
org.eclipse.core.resources.IProject prj)
|
static org.eclipse.cdt.core.settings.model.ICProjectDescription |
getProjectDescription(org.eclipse.swt.widgets.Widget w,
org.eclipse.core.resources.IProject prj)
|
static boolean |
isSaveDone()
|
static void |
performCancel(java.lang.Object p)
|
static void |
performOk(java.lang.Object p)
Performs optimized (single-time) saving |
static void |
performOkForced(java.lang.Object p)
Performs mandatory saving |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CDTPropertyManager
public CDTPropertyManager()
getProjectDescription
public static org.eclipse.cdt.core.settings.model.ICProjectDescription getProjectDescription(org.eclipse.ui.dialogs.PropertyPage p,
org.eclipse.core.resources.IProject prj)
getProjectDescription
public static org.eclipse.cdt.core.settings.model.ICProjectDescription getProjectDescription(org.eclipse.swt.widgets.Widget w,
org.eclipse.core.resources.IProject prj)
getProjectDescription
public static org.eclipse.cdt.core.settings.model.ICProjectDescription getProjectDescription(org.eclipse.core.resources.IProject prj)
performOk
public static void performOk(java.lang.Object p)
- Performs optimized (single-time) saving
- Parameters:
p
- - widget which calls this functionality
performCancel
public static void performCancel(java.lang.Object p)
performOkForced
public static void performOkForced(java.lang.Object p)
- Performs mandatory saving
- Parameters:
p
-
isSaveDone
public static boolean isSaveDone()
getPagesCount
public static int getPagesCount()
getPage
public static java.lang.Object getPage(int index)