Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Piggott2011-04-18 17:58:41 -0400
committerMatthew Piggott2011-04-18 18:01:11 -0400
commit7b4c4ea01cbfa6e3bf9733235039056b38b2c31e (patch)
treead60251707b49cbda2ef3d45b0571ed5961b1e7c
parenta9bde94d569a1c93b267ab7e16609680198429fa (diff)
downloadm2e-core-7b4c4ea01cbfa6e3bf9733235039056b38b2c31e.tar.gz
m2e-core-7b4c4ea01cbfa6e3bf9733235039056b38b2c31e.tar.xz
m2e-core-7b4c4ea01cbfa6e3bf9733235039056b38b2c31e.zip
UserInterfacePreferencePage missed in earlier commit
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/UserInterfacePreferencePage.java50
1 files changed, 50 insertions, 0 deletions
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/UserInterfacePreferencePage.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/UserInterfacePreferencePage.java
new file mode 100644
index 00000000..bd84fde3
--- /dev/null
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/preferences/UserInterfacePreferencePage.java
@@ -0,0 +1,50 @@
+/*******************************************************************************
+ * Copyright (c) 2008-2010 Sonatype, 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Sonatype, Inc. - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.m2e.core.ui.internal.preferences;
+
+import org.eclipse.jface.preference.BooleanFieldEditor;
+import org.eclipse.jface.preference.FieldEditorPreferencePage;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.IWorkbenchPreferencePage;
+
+import org.eclipse.m2e.core.internal.preferences.MavenPreferenceConstants;
+import org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator;
+import org.eclipse.m2e.core.ui.internal.Messages;
+
+
+public class UserInterfacePreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {
+
+ private Composite parent;
+
+ public UserInterfacePreferencePage() {
+ super(GRID);
+ setPreferenceStore(M2EUIPluginActivator.getDefault().getPreferenceStore());
+ }
+
+ public void init(IWorkbench workbench) {
+ }
+
+ /*
+ * Creates the field editors. Field editors are abstractions of the common GUI
+ * blocks needed to manipulate various types of preferences. Each field editor
+ * knows how to save and restore itself.
+ */
+ public void createFieldEditors() {
+ parent = getFieldEditorParent();
+ addField(new BooleanFieldEditor(MavenPreferenceConstants.P_DEFAULT_POM_EDITOR_PAGE, Messages.pomEditorDefaultPage,
+ parent));
+
+ addField(new BooleanFieldEditor(MavenPreferenceConstants.P_WARN_INCOMPLETE_MAPPING,
+ Messages.MavenPreferencePage_warnIncompleteMapping, getFieldEditorParent()));
+ }
+}

Back to the top