Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Jastram2013-02-02 12:34:58 +0000
committerMichael Jastram2013-02-02 12:34:58 +0000
commit6a5713067909bd9227f6ccdc25884ff7d48408e7 (patch)
treeb770fd231196565ab1b53ca7ffd4619826c61ede
parentd0ffd4d6c09c8f909fb7bd8236134b98e4aa0900 (diff)
downloadorg.eclipse.rmf-6a5713067909bd9227f6ccdc25884ff7d48408e7.tar.gz
org.eclipse.rmf-6a5713067909bd9227f6ccdc25884ff7d48408e7.tar.xz
org.eclipse.rmf-6a5713067909bd9227f6ccdc25884ff7d48408e7.zip
RESOLVED - bug 367296: Allow to set Presentations as default handlers
for certain Datatypes https://bugs.eclipse.org/bugs/show_bug.cgi?id=367296
-rw-r--r--org.eclipse.rmf.reqif10.pror.editor/src/org/eclipse/rmf/reqif10/pror/editor/preferences/PreferenceConstants.java7
-rw-r--r--org.eclipse.rmf.reqif10.pror.editor/src/org/eclipse/rmf/reqif10/pror/editor/preferences/ProrDefaultPresentationPage.java6
2 files changed, 8 insertions, 5 deletions
diff --git a/org.eclipse.rmf.reqif10.pror.editor/src/org/eclipse/rmf/reqif10/pror/editor/preferences/PreferenceConstants.java b/org.eclipse.rmf.reqif10.pror.editor/src/org/eclipse/rmf/reqif10/pror/editor/preferences/PreferenceConstants.java
index 270c774c..b046bd7e 100644
--- a/org.eclipse.rmf.reqif10.pror.editor/src/org/eclipse/rmf/reqif10/pror/editor/preferences/PreferenceConstants.java
+++ b/org.eclipse.rmf.reqif10.pror.editor/src/org/eclipse/rmf/reqif10/pror/editor/preferences/PreferenceConstants.java
@@ -17,11 +17,12 @@ package org.eclipse.rmf.reqif10.pror.editor.preferences;
*/
public final class PreferenceConstants {
- public static String P_STOP_IS_SIMPLIFIED_WARNING = "stop_is_simplified_warning";
+ public static final String P_STOP_IS_SIMPLIFIED_WARNING = "stop_is_simplified_warning";
// Constants for default presentations
- public static String P_DEFAULT_PRESENTATION_STRING = "default_presentation_string";
- public static String P_DEFAULT_PRESENTATION_XHTML = "default_presentation_xhtml";
+ public static final String P_DEFAULT_PRESENTATION_BUILD_IN = "default_presentation_build_in";
+ public static final String P_DEFAULT_PRESENTATION_STRING = "default_presentation_string";
+ public static final String P_DEFAULT_PRESENTATION_XHTML = "default_presentation_xhtml";
public static final String P_DEFAULT_PRESENTATION_BOOLEAN = "default_presentation_boolean";
public static final String P_DEFAULT_PRESENTATION_DATE = "date";
public static final String P_DEFAULT_PRESENTATION_ENUMERATION = "default_presentation_enumeration";
diff --git a/org.eclipse.rmf.reqif10.pror.editor/src/org/eclipse/rmf/reqif10/pror/editor/preferences/ProrDefaultPresentationPage.java b/org.eclipse.rmf.reqif10.pror.editor/src/org/eclipse/rmf/reqif10/pror/editor/preferences/ProrDefaultPresentationPage.java
index ef16aea8..f01d468b 100644
--- a/org.eclipse.rmf.reqif10.pror.editor/src/org/eclipse/rmf/reqif10/pror/editor/preferences/ProrDefaultPresentationPage.java
+++ b/org.eclipse.rmf.reqif10.pror.editor/src/org/eclipse/rmf/reqif10/pror/editor/preferences/ProrDefaultPresentationPage.java
@@ -34,10 +34,12 @@ public class ProrDefaultPresentationPage extends FieldEditorPreferencePage
private String[][] getEntryNamesAndValues() {
Map<Class<? extends ProrPresentationConfiguration>, PresentationInterface> presentationMap = PresentationServiceManager
.getPresentationInterfaceMap();
- String[][] result = new String[presentationMap.size() + 1][2];
+ String[][] result = new String[presentationMap.size() + 2][2];
result[0][0] = "None";
result[0][1] = "";
- int i = 1;
+ result[1][0] = "Use Build-in";
+ result[1][1] = "";
+ int i = 2;
for (@SuppressWarnings("rawtypes")
Class key : presentationMap.keySet()) {
result[i][0] = key.getSimpleName();

Back to the top