Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpfullbright2010-07-30 16:49:46 -0400
committerpfullbright2010-07-30 16:49:46 -0400
commit08790d9854d7b759cc1f139a87b3fa0141894f28 (patch)
tree5d209d8da2747fa25ad78c81f6c4a29e5ca58f49
parent4ef536121061f7dd0678024dc2c5ee6d72c8199e (diff)
downloadwebtools.dali-08790d9854d7b759cc1f139a87b3fa0141894f28.tar.gz
webtools.dali-08790d9854d7b759cc1f139a87b3fa0141894f28.tar.xz
webtools.dali-08790d9854d7b759cc1f139a87b3fa0141894f28.zip
extended range of priority choices
-rw-r--r--jpa/plugins/org.eclipse.jpt.core/plugin.xml6
-rw-r--r--jpa/plugins/org.eclipse.jpt.core/schema/resourceLocators.exsd4
-rw-r--r--jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/resource/ResourceLocatorConfig.java14
3 files changed, 17 insertions, 7 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.core/plugin.xml b/jpa/plugins/org.eclipse.jpt.core/plugin.xml
index fd28e696a7..e577ba54b0 100644
--- a/jpa/plugins/org.eclipse.jpt.core/plugin.xml
+++ b/jpa/plugins/org.eclipse.jpt.core/plugin.xml
@@ -211,7 +211,7 @@
<resourceLocator
id="org.eclipse.jpt.core.moduleResourceLocator"
class="org.eclipse.jpt.core.internal.resource.ModuleResourceLocator"
- priority="low">
+ priority="lower">
<enablement>
<with variable="project">
<test
@@ -225,7 +225,7 @@
<resourceLocator
id="org.eclipse.jpt.core.webModuleResourceLocator"
class="org.eclipse.jpt.core.internal.resource.WebModuleResourceLocator"
- priority="normal">
+ priority="low">
<enablement>
<with variable="project">
<test
@@ -239,7 +239,7 @@
<resourceLocator
id="org.eclipse.jpt.core.pluginResourceLocator"
class="org.eclipse.jpt.core.internal.resource.PluginResourceLocator"
- priority="high">
+ priority="normal">
<enablement>
<with variable="project">
<test
diff --git a/jpa/plugins/org.eclipse.jpt.core/schema/resourceLocators.exsd b/jpa/plugins/org.eclipse.jpt.core/schema/resourceLocators.exsd
index 24f8d677d2..e375e19b91 100644
--- a/jpa/plugins/org.eclipse.jpt.core/schema/resourceLocators.exsd
+++ b/jpa/plugins/org.eclipse.jpt.core/schema/resourceLocators.exsd
@@ -86,12 +86,16 @@
<restriction base="string">
<enumeration value="lowest">
</enumeration>
+ <enumeration value="lower">
+ </enumeration>
<enumeration value="low">
</enumeration>
<enumeration value="normal">
</enumeration>
<enumeration value="high">
</enumeration>
+ <enumeration value="higher">
+ </enumeration>
<enumeration value="highest">
</enumeration>
</restriction>
diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/resource/ResourceLocatorConfig.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/resource/ResourceLocatorConfig.java
index 2f0b166e7c..38ec1469f8 100644
--- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/resource/ResourceLocatorConfig.java
+++ b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/resource/ResourceLocatorConfig.java
@@ -112,16 +112,22 @@ public class ResourceLocatorConfig
public static enum Priority {
/* The lowest priority for a resource locator */
- LOWEST(4, "lowest"),
+ LOWEST(6, "lowest"),
/* The second lowest priority for a resource locator */
- LOW(3, "low"),
+ LOWER(5, "lower"),
+
+ /* The third lowest priority for a resource locator */
+ LOW(4, "low"),
/* The default priority for a resource locator */
- NORMAL(2, "normal"),
+ NORMAL(3, "normal"),
+
+ /* The third highest priority for a resource locator */
+ HIGH(2, "high"),
/* The second highest priority for a resource locator */
- HIGH(1, "high"),
+ HIGHER(1, "higher"),
/* The highest priority for a resource locator */
HIGHEST(0, "highest");

Back to the top