Search in sources :

Example 1 with IWorkingCopyManager

use of org.eclipse.ui.preferences.IWorkingCopyManager in project xtext-eclipse by eclipse.

the class PropertyAndPreferencePage method getWorkingCopyManager.

protected IWorkingCopyManager getWorkingCopyManager() {
    IWorkbenchPreferenceContainer container = (IWorkbenchPreferenceContainer) getContainer();
    IWorkingCopyManager manager;
    if (container == null) {
        manager = new WorkingCopyManager();
    } else {
        manager = container.getWorkingCopyManager();
    }
    return manager;
}
Also used : IWorkingCopyManager(org.eclipse.ui.preferences.IWorkingCopyManager) WorkingCopyManager(org.eclipse.ui.preferences.WorkingCopyManager) IWorkbenchPreferenceContainer(org.eclipse.ui.preferences.IWorkbenchPreferenceContainer) IWorkingCopyManager(org.eclipse.ui.preferences.IWorkingCopyManager)

Aggregations

IWorkbenchPreferenceContainer (org.eclipse.ui.preferences.IWorkbenchPreferenceContainer)1 IWorkingCopyManager (org.eclipse.ui.preferences.IWorkingCopyManager)1 WorkingCopyManager (org.eclipse.ui.preferences.WorkingCopyManager)1