Author: bfitzpat
Date: 2013-01-24 18:13:20 -0500 (Thu, 24 Jan 2013)
New Revision: 44664
Modified:
branches/jbosstools-3.3.x/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/messages/JBossFacetCore.properties
branches/jbosstools-3.3.x/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/messages/JBossFacetCoreMessages.java
branches/jbosstools-3.3.x/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/runtime/ESBRuntimeResolver_47.java
branches/jbosstools-3.3.x/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/preference/controls/JBossRuntimeListFieldEditor.java
Log:
JBDS-2448 - Updating 3.3.x stream with additional ESB version warning/error messages
Modified:
branches/jbosstools-3.3.x/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/messages/JBossFacetCore.properties
===================================================================
---
branches/jbosstools-3.3.x/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/messages/JBossFacetCore.properties 2013-01-24
17:56:15 UTC (rev 44663)
+++
branches/jbosstools-3.3.x/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/messages/JBossFacetCore.properties 2013-01-24
23:13:20 UTC (rev 44664)
@@ -1,5 +1,6 @@
Error_Copy=Exception while copying runtime jars: {0}
-Warning_No_Exact_ESB_Runtime_Match=No exact match found for ESB runtime version {0}.
Assuming compatible with latest version\: {1}.
+Warning_No_Exact_ESB_Runtime_Match=Selected runtime supports ESB version {0}. Assuming
compatible with version\: {1}.
+Error_Version_Not_Supported=ESB version {0} is not supported on the specified runtime.
# START NON-TRANSLATABLE
ESB_Location=jbossesbruntimelocation
# END NON-TRANSLATABLE
Modified:
branches/jbosstools-3.3.x/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/messages/JBossFacetCoreMessages.java
===================================================================
---
branches/jbosstools-3.3.x/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/messages/JBossFacetCoreMessages.java 2013-01-24
17:56:15 UTC (rev 44663)
+++
branches/jbosstools-3.3.x/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/messages/JBossFacetCoreMessages.java 2013-01-24
23:13:20 UTC (rev 44664)
@@ -30,6 +30,7 @@
public static String Error_Add_Facet_JBossESB;
public static String Error_Remove_Facet_JBossESB;
public static String Warning_No_Exact_ESB_Runtime_Match;
+ public static String Error_Version_Not_Supported;
static {
Modified:
branches/jbosstools-3.3.x/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/runtime/ESBRuntimeResolver_47.java
===================================================================
---
branches/jbosstools-3.3.x/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/runtime/ESBRuntimeResolver_47.java 2013-01-24
17:56:15 UTC (rev 44663)
+++
branches/jbosstools-3.3.x/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/runtime/ESBRuntimeResolver_47.java 2013-01-24
23:13:20 UTC (rev 44664)
@@ -23,6 +23,7 @@
private final static String CONFIG_MODEL_JAR_11 =
"jbossesb-config-model-1.1.0.jar";
private final static String CONFIG_MODEL_JAR_12 =
"jbossesb-config-model-1.2.0.jar";
+ private final static String JUDDI_CLIENT_JAR_301 = "juddi-client-3.0.1.jar";
public boolean isValidESBRuntime(String location, String version, String
configuration){
@@ -33,6 +34,7 @@
}
return jarNames.contains(ROSETTA_JAR)
+ && jarNames.contains(JUDDI_CLIENT_JAR_301)
&& jarNames.contains(CONFIG_MODEL_JAR_11)
&& jarNames.contains(CONFIG_MODEL_JAR_12);
}
Modified:
branches/jbosstools-3.3.x/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/preference/controls/JBossRuntimeListFieldEditor.java
===================================================================
---
branches/jbosstools-3.3.x/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/preference/controls/JBossRuntimeListFieldEditor.java 2013-01-24
17:56:15 UTC (rev 44663)
+++
branches/jbosstools-3.3.x/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/preference/controls/JBossRuntimeListFieldEditor.java 2013-01-24
23:13:20 UTC (rev 44664)
@@ -562,21 +562,7 @@
}
JBossESBRuntime jarJbws = (JBossESBRuntime) jars.getValue();
- if (current != null
- && current.getName().equals(name.getValueAsString())
- && current.getHomeDir().equals(homeDir.getValueAsString())
- && current.getVersion().equals(version.getValueAsString())
- && current.isUserConfigClasspath() == jarJbws
- .isUserConfigClasspath()
- && current.getConfiguration().equals(configuration.getText())
- && (!jarJbws.isUserConfigClasspath() || hasSameLibraies(
- current.getLibraries(), jarJbws.getLibraries()))) {
- setErrorMessage(null);
- setPageComplete(false);
- return;
- }
-
if (jarJbws.isUserConfigClasspath()
&& jarJbws.getLibraries().size() == 0) {
setErrorMessage(JBossESBUIMessages.JBossRuntimeListFieldEditor_ErrorMessageAtLeastOneJar);
@@ -592,28 +578,16 @@
}
if (!runtimeExist(homeDir.getValueAsString(), (String)version.getValue(),
configuration.getText())) {
- final Combo vCombo = (Combo)this.version.getEditorControls()[1];
- String[] vStrings = vCombo.getItems();
- for( int i = 0; i < vStrings.length; i++ ) {
- boolean works = runtimeExist(homeDir.getValueAsString(), vStrings[i],
configuration.getText());
- if( works ) {
- final String newVersion = vStrings[i];
- final int i2 = i;
- Display.getDefault().asyncExec(new Runnable() {
- public void run() {
- vCombo.select(i2);
- version.setValue(newVersion);
- }
- });
- return;
- }
- }
- setErrorMessage(NLS.bind(JBossESBUIMessages.Label_JBoss_Runtime_Load_Error,
version.getValue()));
+ String[] boundStrings = new String[]{version.getValueAsString()};
+ String message = NLS.bind(
+ JBossFacetCoreMessages.Error_Version_Not_Supported,
boundStrings);
+ setErrorMessage(message);
setPageComplete(false);
return;
}
setErrorMessage(null);
+ setMessage(JBossESBUIMessages.JBoss_Runtime_List_Field_Editor_Create_A_Runtime);
// validate version matches what's in the runtime zip or show warning
String homeLocation = homeDir.getValueAsString();
Show replies by date