Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jdt.apt.ui')
-rw-r--r--org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/preferences/AptConfigurationBlock.java5
-rw-r--r--org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/preferences/BaseConfigurationBlock.java17
2 files changed, 12 insertions, 10 deletions
diff --git a/org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/preferences/AptConfigurationBlock.java b/org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/preferences/AptConfigurationBlock.java
index a31be8d721..ced6948ca7 100644
--- a/org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/preferences/AptConfigurationBlock.java
+++ b/org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/preferences/AptConfigurationBlock.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 BEA Systems, Inc. and others.
+ * Copyright (c) 2005, 2011 BEA Systems, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* BEA Systems Inc. - initial API and implementation
+ * IBM Corporation - fix deprecation warnings
*******************************************************************************/
package org.eclipse.jdt.apt.ui.internal.preferences;
@@ -413,7 +414,7 @@ public class AptConfigurationBlock extends BaseConfigurationBlock {
*/
private void setJDTProcessAnnotationsSetting(boolean enable) {
IScopeContext context = (null != fJProj) ?
- new ProjectScope(fJProj.getProject()) : new InstanceScope();
+ new ProjectScope(fJProj.getProject()) : InstanceScope.INSTANCE;
IEclipsePreferences node = context.getNode(JavaCore.PLUGIN_ID);
final String value = enable ? AptPreferenceConstants.ENABLED : AptPreferenceConstants.DISABLED;
node.put(AptPreferenceConstants.APT_PROCESSANNOTATIONS, value);
diff --git a/org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/preferences/BaseConfigurationBlock.java b/org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/preferences/BaseConfigurationBlock.java
index fe3e961ff2..04beaec46a 100644
--- a/org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/preferences/BaseConfigurationBlock.java
+++ b/org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/preferences/BaseConfigurationBlock.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2007 BEA Systems, Inc.
+ * Copyright (c) 2005, 2011 BEA Systems, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* wharley@bea.com - initial API and implementation
+ * IBM Corporation - fix deprecation warnings
*******************************************************************************/
package org.eclipse.jdt.apt.ui.internal.preferences;
@@ -218,14 +219,14 @@ public abstract class BaseConfigurationBlock {
if (fProject != null) {
fLookupOrder= new IScopeContext[] {
new ProjectScope(fProject),
- new InstanceScope(),
- new DefaultScope()
+ InstanceScope.INSTANCE,
+ DefaultScope.INSTANCE
};
fAptProject = AptPlugin.getAptProject(JavaCore.create(fProject));
} else {
fLookupOrder= new IScopeContext[] {
- new InstanceScope(),
- new DefaultScope()
+ InstanceScope.INSTANCE,
+ DefaultScope.INSTANCE
};
fAptProject = null;
}
@@ -645,12 +646,12 @@ public abstract class BaseConfigurationBlock {
IScopeContext[] lookupOrder; // not same as fLookupOrder! Starts one layer deeper.
if (fProject != null) {
lookupOrder= new IScopeContext[] {
- new InstanceScope(),
- new DefaultScope()
+ InstanceScope.INSTANCE,
+ DefaultScope.INSTANCE
};
} else {
lookupOrder= new IScopeContext[] {
- new DefaultScope()
+ DefaultScope.INSTANCE
};
}

Back to the top