public OptionsConfigurationBlock(IStatusChangeListener context, IProject project, Key[] allKeys, IWorkbenchPreferenceContainer container) { fContext = context; fProject = project; fAllKeys = allKeys; fContainer = container; if (container == null) { fManager = new WorkingCopyManager(); } else { fManager = container.getWorkingCopyManager(); } if (fProject != null) { fLookupOrder = new IScopeContext[] { new ProjectScope(fProject), InstanceScope.INSTANCE, DefaultScope.INSTANCE }; } else { fLookupOrder = new IScopeContext[] { InstanceScope.INSTANCE, DefaultScope.INSTANCE }; } testIfOptionsComplete(allKeys); if (fProject == null || hasProjectSpecificOptions(fProject)) { fDisabledProjectSettings = null; } else { fDisabledProjectSettings = new IdentityHashMap(); for (int i = 0; i < allKeys.length; i++) { Key curr = allKeys[i]; fDisabledProjectSettings.put(curr, curr.getStoredValue(fLookupOrder, false, fManager)); } } settingsUpdated(); fCheckBoxes = new ArrayList(); fComboBoxes = new ArrayList(); fTextBoxes = new ArrayList(2); fLabels = new HashMap(); fExpandedComposites = new ArrayList(); fRebuildCount = getRebuildCount(); }
public OptionsConfigurationBlock(IStatusChangeListener context, IProject project, PreferenceKey[] allKeys, IWorkbenchPreferenceContainer container) { fContext = context; fProject = project; fAllKeys = allKeys; fContainer = container; if (container == null) { fManager = new WorkingCopyManager(); } else { fManager = container.getWorkingCopyManager(); } if (fProject != null) { fLookupOrder = new IScopeContext[] { new ProjectScope(fProject), EclipseUtil.instanceScope(), EclipseUtil.defaultScope() }; } else { fLookupOrder = new IScopeContext[] { EclipseUtil.instanceScope(), EclipseUtil.defaultScope() }; } testIfOptionsComplete(allKeys); if (fProject == null || hasProjectSpecificOptions(fProject)) { fDisabledProjectSettings = null; } else { fDisabledProjectSettings = new HashMap<PreferenceKey, String>(); for (int i = 0; i < allKeys.length; i++) { PreferenceKey curr = allKeys[i]; fDisabledProjectSettings.put(curr, curr.getStoredValue(fLookupOrder, false, fManager)); } } fRebuildCount = getRebuildCount(); }
public OptionsConfigurationBlock(IStatusChangeListener context, IProject project, Key[] allKeys, IWorkbenchPreferenceContainer container) { fContext= context; fProject= project; fAllKeys= allKeys; fContainer= container; if (container == null) { fManager= new WorkingCopyManager(); } else { fManager= container.getWorkingCopyManager(); } if (fProject != null) { fLookupOrder= new IScopeContext[] { new ProjectScope(fProject), InstanceScope.INSTANCE, DefaultScope.INSTANCE }; } else { fLookupOrder= new IScopeContext[] { InstanceScope.INSTANCE, DefaultScope.INSTANCE }; } testIfOptionsComplete(allKeys); if (fProject == null || hasProjectSpecificOptions(fProject)) { fDisabledProjectSettings= null; } else { fDisabledProjectSettings= new IdentityHashMap<Key, String>(); for (int i= 0; i < allKeys.length; i++) { Key curr= allKeys[i]; fDisabledProjectSettings.put(curr, curr.getStoredValue(fLookupOrder, false, fManager)); } } settingsUpdated(); fCheckBoxes= new ArrayList<Button>(); fComboBoxes= new ArrayList<Combo>(); fTextBoxes= new ArrayList<Text>(2); fLinks= new ArrayList<Link>(2); fLabels= new HashMap<Control, Label>(); fExpandableComposites= new ArrayList<ExpandableComposite>(); fRebuildCount= getRebuildCount(); }