Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

SWITCHYARD-1659 externalize ui strings

  • Loading branch information...
commit 83741534c7b05452d1ca5fec89dcdecb3aeff0a0 1 parent 1692dad
@rcernich rcernich authored
Showing with 1,723 additions and 364 deletions.
  1. +19 −0 component/core/pom.xml
  2. +11 −8 component/core/src/main/java/org/switchyard/console/components/client/ui/BaseComponentConfigurationView.java
  3. +4 −0 component/core/src/main/java/org/switchyard/console/components/client/ui/Messages.properties
  4. +19 −0 component/soap/pom.xml
  5. +3 −0  component/soap/src/main/java/org/switchyard/console/component/soap/client/Messages.properties
  6. +9 −7 component/soap/src/main/java/org/switchyard/console/component/soap/client/SOAPComponentConfigurationView.java
  7. +9 −0 gwt/pom.xml
  8. +1,092 −0 gwt/src/main/java/org/switchyard/console/client/Messages.java
  9. +24 −24 gwt/src/main/java/org/switchyard/console/client/NameTokens.java
  10. +14 −0 gwt/src/main/java/org/switchyard/console/client/gin/SwitchYardClientModule.java
  11. +6 −0 gwt/src/main/java/org/switchyard/console/client/gin/SwitchYardGinjector.java
  12. +1 −1  gwt/src/main/java/org/switchyard/console/client/model/ArtifactReferenceCategory.java
  13. +58 −55 gwt/src/main/java/org/switchyard/console/client/model/SwitchYardStoreImpl.java
  14. +12 −6 gwt/src/main/java/org/switchyard/console/client/ui/application/ApplicationPresenter.java
  15. +3 −2 gwt/src/main/java/org/switchyard/console/client/ui/application/ApplicationReferencesList.java
  16. +1 −1  gwt/src/main/java/org/switchyard/console/client/ui/application/ApplicationServicesEditor.java
  17. +4 −3 gwt/src/main/java/org/switchyard/console/client/ui/application/ApplicationServicesList.java
  18. +19 −18 gwt/src/main/java/org/switchyard/console/client/ui/application/ApplicationView.java
  19. +4 −3 gwt/src/main/java/org/switchyard/console/client/ui/application/ApplicationsList.java
  20. +4 −3 gwt/src/main/java/org/switchyard/console/client/ui/application/ComponentReferencesList.java
  21. +7 −6 gwt/src/main/java/org/switchyard/console/client/ui/application/ComponentServicesList.java
  22. +6 −5 gwt/src/main/java/org/switchyard/console/client/ui/application/ImplementationDetailsWidget.java
  23. +9 −3 gwt/src/main/java/org/switchyard/console/client/ui/artifacts/ArtifactPresenter.java
  24. +4 −3 gwt/src/main/java/org/switchyard/console/client/ui/artifacts/ArtifactReferencesList.java
  25. +7 −6 gwt/src/main/java/org/switchyard/console/client/ui/artifacts/ArtifactReferencesView.java
  26. +2 −2 gwt/src/main/java/org/switchyard/console/client/ui/common/AbstractDataTable.java
  27. +2 −2 gwt/src/main/java/org/switchyard/console/client/ui/common/GWTPTab.java
  28. +2 −2 gwt/src/main/java/org/switchyard/console/client/ui/common/GWTPTabPanel.java
  29. +20 −19 gwt/src/main/java/org/switchyard/console/client/ui/common/PlainColumnView.java
  30. +7 −6 gwt/src/main/java/org/switchyard/console/client/ui/common/TransformersList.java
  31. +6 −5 gwt/src/main/java/org/switchyard/console/client/ui/common/ValidatorsList.java
  32. +2 −1  gwt/src/main/java/org/switchyard/console/client/ui/component/ComponentPresenter.java
  33. +2 −2 gwt/src/main/java/org/switchyard/console/client/ui/component/ComponentView.java
  34. +3 −2 gwt/src/main/java/org/switchyard/console/client/ui/config/ComponentsList.java
  35. +5 −4 gwt/src/main/java/org/switchyard/console/client/ui/config/ConfigEditor.java
  36. +5 −4 gwt/src/main/java/org/switchyard/console/client/ui/config/ConfigPresenter.java
  37. +6 −4 gwt/src/main/java/org/switchyard/console/client/ui/config/ConfigView.java
  38. +8 −7 gwt/src/main/java/org/switchyard/console/client/ui/metrics/GatewayMetricsList.java
  39. +20 −19 gwt/src/main/java/org/switchyard/console/client/ui/metrics/MessageMetricsViewer.java
  40. +6 −5 gwt/src/main/java/org/switchyard/console/client/ui/metrics/MetricsPresenter.java
  41. +12 −11 gwt/src/main/java/org/switchyard/console/client/ui/metrics/MetricsView.java
  42. +5 −4 gwt/src/main/java/org/switchyard/console/client/ui/metrics/ReferenceDetailsWidget.java
  43. +6 −5 gwt/src/main/java/org/switchyard/console/client/ui/metrics/ServiceDetailsWidget.java
  44. +13 −12 gwt/src/main/java/org/switchyard/console/client/ui/metrics/ServiceMetricsList.java
  45. +7 −6 gwt/src/main/java/org/switchyard/console/client/ui/metrics/ServiceOperationMetricsList.java
  46. +7 −6 gwt/src/main/java/org/switchyard/console/client/ui/metrics/ServiceReferenceMetricsList.java
  47. +10 −9 gwt/src/main/java/org/switchyard/console/client/ui/reference/ReferenceEditor.java
  48. +11 −5 gwt/src/main/java/org/switchyard/console/client/ui/reference/ReferencePresenter.java
  49. +6 −5 gwt/src/main/java/org/switchyard/console/client/ui/reference/ReferenceView.java
  50. +4 −3 gwt/src/main/java/org/switchyard/console/client/ui/reference/ReferencesList.java
  51. +5 −5 gwt/src/main/java/org/switchyard/console/client/ui/service/BindingDetailsWidget.java
  52. +12 −11 gwt/src/main/java/org/switchyard/console/client/ui/service/GatewaysList.java
  53. +22 −21 gwt/src/main/java/org/switchyard/console/client/ui/service/ServiceEditor.java
  54. +12 −6 gwt/src/main/java/org/switchyard/console/client/ui/service/ServicePresenter.java
  55. +6 −5 gwt/src/main/java/org/switchyard/console/client/ui/service/ServiceView.java
  56. +4 −3 gwt/src/main/java/org/switchyard/console/client/ui/service/ServicesList.java
  57. +119 −9 gwt/src/main/resources/org/switchyard/console/client/Messages.properties
  58. +17 −0 pom.xml
View
19 component/core/pom.xml
@@ -30,4 +30,23 @@
<scope>provided</scope>
</dependency>
</dependencies>
+ <build>
+ <plugins>
+ <!-- GWT Maven Plugin -->
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>gwt-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>i18n</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <i18nMessagesBundle>org.switchyard.console.components.client.ui.Messages</i18nMessagesBundle>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
</project>
View
19 ...main/java/org/switchyard/console/components/client/ui/BaseComponentConfigurationView.java
@@ -23,6 +23,7 @@
import org.switchyard.console.components.client.model.Component;
import org.switchyard.console.components.client.ui.ComponentConfigurationPresenter.ComponentConfigurationView;
+import com.google.gwt.core.client.GWT;
import com.google.gwt.user.cellview.client.TextColumn;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.VerticalPanel;
@@ -45,6 +46,8 @@
*/
public class BaseComponentConfigurationView extends ViewImpl implements ComponentConfigurationView {
+ private static final Messages MESSAGES = GWT.create(Messages.class);
+
private Label _componentNameLabel;
private Widget _widget;
private ComponentConfigurationPresenter _presenter;
@@ -55,7 +58,7 @@
public Widget asWidget() {
if (_widget == null) {
VerticalPanel layout = new VerticalPanel();
- layout.setStyleName("fill-layout-width");
+ layout.setStyleName("fill-layout-width"); //$NON-NLS-1$
_componentNameLabel = createComponentNameLabel();
if (_componentNameLabel != null) {
@@ -101,14 +104,14 @@ protected Component getComponent() {
* @return a control for viewing the component's name.
*/
protected Label createComponentNameLabel() {
- return new ContentGroupLabel("");
+ return new ContentGroupLabel(""); //$NON-NLS-1$
}
/**
* @return a control for viewing the component's activation types.
*/
protected Label createComponentTypeLabel() {
- return new ContentGroupLabel("");
+ return new ContentGroupLabel(""); //$NON-NLS-1$
}
/**
@@ -117,8 +120,8 @@ protected Label createComponentTypeLabel() {
@SuppressWarnings("unchecked")
protected Widget createComponentDetailsWidget() {
VerticalPanel layout = new VerticalPanel();
- layout.setStyleName("fill-layout-width");
- layout.add(new ContentGroupLabel("Configured Properties"));
+ layout.setStyleName("fill-layout-width"); //$NON-NLS-1$
+ layout.add(new ContentGroupLabel(MESSAGES.label_configuredProperties()));
DefaultCellTable<Entry<String, String>> table = new DefaultCellTable<Entry<String, String>>(5);
TextColumn<Entry<String, String>> nameColumn = new TextColumn<Entry<String, String>>() {
@@ -136,8 +139,8 @@ public String getValue(Entry<String, String> object) {
}
};
- table.addColumn(nameColumn, "Name");
- table.addColumn(valueColumn, "Value");
+ table.addColumn(nameColumn, MESSAGES.label_name());
+ table.addColumn(valueColumn, MESSAGES.label_value());
layout.add(table);
@@ -194,7 +197,7 @@ protected String getComponentName() {
}
private String getComponentNameLabelText() {
- return "Name: " + getComponentName();
+ return MESSAGES.label_nameInstance(getComponentName());
}
}
View
4 component/core/src/main/java/org/switchyard/console/components/client/ui/Messages.properties
@@ -0,0 +1,4 @@
+label_configuredProperties=Configured Properties
+label_name=Name
+label_nameInstance=Name: {0}
+label_value=Value
View
19 component/soap/pom.xml
@@ -30,4 +30,23 @@
<scope>provided</scope>
</dependency>
</dependencies>
+ <build>
+ <plugins>
+ <!-- GWT Maven Plugin -->
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>gwt-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>i18n</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <i18nMessagesBundle>org.switchyard.console.component.soap.client.Messages</i18nMessagesBundle>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
</project>
View
3  ...onent/soap/src/main/java/org/switchyard/console/component/soap/client/Messages.properties
@@ -0,0 +1,3 @@
+constant_notSet=<not set>
+label_configuredProperties=Configured Properties
+label_socketAddress=Socket Address ({0})
View
16 ...ain/java/org/switchyard/console/component/soap/client/SOAPComponentConfigurationView.java
@@ -22,6 +22,7 @@
import org.jboss.ballroom.client.widgets.forms.TextItem;
import org.switchyard.console.components.client.ui.BaseComponentConfigurationView;
+import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;
@@ -34,7 +35,8 @@
*/
public class SOAPComponentConfigurationView extends BaseComponentConfigurationView {
- private static final String SOCKET_ADDR = "socketAddr";
+ private static final Messages MESSAGES = GWT.create(Messages.class);
+ private static final String SOCKET_ADDR = "socketAddr"; //$NON-NLS-1$
private TextItem _socketAddr;
@@ -42,15 +44,15 @@
@Override
protected Widget createComponentDetailsWidget() {
VerticalPanel layout = new VerticalPanel();
- layout.setStyleName("fill-layout-width");
- layout.add(new ContentGroupLabel("Configured Properties"));
+ layout.setStyleName("fill-layout-width"); //$NON-NLS-1$
+ layout.add(new ContentGroupLabel(MESSAGES.label_configuredProperties()));
- String title = "Socket Address (" + SOCKET_ADDR + ")";
+ String title = MESSAGES.label_socketAddress(SOCKET_ADDR);
_socketAddr = new TextItem(SOCKET_ADDR, title) {
@Override
public void setValue(String value) {
if (value == null || value.length() == 0) {
- value = "<not set>";
+ value = MESSAGES.constant_notSet();
}
super.setValue(value);
}
@@ -59,7 +61,7 @@ public void setValue(String value) {
RenderMetaData metaData = new RenderMetaData();
metaData.setNumColumns(1);
metaData.setTitleWidth(title.length());
- layout.add(new DefaultGroupRenderer().render(metaData, "null",
+ layout.add(new DefaultGroupRenderer().render(metaData, "null", //$NON-NLS-1$
Collections.<String, FormItem> singletonMap(SOCKET_ADDR, _socketAddr)));
return layout;
@@ -76,7 +78,7 @@ protected void updateComponentDetails() {
@Override
protected String getComponentName() {
- return "SOAP";
+ return "SOAP"; //$NON-NLS-1$
}
}
View
9 gwt/pom.xml
@@ -87,7 +87,16 @@
<goals>
<goal>resources</goal>
<goal>test</goal>
+ <!--
+ ~ does not generate proper interfaces for
+ ~ non-string paramter types. until the problem
+ ~ is corrected, the Messages class will need to
+ ~ be maintained manually. update
+ ~ Messages.properties then run gwt:i18n goal and
+ ~ merge the newly generated file with the
+ ~ existing file.
<goal>i18n</goal>
+ -->
</goals>
</execution>
</executions>
View
1,092 gwt/src/main/java/org/switchyard/console/client/Messages.java
@@ -0,0 +1,1092 @@
+package org.switchyard.console.client;
+
+/**
+ * Interface to represent the messages contained in resource bundle:
+ * 'src/main/java/org/switchyard/console/client/Messages.properties'.
+ *
+ * This interface is maintained manually because the i18n goal does not handle
+ * number formats (parameters are string). Also, GWT does not support integer
+ * formats. To maintain, run mvn gwt:i18n. This will produce a new Messages
+ * class in target/generated-sources/gwt. Merge the newly generated file into
+ * this file.
+ */
+public interface Messages extends com.google.gwt.i18n.client.Messages {
+
+ /**
+ * Translated "Details...".
+ *
+ * @return translated "Details..."
+ */
+ @DefaultMessage("Details...")
+ @Key("button_details")
+ String button_details();
+
+ /**
+ * Translated "View Configuration...".
+ *
+ * @return translated "View Configuration..."
+ */
+ @DefaultMessage("View Configuration...")
+ @Key("button_viewConfiguration")
+ String button_viewConfiguration();
+
+ /**
+ * Translated "View Details...".
+ *
+ * @return translated "View Details..."
+ */
+ @DefaultMessage("View Details...")
+ @Key("button_viewDetails")
+ String button_viewDetails();
+
+ /**
+ * Translated "<inherited>".
+ *
+ * @return translated "<inherited>"
+ */
+ @DefaultMessage("<inherited>")
+ @Key("constant_inherited")
+ String constant_inherited();
+
+ /**
+ * Translated "Unknown".
+ *
+ * @return translated "Unknown"
+ */
+ @DefaultMessage("Unknown")
+ @Key("constant_unknown")
+ String constant_unknown();
+
+ /**
+ * Translated "Displays details for a specific application. Select an application to see its implementation details.".
+ *
+ * @return translated "Displays details for a specific application. Select an application to see its implementation details."
+ */
+ @DefaultMessage("Displays details for a specific application. Select an application to see its implementation details.")
+ @Key("description_applicationDetails")
+ String description_applicationDetails();
+
+ /**
+ * Translated "Displays a list of deployed SwitchYard applications. Select an application to see more details.".
+ *
+ * @return translated "Displays a list of deployed SwitchYard applications. Select an application to see more details."
+ */
+ @DefaultMessage("Displays a list of deployed SwitchYard applications. Select an application to see more details.")
+ @Key("description_applications")
+ String description_applications();
+
+ /**
+ * Translated "Displays all artifacts referenced throughout the system, along with the applications referencing a specific artifact.".
+ *
+ * @return translated "Displays all artifacts referenced throughout the system, along with the applications referencing a specific artifact."
+ */
+ @DefaultMessage("Displays all artifacts referenced throughout the system, along with the applications referencing a specific artifact.")
+ @Key("description_artifactReferences")
+ String description_artifactReferences();
+
+ /**
+ * Translated "Displays message metrics for a selected reference.".
+ *
+ * @return translated "Displays message metrics for a selected reference."
+ */
+ @DefaultMessage("Displays message metrics for a selected reference.")
+ @Key("description_referenceMetrics")
+ String description_referenceMetrics();
+
+ /**
+ * Translated "Displays details for the selected service.".
+ *
+ * @return translated "Displays details for the selected service."
+ */
+ @DefaultMessage("Displays details for the selected service.")
+ @Key("description_serviceDetails")
+ String description_serviceDetails();
+
+ /**
+ * Translated "Displays message metrics for a selected service.".
+ *
+ * @return translated "Displays message metrics for a selected service."
+ */
+ @DefaultMessage("Displays message metrics for a selected service.")
+ @Key("description_serviceMetrics")
+ String description_serviceMetrics();
+
+ /**
+ * Translated "Displays a list of deployed SwitchYard references. Select a reference to see more details.".
+ *
+ * @return translated "Displays a list of deployed SwitchYard references. Select a reference to see more details."
+ */
+ @DefaultMessage("Displays a list of deployed SwitchYard references. Select a reference to see more details.")
+ @Key("description_switchYardReferences")
+ String description_switchYardReferences();
+
+ /**
+ * Translated "Displays details about the SwitchYard runtime.".
+ *
+ * @return translated "Displays details about the SwitchYard runtime."
+ */
+ @DefaultMessage("Displays details about the SwitchYard runtime.")
+ @Key("description_switchYardRuntime")
+ String description_switchYardRuntime();
+
+ /**
+ * Translated "Displays a list of deployed SwitchYard services. Select a service to see more details.".
+ *
+ * @return translated "Displays a list of deployed SwitchYard services. Select a service to see more details."
+ */
+ @DefaultMessage("Displays a list of deployed SwitchYard services. Select a service to see more details.")
+ @Key("description_switchYardServices")
+ String description_switchYardServices();
+
+ /**
+ * Translated "Displays message metrics for the SwitchYard subsystem.".
+ *
+ * @return translated "Displays message metrics for the SwitchYard subsystem."
+ */
+ @DefaultMessage("Displays message metrics for the SwitchYard subsystem.")
+ @Key("description_systemMetrics")
+ String description_systemMetrics();
+
+ /**
+ * Translated "Could not load all reference metrics.".
+ *
+ * @return translated "Could not load all reference metrics."
+ */
+ @DefaultMessage("Could not load all reference metrics.")
+ @Key("error_allReferenceMetricsLoad")
+ String error_allReferenceMetricsLoad();
+
+ /**
+ * Translated "Could not load all service metrics.".
+ *
+ * @return translated "Could not load all service metrics."
+ */
+ @DefaultMessage("Could not load all service metrics.")
+ @Key("error_allServiceMetricsLoad")
+ String error_allServiceMetricsLoad();
+
+ /**
+ * Translated "Could not load information for application: {0}".
+ * @param arg0 application name
+ * @return translated "Could not load information for application: {0}"
+ */
+ @DefaultMessage("Could not load information for application: {0}")
+ @Key("error_applicationLoad")
+ String error_applicationLoad(String arg0);
+
+ /**
+ * Translated "Could not load artifact references.".
+ *
+ * @return translated "Could not load artifact references."
+ */
+ @DefaultMessage("Could not load artifact references.")
+ @Key("error_artifactsLoad")
+ String error_artifactsLoad();
+
+ /**
+ * Translated "Comparison column specified, but no baseline set!".
+ *
+ * @return translated "Comparison column specified, but no baseline set!"
+ */
+ @DefaultMessage("Comparison column specified, but no baseline set!")
+ @Key("error_comparisonColumnWithoutBaseline")
+ String error_comparisonColumnWithoutBaseline();
+
+ /**
+ * Translated "Could not load information for component: {0}".
+ * @param arg0 component name
+ * @return translated "Could not load information for component: {0}"
+ */
+ @DefaultMessage("Could not load information for component: {0}")
+ @Key("error_componentLoad")
+ String error_componentLoad(String arg0);
+
+ /**
+ * Translated "Illegal baseline index {0,number} on number of samples {1,number}.".
+ * @param arg0 baseline index
+ * @param arg1 sample index
+ * @return translated "Illegal baseline index {0,number} on number of samples {1,number}."
+ */
+ @DefaultMessage("Illegal baseline index {0,number} on number of samples {1,number}.")
+ @Key("error_illegalBaselineIndex")
+ String error_illegalBaselineIndex(int arg0, int arg1);
+
+ /**
+ * Translated "Metric value at index {0,number} is null".
+ * @param arg0 index
+ * @return translated "Metric value at index {0,number} is null"
+ */
+ @DefaultMessage("Metric value at index {0,number} is null")
+ @Key("error_metricIsNullAtIndex")
+ String error_metricIsNullAtIndex(int arg0);
+
+ /**
+ * Translated "Cannot reveal application details. No application specified.".
+ *
+ * @return translated "Cannot reveal application details. No application specified."
+ */
+ @DefaultMessage("Cannot reveal application details. No application specified.")
+ @Key("error_navigateToApplication")
+ String error_navigateToApplication();
+
+ /**
+ * Translated "Cannot reveal reference details. No reference or application specified.".
+ *
+ * @return translated "Cannot reveal reference details. No reference or application specified."
+ */
+ @DefaultMessage("Cannot reveal reference details. No reference or application specified.")
+ @Key("error_navigateToReference")
+ String error_navigateToReference();
+
+ /**
+ * Translated "Cannot reveal service details. No service or application specified.".
+ *
+ * @return translated "Cannot reveal service details. No service or application specified."
+ */
+ @DefaultMessage("Cannot reveal service details. No service or application specified.")
+ @Key("error_navigateToService")
+ String error_navigateToService();
+
+ /**
+ * Translated "Could not load information for reference: {0} from application: {1}".
+ * @param arg0 reference name
+ * @param arg1 application name
+ * @return translated "Could not load information for reference: {0} from application: {1}"
+ */
+ @DefaultMessage("Could not load information for reference: {0} from application: {1}")
+ @Key("error_referenceLoad")
+ String error_referenceLoad(String arg0, String arg1);
+
+ /**
+ * Translated "Failure resetting metrics for {0}: {1}".
+ * @param arg0 entity name
+ * @param arg1 error message
+ * @return translated "Failure resetting metrics for {0}: {1}"
+ */
+ @DefaultMessage("Failure resetting metrics for {0}: {1}")
+ @Key("error_resetObjectMetrics")
+ String error_resetObjectMetrics(String arg0, String arg1);
+
+ /**
+ * Translated "Failure resetting system metrics: {0}".
+ * @param arg0 error message
+ * @return translated "Failure resetting system metrics: {0}"
+ */
+ @DefaultMessage("Failure resetting system metrics: {0}")
+ @Key("error_resetSystemMetrics")
+ String error_resetSystemMetrics(String arg0);
+
+ /**
+ * Translated "Could not load information for service: {0} from application: {1}".
+ * @param arg0 service name
+ * @param arg1 application name
+ * @return translated "Could not load information for service: {0} from application: {1}"
+ */
+ @DefaultMessage("Could not load information for service: {0} from application: {1}")
+ @Key("error_serviceLoad")
+ String error_serviceLoad(String arg0, String arg1);
+
+ /**
+ * Translated "Could not load metrics for service: {0}".
+ * @param arg0 service name
+ * @return translated "Could not load metrics for service: {0}"
+ */
+ @DefaultMessage("Could not load metrics for service: {0}")
+ @Key("error_serviceMetricsLoad")
+ String error_serviceMetricsLoad(String arg0);
+
+ /**
+ * Translated "Failure setting property: {0}".
+ * @param arg0 property name
+ * @return translated "Failure setting property: {0}"
+ */
+ @DefaultMessage("Failure setting property: {0}")
+ @Key("error_setProperty")
+ String error_setProperty(String arg0);
+
+ /**
+ * Translated "Failure starting gateway for {0}: {1}".
+ * @param arg0 gateway name
+ * @param arg1 error message
+ * @return translated "Failure starting gateway for {0}: {1}"
+ */
+ @DefaultMessage("Failure starting gateway for {0}: {1}")
+ @Key("error_startGateway")
+ String error_startGateway(String arg0, String arg1);
+
+ /**
+ * Translated "Failure stopping gateway for {0}: {1}".
+ * @param arg0 gateway name
+ * @param arg1 error message
+ * @return translated "Failure stopping gateway for {0}: {1}"
+ */
+ @DefaultMessage("Failure stopping gateway for {0}: {1}")
+ @Key("error_stopGateway")
+ String error_stopGateway(String arg0, String arg1);
+
+ /**
+ * Translated "Could not load metrics for system".
+ *
+ * @return translated "Could not load metrics for system"
+ */
+ @DefaultMessage("Could not load metrics for system")
+ @Key("error_systemMetricsLoad")
+ String error_systemMetricsLoad();
+
+ /**
+ * Translated "Unknown error".
+ *
+ * @return translated "Unknown error"
+ */
+ @DefaultMessage("Unknown error")
+ @Key("error_unknown")
+ String error_unknown();
+
+ /**
+ * Translated "Failure updating throttling details for {0}: {1}".
+ * @param arg0 service name
+ * @param arg1 error message
+ * @return translated "Failure updating throttling details for {0}: {1}"
+ */
+ @DefaultMessage("Failure updating throttling details for {0}: {1}")
+ @Key("error_updateThrottling")
+ String error_updateThrottling(String arg0, String arg1);
+
+ /**
+ * Translated "Actual".
+ *
+ * @return translated "Actual"
+ */
+ @DefaultMessage("Actual")
+ @Key("label_actual")
+ String label_actual();
+
+ /**
+ * Translated "Application".
+ *
+ * @return translated "Application"
+ */
+ @DefaultMessage("Application")
+ @Key("label_application")
+ String label_application();
+
+ /**
+ * Translated "Application Details".
+ *
+ * @return translated "Application Details"
+ */
+ @DefaultMessage("Application Details")
+ @Key("label_applicationDetails")
+ String label_applicationDetails();
+
+ /**
+ * Translated "Application Name".
+ *
+ * @return translated "Application Name"
+ */
+ @DefaultMessage("Application Name")
+ @Key("label_applicationName")
+ String label_applicationName();
+
+ /**
+ * Translated "Application Namespace".
+ *
+ * @return translated "Application Namespace"
+ */
+ @DefaultMessage("Application Namespace")
+ @Key("label_applicationNamespace")
+ String label_applicationNamespace();
+
+ /**
+ * Translated "Applications".
+ *
+ * @return translated "Applications"
+ */
+ @DefaultMessage("Applications")
+ @Key("label_applications")
+ String label_applications();
+
+ /**
+ * Translated "Applications Using Artifact".
+ *
+ * @return translated "Applications Using Artifact"
+ */
+ @DefaultMessage("Applications Using Artifact")
+ @Key("label_applicationsUsingArtifacts")
+ String label_applicationsUsingArtifacts();
+
+ /**
+ * Translated "Artifact References".
+ *
+ * @return translated "Artifact References"
+ */
+ @DefaultMessage("Artifact References")
+ @Key("label_artifactReferences")
+ String label_artifactReferences();
+
+ /**
+ * Translated "Artifacts".
+ *
+ * @return translated "Artifacts"
+ */
+ @DefaultMessage("Artifacts")
+ @Key("label_artifacts")
+ String label_artifacts();
+
+ /**
+ * Translated "Average Processing Time".
+ *
+ * @return translated "Average Processing Time"
+ */
+ @DefaultMessage("Average Processing Time")
+ @Key("label_averageProcessingTime")
+ String label_averageProcessingTime();
+
+ /**
+ * Translated "Average Time".
+ *
+ * @return translated "Average Time"
+ */
+ @DefaultMessage("Average Time")
+ @Key("label_averageTime")
+ String label_averageTime();
+
+ /**
+ * Translated "Component Details".
+ *
+ * @return translated "Component Details"
+ */
+ @DefaultMessage("Component Details")
+ @Key("label_componentDetails")
+ String label_componentDetails();
+
+ /**
+ * Translated "Component Services".
+ *
+ * @return translated "Component Services"
+ */
+ @DefaultMessage("Component Services")
+ @Key("label_componentServices")
+ String label_componentServices();
+
+ /**
+ * Translated "Configuration".
+ *
+ * @return translated "Configuration"
+ */
+ @DefaultMessage("Configuration")
+ @Key("label_configuration")
+ String label_configuration();
+
+ /**
+ * Translated "Core Runtime".
+ *
+ * @return translated "Core Runtime"
+ */
+ @DefaultMessage("Core Runtime")
+ @Key("label_coreRuntime")
+ String label_coreRuntime();
+
+ /**
+ * Translated "Details".
+ *
+ * @return translated "Details"
+ */
+ @DefaultMessage("Details")
+ @Key("label_details")
+ String label_details();
+
+ /**
+ * Translated "Enabled".
+ *
+ * @return translated "Enabled"
+ */
+ @DefaultMessage("Enabled")
+ @Key("label_enabled")
+ String label_enabled();
+
+ /**
+ * Translated "Fault Count".
+ *
+ * @return translated "Fault Count"
+ */
+ @DefaultMessage("Fault Count")
+ @Key("label_faultCount")
+ String label_faultCount();
+
+ /**
+ * Translated "Fault %".
+ *
+ * @return translated "Fault %"
+ */
+ @DefaultMessage("Fault %")
+ @Key("label_faultPercent")
+ String label_faultPercent();
+
+ /**
+ * Translated "From".
+ *
+ * @return translated "From"
+ */
+ @DefaultMessage("From")
+ @Key("label_from")
+ String label_from();
+
+ /**
+ * Translated "Gateway Configuration".
+ *
+ * @return translated "Gateway Configuration"
+ */
+ @DefaultMessage("Gateway Configuration")
+ @Key("label_gatewayConfiguration")
+ String label_gatewayConfiguration();
+
+ /**
+ * Translated "Gateway Metrics".
+ *
+ * @return translated "Gateway Metrics"
+ */
+ @DefaultMessage("Gateway Metrics")
+ @Key("label_gatewayMetrics")
+ String label_gatewayMetrics();
+
+ /**
+ * Translated "Gateways".
+ *
+ * @return translated "Gateways"
+ */
+ @DefaultMessage("Gateways")
+ @Key("label_gateways")
+ String label_gateways();
+
+ /**
+ * Translated "Implementation".
+ *
+ * @return translated "Implementation"
+ */
+ @DefaultMessage("Implementation")
+ @Key("label_implementation")
+ String label_implementation();
+
+ /**
+ * Translated "Implementation Details".
+ *
+ * @return translated "Implementation Details"
+ */
+ @DefaultMessage("Implementation Details")
+ @Key("label_implementationDetails")
+ String label_implementationDetails();
+
+ /**
+ * Translated "{0} implementation".
+ * @param arg0 implementation name
+ * @return translated "{0} implementation"
+ */
+ @DefaultMessage("{0} implementation")
+ @Key("label_implementationInstance")
+ String label_implementationInstance(String arg0);
+
+ /**
+ * Translated "Installed Components".
+ *
+ * @return translated "Installed Components"
+ */
+ @DefaultMessage("Installed Components")
+ @Key("label_installedComponents")
+ String label_installedComponents();
+
+ /**
+ * Translated "Interface".
+ *
+ * @return translated "Interface"
+ */
+ @DefaultMessage("Interface")
+ @Key("label_interface")
+ String label_interface();
+
+ /**
+ * Translated "Max. Processing Time".
+ *
+ * @return translated "Max. Processing Time"
+ */
+ @DefaultMessage("Max. Processing Time")
+ @Key("label_maxProcessingTime")
+ String label_maxProcessingTime();
+
+ /**
+ * Translated "Maximum Requests".
+ *
+ * @return translated "Maximum Requests"
+ */
+ @DefaultMessage("Maximum Requests")
+ @Key("label_maximumRequests")
+ String label_maximumRequests();
+
+ /**
+ * Translated "Message Count".
+ *
+ * @return translated "Message Count"
+ */
+ @DefaultMessage("Message Count")
+ @Key("label_messageCount")
+ String label_messageCount();
+
+ /**
+ * Translated "Message Counts".
+ *
+ * @return translated "Message Counts"
+ */
+ @DefaultMessage("Message Counts")
+ @Key("label_messageCounts")
+ String label_messageCounts();
+
+ /**
+ * Translated "Metric".
+ *
+ * @return translated "Metric"
+ */
+ @DefaultMessage("Metric")
+ @Key("label_metric")
+ String label_metric();
+
+ /**
+ * Translated "Min. Processing Time".
+ *
+ * @return translated "Min. Processing Time"
+ */
+ @DefaultMessage("Min. Processing Time")
+ @Key("label_minProcessingTime")
+ String label_minProcessingTime();
+
+ /**
+ * Translated "Name".
+ *
+ * @return translated "Name"
+ */
+ @DefaultMessage("Name")
+ @Key("label_name")
+ String label_name();
+
+ /**
+ * Translated "Namespace".
+ *
+ * @return translated "Namespace"
+ */
+ @DefaultMessage("Namespace")
+ @Key("label_namespace")
+ String label_namespace();
+
+ /**
+ * Translated "Operation Metrics".
+ *
+ * @return translated "Operation Metrics"
+ */
+ @DefaultMessage("Operation Metrics")
+ @Key("label_operationMetrics")
+ String label_operationMetrics();
+
+ /**
+ * Translated "Processing Times".
+ *
+ * @return translated "Processing Times"
+ */
+ @DefaultMessage("Processing Times")
+ @Key("label_processingTimes")
+ String label_processingTimes();
+
+ /**
+ * Translated "Promoted Service".
+ *
+ * @return translated "Promoted Service"
+ */
+ @DefaultMessage("Promoted Service")
+ @Key("label_promotedService")
+ String label_promotedService();
+
+ /**
+ * Translated "Properties".
+ *
+ * @return translated "Properties"
+ */
+ @DefaultMessage("Properties")
+ @Key("label_properties")
+ String label_properties();
+
+ /**
+ * Translated "Raw Configuration".
+ *
+ * @return translated "Raw Configuration"
+ */
+ @DefaultMessage("Raw Configuration")
+ @Key("label_rawConfiguration")
+ String label_rawConfiguration();
+
+ /**
+ * Translated "Reference Details".
+ *
+ * @return translated "Reference Details"
+ */
+ @DefaultMessage("Reference Details")
+ @Key("label_referenceDetails")
+ String label_referenceDetails();
+
+ /**
+ * Translated "Reference Message Metrics".
+ *
+ * @return translated "Reference Message Metrics"
+ */
+ @DefaultMessage("Reference Message Metrics")
+ @Key("label_referenceMessageMetrics")
+ String label_referenceMessageMetrics();
+
+ /**
+ * Translated "Reference Metrics".
+ *
+ * @return translated "Reference Metrics"
+ */
+ @DefaultMessage("Reference Metrics")
+ @Key("label_referenceMetrics")
+ String label_referenceMetrics();
+
+ /**
+ * Translated "Referenced Service Metrics".
+ *
+ * @return translated "Referenced Service Metrics"
+ */
+ @DefaultMessage("Referenced Service Metrics")
+ @Key("label_referencedServiceMetrics")
+ String label_referencedServiceMetrics();
+
+ /**
+ * Translated "References".
+ *
+ * @return translated "References"
+ */
+ @DefaultMessage("References")
+ @Key("label_references")
+ String label_references();
+
+ /**
+ * Translated "Referencing Applications".
+ *
+ * @return translated "Referencing Applications"
+ */
+ @DefaultMessage("Referencing Applications")
+ @Key("label_referencingApplications")
+ String label_referencingApplications();
+
+ /**
+ * Translated "Reset".
+ *
+ * @return translated "Reset"
+ */
+ @DefaultMessage("Reset")
+ @Key("label_reset")
+ String label_reset();
+
+ /**
+ * Translated "Reset All Metrics".
+ *
+ * @return translated "Reset All Metrics"
+ */
+ @DefaultMessage("Reset All Metrics")
+ @Key("label_resetAllMetrics")
+ String label_resetAllMetrics();
+
+ /**
+ * Translated "Reset Metrics".
+ *
+ * @return translated "Reset Metrics"
+ */
+ @DefaultMessage("Reset Metrics")
+ @Key("label_resetMetrics")
+ String label_resetMetrics();
+
+ /**
+ * Translated "Runtime Details".
+ *
+ * @return translated "Runtime Details"
+ */
+ @DefaultMessage("Runtime Details")
+ @Key("label_runtimeDetails")
+ String label_runtimeDetails();
+
+ /**
+ * Translated "Service Details".
+ *
+ * @return translated "Service Details"
+ */
+ @DefaultMessage("Service Details")
+ @Key("label_serviceDetails")
+ String label_serviceDetails();
+
+ /**
+ * Translated "Service Message Metrics".
+ *
+ * @return translated "Service Message Metrics"
+ */
+ @DefaultMessage("Service Message Metrics")
+ @Key("label_serviceMessageMetrics")
+ String label_serviceMessageMetrics();
+
+ /**
+ * Translated "Service Metrics".
+ *
+ * @return translated "Service Metrics"
+ */
+ @DefaultMessage("Service Metrics")
+ @Key("label_serviceMetrics")
+ String label_serviceMetrics();
+
+ /**
+ * Translated "Service Operation Metrics".
+ *
+ * @return translated "Service Operation Metrics"
+ */
+ @DefaultMessage("Service Operation Metrics")
+ @Key("label_serviceOperationMetrics")
+ String label_serviceOperationMetrics();
+
+ /**
+ * Translated "Services".
+ *
+ * @return translated "Services"
+ */
+ @DefaultMessage("Services")
+ @Key("label_services")
+ String label_services();
+
+ /**
+ * Translated "Start".
+ *
+ * @return translated "Start"
+ */
+ @DefaultMessage("Start")
+ @Key("label_start")
+ String label_start();
+
+ /**
+ * Translated "Start/Stop".
+ *
+ * @return translated "Start/Stop"
+ */
+ @DefaultMessage("Start/Stop")
+ @Key("label_startStop")
+ String label_startStop();
+
+ /**
+ * Translated "Status".
+ *
+ * @return translated "Status"
+ */
+ @DefaultMessage("Status")
+ @Key("label_status")
+ String label_status();
+
+ /**
+ * Translated "Stop".
+ *
+ * @return translated "Stop"
+ */
+ @DefaultMessage("Stop")
+ @Key("label_stop")
+ String label_stop();
+
+ /**
+ * Translated "Success Count".
+ *
+ * @return translated "Success Count"
+ */
+ @DefaultMessage("Success Count")
+ @Key("label_successCount")
+ String label_successCount();
+
+ /**
+ * Translated "SwitchYard Applications".
+ *
+ * @return translated "SwitchYard Applications"
+ */
+ @DefaultMessage("SwitchYard Applications")
+ @Key("label_switchYardApplications")
+ String label_switchYardApplications();
+
+ /**
+ * Translated "SwitchYard Artifact References".
+ *
+ * @return translated "SwitchYard Artifact References"
+ */
+ @DefaultMessage("SwitchYard Artifact References")
+ @Key("label_switchYardArtifactReferences")
+ String label_switchYardArtifactReferences();
+
+ /**
+ * Translated "SwitchYard Message Metrics".
+ *
+ * @return translated "SwitchYard Message Metrics"
+ */
+ @DefaultMessage("SwitchYard Message Metrics")
+ @Key("label_switchYardMessageMetrics")
+ String label_switchYardMessageMetrics();
+
+ /**
+ * Translated "SwitchYard References".
+ *
+ * @return translated "SwitchYard References"
+ */
+ @DefaultMessage("SwitchYard References")
+ @Key("label_switchYardReferences")
+ String label_switchYardReferences();
+
+ /**
+ * Translated "SwitchYard Runtime".
+ *
+ * @return translated "SwitchYard Runtime"
+ */
+ @DefaultMessage("SwitchYard Runtime")
+ @Key("label_switchYardRuntime")
+ String label_switchYardRuntime();
+
+ /**
+ * Translated "SwitchYard Runtime Details".
+ *
+ * @return translated "SwitchYard Runtime Details"
+ */
+ @DefaultMessage("SwitchYard Runtime Details")
+ @Key("label_switchYardRuntimeDetails")
+ String label_switchYardRuntimeDetails();
+
+ /**
+ * Translated "SwitchYard Services".
+ *
+ * @return translated "SwitchYard Services"
+ */
+ @DefaultMessage("SwitchYard Services")
+ @Key("label_switchYardServices")
+ String label_switchYardServices();
+
+ /**
+ * Translated "System".
+ *
+ * @return translated "System"
+ */
+ @DefaultMessage("System")
+ @Key("label_system")
+ String label_system();
+
+ /**
+ * Translated "System Message Metrics".
+ *
+ * @return translated "System Message Metrics"
+ */
+ @DefaultMessage("System Message Metrics")
+ @Key("label_systemMessageMetrics")
+ String label_systemMessageMetrics();
+
+ /**
+ * Translated "Target Namespace".
+ *
+ * @return translated "Target Namespace"
+ */
+ @DefaultMessage("Target Namespace")
+ @Key("label_targetNamespace")
+ String label_targetNamespace();
+
+ /**
+ * Translated "Throttling".
+ *
+ * @return translated "Throttling"
+ */
+ @DefaultMessage("Throttling")
+ @Key("label_throttling")
+ String label_throttling();
+
+ /**
+ * Translated "Time %".
+ *
+ * @return translated "Time %"
+ */
+ @DefaultMessage("Time %")
+ @Key("label_timePercent")
+ String label_timePercent();
+
+ /**
+ * Translated "Time Period (millis)".
+ *
+ * @return translated "Time Period (millis)"
+ */
+ @DefaultMessage("Time Period (millis)")
+ @Key("label_timePeriod")
+ String label_timePeriod();
+
+ /**
+ * Translated "To".
+ *
+ * @return translated "To"
+ */
+ @DefaultMessage("To")
+ @Key("label_to")
+ String label_to();
+
+ /**
+ * Translated "Total Count".
+ *
+ * @return translated "Total Count"
+ */
+ @DefaultMessage("Total Count")
+ @Key("label_totalCount")
+ String label_totalCount();
+
+ /**
+ * Translated "Total Processing Time".
+ *
+ * @return translated "Total Processing Time"
+ */
+ @DefaultMessage("Total Processing Time")
+ @Key("label_totalProcessingTime")
+ String label_totalProcessingTime();
+
+ /**
+ * Translated "Transformers".
+ *
+ * @return translated "Transformers"
+ */
+ @DefaultMessage("Transformers")
+ @Key("label_transformers")
+ String label_transformers();
+
+ /**
+ * Translated "Type".
+ *
+ * @return translated "Type"
+ */
+ @DefaultMessage("Type")
+ @Key("label_type")
+ String label_type();
+
+ /**
+ * Translated "URL".
+ *
+ * @return translated "URL"
+ */
+ @DefaultMessage("URL")
+ @Key("label_url")
+ String label_url();
+
+ /**
+ * Translated "Validators".
+ *
+ * @return translated "Validators"
+ */
+ @DefaultMessage("Validators")
+ @Key("label_validators")
+ String label_validators();
+
+ /**
+ * Translated "Version".
+ *
+ * @return translated "Version"
+ */
+ @DefaultMessage("Version")
+ @Key("label_version")
+ String label_version();
+}
View
48 gwt/src/main/java/org/switchyard/console/client/NameTokens.java
@@ -27,55 +27,55 @@ private NameTokens() {
}
/** The SwitchYard subsystem name. */
- public static final String SUBSYSTEM = "switchyard";
+ public static final String SUBSYSTEM = "switchyard"; //$NON-NLS-1$
/** The subpath for the SwitchYard system configuration view. */
- public static final String SYSTEM_CONFIG_PRESENTER = "switchyard";
+ public static final String SYSTEM_CONFIG_PRESENTER = "switchyard"; //$NON-NLS-1$
/** The subpath for the SwitchYard applications view. */
- public static final String APPLICATIONS_PRESENTER = "sy-apps";
+ public static final String APPLICATIONS_PRESENTER = "sy-apps"; //$NON-NLS-1$
/** The subpath for the SwitchYard artifacts view. */
- public static final String ARTIFACTS_PRESENTER = "sy-artifacts";
+ public static final String ARTIFACTS_PRESENTER = "sy-artifacts"; //$NON-NLS-1$
/** The subpath for the SwitchYard services view. */
- public static final String SERVICES_PRESENTER = "sy-services";
+ public static final String SERVICES_PRESENTER = "sy-services"; //$NON-NLS-1$
/** The subpath for the SwitchYard references view. */
- public static final String REFERENCES_PRESENTER = "sy-references";
+ public static final String REFERENCES_PRESENTER = "sy-references"; //$NON-NLS-1$
/** The subpath for the SwitchYard message metrics view. */
- public static final String METRICS_PRESENTER = "sy-metrics";
+ public static final String METRICS_PRESENTER = "sy-metrics"; //$NON-NLS-1$
/** The subpath for the SwitchYard runtime view. */
- public static final String RUNTIME_PRESENTER = "switchyard-runtime";
+ public static final String RUNTIME_PRESENTER = "switchyard-runtime"; //$NON-NLS-1$
/** The subpath for the SwitchYard runtime operations view. */
public static final String RUNTIME_OPERATIONS_PRESENTER = APPLICATIONS_PRESENTER;
/** The parameter name used for component name. */
- public static final String COMPONENT_NAME_PARAM = "component";
+ public static final String COMPONENT_NAME_PARAM = "component"; //$NON-NLS-1$
/** The parameter name used for application name. */
- public static final String APPLICATION_NAME_PARAM = "application";
+ public static final String APPLICATION_NAME_PARAM = "application"; //$NON-NLS-1$
/** The parameter name used for artifact reference key. */
- public static final String ARTIFACT_REFERENCE_KEY_PARAM = "artifactKey";
+ public static final String ARTIFACT_REFERENCE_KEY_PARAM = "artifactKey"; //$NON-NLS-1$
/** The parameter name used for service name. */
- public static final String SERVICE_NAME_PARAM = "service";
+ public static final String SERVICE_NAME_PARAM = "service"; //$NON-NLS-1$
/** The parameter name used for reference name. */
- public static final String REFERENCE_NAME_PARAM = "reference";
+ public static final String REFERENCE_NAME_PARAM = "reference"; //$NON-NLS-1$
/** The display text for the SwitchYard system configuration navigator item. */
- public static final String SYSTEM_CONFIG_TEXT = "Runtime Details";
+ public static final String SYSTEM_CONFIG_TEXT = Singleton.MESSAGES.label_runtimeDetails();
/** The display text for the SwitchYard applications navigator item. */
- public static final String APPLICATIONS_TEXT = "Applications";
+ public static final String APPLICATIONS_TEXT = Singleton.MESSAGES.label_applications();
/** The display text for the SwitchYard artifact references navigator item. */
- public static final String ARTIFACT_REFERENCES_TEXT = "Artifacts";
+ public static final String ARTIFACT_REFERENCES_TEXT = Singleton.MESSAGES.label_artifacts();
/** The display text for the SwitchYard services navigator item. */
- public static final String SERVICES_TEXT = "Services";
+ public static final String SERVICES_TEXT = Singleton.MESSAGES.label_services();
/** The display text for the SwitchYard services navigator item. */
- public static final String REFERENCES_TEXT = "References";
+ public static final String REFERENCES_TEXT = Singleton.MESSAGES.label_references();
/** The display text for the SwitchYard runtime navigator item. */
- public static final String RUNTIME_TEXT = "SwitchYard";
+ public static final String RUNTIME_TEXT = "SwitchYard"; //$NON-NLS-1$
/** The "category" ID for the subsystems tree. */
- public static final String SUBSYSTEM_TREE_CATEGORY = "profiles";
+ public static final String SUBSYSTEM_TREE_CATEGORY = "profiles"; //$NON-NLS-1$
/** The "category" ID for the domain runtime tree. */
- public static final String SUBSYSTEM_DOMAIN_TREE_CATEGORY = "domain-runtime";
+ public static final String SUBSYSTEM_DOMAIN_TREE_CATEGORY = "domain-runtime"; //$NON-NLS-1$
/** The "category" ID for the standalone runtime tree. */
- public static final String SUBSYSTEM_STANDALONE_TREE_CATEGORY = "standalone-runtime";
+ public static final String SUBSYSTEM_STANDALONE_TREE_CATEGORY = "standalone-runtime"; //$NON-NLS-1$
/**
* @param name a string representation of a javax.xml.namespace.QName
@@ -83,13 +83,13 @@ private NameTokens() {
*/
public static String[] parseQName(String name) {
if (name == null) {
- return new String[] {"", "" };
+ return new String[] {"", "" }; //$NON-NLS-1$ //$NON-NLS-2$
}
int namespaceEnd = name.indexOf('}');
if (namespaceEnd > 0) {
return new String[] {name.substring(1, namespaceEnd), name.substring(namespaceEnd + 1) };
}
- return new String[] {"", name };
+ return new String[] {"", name }; //$NON-NLS-1$
}
}
View
14 gwt/src/main/java/org/switchyard/console/client/gin/SwitchYardClientModule.java
@@ -14,6 +14,7 @@
package org.switchyard.console.client.gin;
+import org.switchyard.console.client.Messages;
import org.switchyard.console.client.model.SwitchYardStore;
import org.switchyard.console.client.model.SwitchYardStoreImpl;
import org.switchyard.console.client.ui.application.ApplicationPresenter;
@@ -37,6 +38,7 @@
import org.switchyard.console.components.client.extension.DefaultComponentProvider;
import org.switchyard.console.components.client.extension.DefaultComponentProviderImpl;
+import com.google.inject.Provider;
import com.google.inject.Singleton;
import com.gwtplatform.mvp.client.gin.AbstractPresenterModule;
@@ -74,6 +76,18 @@ protected void configure() {
bind(ComponentProviders.class).in(Singleton.class);
bind(DefaultComponentProvider.class).to(DefaultComponentProviderImpl.class);
+
+ // messages
+ bind(Messages.class).toProvider(MessagesProvider.class);
}
+ /**
+ * Binds the static, singleton instance of Messages.
+ */
+ public static class MessagesProvider implements Provider<Messages> {
+ @Override
+ public Messages get() {
+ return org.switchyard.console.client.Singleton.MESSAGES;
+ }
+ }
}
View
6 gwt/src/main/java/org/switchyard/console/client/gin/SwitchYardGinjector.java
@@ -15,6 +15,7 @@
package org.switchyard.console.client.gin;
import org.jboss.as.console.spi.GinExtension;
+import org.switchyard.console.client.Messages;
import org.switchyard.console.client.ui.application.ApplicationPresenter;
import org.switchyard.console.client.ui.artifacts.ArtifactPresenter;
import org.switchyard.console.client.ui.config.ConfigPresenter;
@@ -39,6 +40,11 @@
public interface SwitchYardGinjector extends Ginjector {
/**
+ * @return the localized messages.
+ */
+ Messages getMessages();
+
+ /**
* @return the ConfigPresenter configured for the module.
*/
AsyncProvider<ConfigPresenter> getConfigPresenter();
View
2  gwt/src/main/java/org/switchyard/console/client/model/ArtifactReferenceCategory.java
@@ -33,7 +33,7 @@ private ArtifactReferenceCategory() {
*/
public static String key(AutoBean<? extends ArtifactReference> instance) {
ArtifactReference ar = instance.as();
- return "" + ar.getName() + "::" + ar.getUrl();
+ return "" + ar.getName() + "::" + ar.getUrl(); //$NON-NLS-1$ //$NON-NLS-2$
}
}
View
113 gwt/src/main/java/org/switchyard/console/client/model/SwitchYardStoreImpl.java
@@ -45,6 +45,7 @@
import org.jboss.dmr.client.ModelNode;
import org.switchyard.console.client.BeanFactory;
import org.switchyard.console.client.NameTokens;
+import org.switchyard.console.client.Singleton;
import org.switchyard.console.components.client.model.Component;
import com.allen_sauer.gwt.log.client.Log;
@@ -61,25 +62,29 @@
public class SwitchYardStoreImpl implements SwitchYardStore {
// management api
- private static final String APPLICATION_NAME = "application-name";
- private static final String GET_VERSION = "get-version";
- private static final String LIST_APPLICATIONS = "list-applications";
- private static final String LIST_SERVICES = "list-services";
- private static final String LIST_REFERENCES = "list-references";
- private static final String MODULE = "module";
- private static final String PROPERTY = "property";
- private static final String READ_APPLICATION = "read-application";
- private static final String READ_SERVICE = "read-service";
- private static final String READ_REFERENCE = "read-reference";
- private static final String SERVICE_NAME = "service-name";
- private static final String SET_APPLICATION_PROPERTY = "set-application-property";
- private static final String SHOW_METRICS = "show-metrics";
- private static final String RESET_METRICS = "reset-metrics";
- private static final String STOP_GATEWAY = "stop-gateway";
- private static final String START_GATEWAY = "start-gateway";
+ private static final String APPLICATION_NAME = "application-name"; //$NON-NLS-1$
+ private static final String GET_VERSION = "get-version"; //$NON-NLS-1$
+ private static final String LIST_APPLICATIONS = "list-applications"; //$NON-NLS-1$
+ private static final String LIST_SERVICES = "list-services"; //$NON-NLS-1$
+ private static final String LIST_REFERENCES = "list-references"; //$NON-NLS-1$
+ private static final String MODULE = "module"; //$NON-NLS-1$
+ private static final String PROPERTY = "property"; //$NON-NLS-1$
+ private static final String READ_APPLICATION = "read-application"; //$NON-NLS-1$
+ private static final String READ_SERVICE = "read-service"; //$NON-NLS-1$
+ private static final String READ_REFERENCE = "read-reference"; //$NON-NLS-1$
+ private static final String SERVICE_NAME = "service-name"; //$NON-NLS-1$
+ private static final String SET_APPLICATION_PROPERTY = "set-application-property"; //$NON-NLS-1$
+ private static final String SHOW_METRICS = "show-metrics"; //$NON-NLS-1$
+ private static final String RESET_METRICS = "reset-metrics"; //$NON-NLS-1$
+ private static final String STOP_GATEWAY = "stop-gateway"; //$NON-NLS-1$
+ private static final String START_GATEWAY = "start-gateway"; //$NON-NLS-1$
private static final String SWITCHYARD = NameTokens.SUBSYSTEM;
- private static final String THROTTLING = "throttling";
- private static final String UPDATE_THROTTLING = "update-throttling";
+ private static final String THROTTLING = "throttling"; //$NON-NLS-1$
+ private static final String UPDATE_THROTTLING = "update-throttling"; //$NON-NLS-1$
+ private static final String SERVICE = "service"; //$NON-NLS-1$
+ private static final String REFERENCE = "reference"; //$NON-NLS-1$
+ private static final String ALL_WILDCARD = "*"; //$NON-NLS-1$
+ private static final String PARSE_ERROR_MESSAGE = "Failed to parse data source representation"; //$NON-NLS-1$
private final DispatchAsync _dispatcher;
private final BeanFactory _factory;
@@ -161,7 +166,7 @@ public void onSuccess(DMRResponse result) {
application.setName(applicationNode.asString());
applications.add(application);
} catch (IllegalArgumentException e) {
- Log.error("Failed to parse data source representation", e);
+ Log.error(PARSE_ERROR_MESSAGE, e);
}
}
@@ -200,7 +205,7 @@ public void onSuccess(DMRResponse result) {
return;
}
}
- callback.onFailure(new Exception("Could not load information for application: " + applicationName));
+ callback.onFailure(new Exception(Singleton.MESSAGES.error_applicationLoad(applicationName)));
}
});
}
@@ -234,7 +239,7 @@ public void onSuccess(DMRResponse result) {
component.setName(componentNode.asString());
components.add(component);
} catch (IllegalArgumentException e) {
- Log.error("Failed to parse data source representation", e);
+ Log.error(PARSE_ERROR_MESSAGE, e);
}
}
@@ -277,7 +282,7 @@ public void onSuccess(DMRResponse result) {
return;
}
}
- callback.onFailure(new Exception("Could not load information for component: " + componentName));
+ callback.onFailure(new Exception(Singleton.MESSAGES.error_componentLoad(componentName)));
}
});
}
@@ -349,8 +354,7 @@ public void onSuccess(DMRResponse result) {
return;
}
}
- callback.onFailure(new Exception("Could not load information for service: " + serviceName
- + " from application: " + applicationName));
+ callback.onFailure(new Exception(Singleton.MESSAGES.error_serviceLoad(serviceName, applicationName)));
}
});
}
@@ -383,7 +387,7 @@ public void onSuccess(DMRResponse result) {
return;
}
}
- callback.onFailure(new Exception("Could not load metrics for service: " + serviceName));
+ callback.onFailure(new Exception(Singleton.MESSAGES.error_serviceMetricsLoad(serviceName)));
}
});
}
@@ -397,8 +401,8 @@ public void loadAllServiceMetrics(final AsyncCallback<List<ServiceMetrics>> call
operation.get(OP).set(SHOW_METRICS);
address.add(SUBSYSTEM, SWITCHYARD);
operation.get(OP_ADDR).set(address);
- operation.get(SERVICE_NAME).set("*");
- operation.get(TYPE).set("service");
+ operation.get(SERVICE_NAME).set(ALL_WILDCARD);
+ operation.get(TYPE).set(SERVICE);
_dispatcher.execute(new DMRAction(operation), new AsyncCallback<DMRResponse>() {
@@ -411,7 +415,7 @@ public void onFailure(Throwable caught) {
public void onSuccess(DMRResponse result) {
final ModelNode response = result.get();
if (response.hasDefined(FAILED)) {
- callback.onFailure(new Exception("Could not load all service metrics."));
+ callback.onFailure(new Exception(Singleton.MESSAGES.error_allServiceMetricsLoad()));
} else if (response.hasDefined(RESULT)) {
final List<ServiceMetrics> metrics = createServiceMetrics(response.get(RESULT));
callback.onSuccess(metrics);
@@ -431,8 +435,8 @@ public void loadAllReferenceMetrics(final AsyncCallback<List<ServiceMetrics>> ca
operation.get(OP).set(SHOW_METRICS);
address.add(SUBSYSTEM, SWITCHYARD);
operation.get(OP_ADDR).set(address);
- operation.get(SERVICE_NAME).set("*");
- operation.get(TYPE).set("reference");
+ operation.get(SERVICE_NAME).set(ALL_WILDCARD);
+ operation.get(TYPE).set(REFERENCE);
_dispatcher.execute(new DMRAction(operation), new AsyncCallback<DMRResponse>() {
@@ -445,7 +449,7 @@ public void onFailure(Throwable caught) {
public void onSuccess(DMRResponse result) {
final ModelNode response = result.get();
if (response.hasDefined(FAILED)) {
- callback.onFailure(new Exception("Could not load all reference metrics."));
+ callback.onFailure(new Exception(Singleton.MESSAGES.error_allReferenceMetricsLoad()));
} else if (response.hasDefined(RESULT)) {
final List<ServiceMetrics> metrics = createServiceMetrics(response.get(RESULT));
callback.onSuccess(metrics);
@@ -483,7 +487,7 @@ public void onSuccess(DMRResponse result) {
return;
}
}
- callback.onFailure(new Exception("Could not load metrics for system"));
+ callback.onFailure(new Exception(Singleton.MESSAGES.error_systemMetricsLoad()));
}
});
}
@@ -555,8 +559,7 @@ public void onSuccess(DMRResponse result) {
return;
}
}
- callback.onFailure(new Exception("Could not load information for reference: " + referenceName
- + " from application: " + applicationName));
+ callback.onFailure(new Exception(Singleton.MESSAGES.error_referenceLoad(referenceName, applicationName)));
}
});
}
@@ -582,7 +585,7 @@ public void onFailure(Throwable caught) {
public void onSuccess(DMRResponse result) {
final ModelNode response = result.get();
if (response.hasDefined(FAILED)) {
- callback.onFailure(new Exception("Could not load artifact references."));
+ callback.onFailure(new Exception(Singleton.MESSAGES.error_artifactsLoad()));
} else if (response.hasDefined(RESULT)) {
Map<String, ArtifactReference> references = new HashMap<String, ArtifactReference>();
for (ModelNode node : response.get(RESULT).asList()) {
@@ -644,7 +647,7 @@ public void onSuccess(DMRResponse result) {
callback.onSuccess(null);
return;
}
- callback.onFailure(new Exception("Failure setting property:" + prop.getKey()));
+ callback.onFailure(new Exception(Singleton.MESSAGES.error_setProperty(prop.getKey())));
}
});
}
@@ -672,8 +675,8 @@ public void onSuccess(DMRResponse result) {
callback.onSuccess(null);
return;
}
- callback.onFailure(new Exception("Failure resetting system metrics: "
- + response.getFailureDescription()));
+ callback.onFailure(new Exception(Singleton.MESSAGES.error_resetSystemMetrics(response
+ .getFailureDescription())));
}
});
}
@@ -704,8 +707,8 @@ public void onSuccess(DMRResponse result) {
callback.onSuccess(null);
return;
}
- callback.onFailure(new Exception("Failure resetting metrics for " + name + ": "
- + response.getFailureDescription()));
+ callback.onFailure(new Exception(Singleton.MESSAGES.error_resetObjectMetrics(name,
+ response.getFailureDescription())));
}
});
}
@@ -738,8 +741,8 @@ public void onSuccess(DMRResponse result) {
callback.onSuccess(null);
return;
}
- callback.onFailure(new Exception("Failure stopping gateway for " + name + ": "
- + response.getFailureDescription()));
+ callback.onFailure(new Exception(Singleton.MESSAGES.error_stopGateway(name,
+ response.getFailureDescription())));
}
});
}
@@ -772,8 +775,8 @@ public void onSuccess(DMRResponse result) {
callback.onSuccess(null);
return;
}
- callback.onFailure(new Exception("Failure starting gateway for " + name + ": "
- + response.getFailureDescription()));
+ callback.onFailure(new Exception(Singleton.MESSAGES.error_startGateway(name,
+ response.getFailureDescription())));
}
});
}
@@ -805,8 +808,8 @@ public void onSuccess(DMRResponse result) {
callback.onSuccess(null);
return;
}
- callback.onFailure(new Exception("Failure updating throttling details for " + service.localName() + ": "
- + response.getFailureDescription()));
+ callback.onFailure(new Exception(Singleton.MESSAGES.error_updateThrottling(service.localName(),
+ response.getFailureDescription())));
}
});
}
@@ -836,7 +839,7 @@ private SystemDetails createSystemDetails(final ModelNode systemDetailsNode) {
try {
return AutoBeanCodex.decode(_factory, SystemDetails.class, systemDetailsNode.toJSONString(true)).as();
} catch (Exception e) {
- Log.error("Failed to parse data source representation", e);
+ Log.error(PARSE_ERROR_MESSAGE, e);
return null;
}
}
@@ -845,7 +848,7 @@ private Application createApplication(final ModelNode applicationNode) {
try {
return AutoBeanCodex.decode(_factory, Application.class, applicationNode.toJSONString(true)).as();
} catch (Exception e) {
- Log.error("Failed to parse data source representation", e);
+ Log.error(PARSE_ERROR_MESSAGE, e);
return null;
}
}
@@ -854,7 +857,7 @@ private Component createComponent(final ModelNode componentNode) {
try {
return AutoBeanCodex.decode(_factory, Component.class, componentNode.toJSONString(true)).as();
} catch (Exception e) {
- Log.error("Failed to parse data source representation", e);
+ Log.error(PARSE_ERROR_MESSAGE, e);
return null;
}
}
@@ -863,7 +866,7 @@ private Service createServiceStub(final ModelNode serviceNode) {
try {
return AutoBeanCodex.decode(_factory, Service.class, serviceNode.toJSONString(true)).as();
} catch (Exception e) {
- Log.error("Failed to parse data source representation", e);
+ Log.error(PARSE_ERROR_MESSAGE, e);
return null;
}
}
@@ -872,7 +875,7 @@ private Service createService(final ModelNode serviceNode) {
try {
return AutoBeanCodex.decode(_factory, Service.class, serviceNode.toJSONString(true)).as();
} catch (Exception e) {
- Log.error("Failed to parse data source representation", e);
+ Log.error(PARSE_ERROR_MESSAGE, e);
return null;
}
}
@@ -884,7 +887,7 @@ private Service createService(final ModelNode serviceNode) {
try {
metrics.add(AutoBeanCodex.decode(_factory, ServiceMetrics.class, item.toJSONString(true)).as());
} catch (Exception e) {
- Log.error("Failed to parse data source representation", e);
+ Log.error(PARSE_ERROR_MESSAGE, e);
}
}
return metrics;
@@ -894,7 +897,7 @@ private MessageMetrics createMessageMetrics(final ModelNode metricsNode) {
try {
return AutoBeanCodex.decode(_factory, MessageMetrics.class, metricsNode.toJSONString(true)).as();
} catch (Exception e) {
- Log.error("Failed to parse data source representation", e);
+ Log.error(PARSE_ERROR_MESSAGE, e);
return null;
}
}
@@ -903,7 +906,7 @@ private Reference createReferenceStub(final ModelNode referenceNode) {
try {
return AutoBeanCodex.decode(_factory, Reference.class, referenceNode.toJSONString(true)).as();
} catch (Exception e) {
- Log.error("Failed to parse data source representation", e);
+ Log.error(PARSE_ERROR_MESSAGE, e);
return null;
}
}
@@ -912,7 +915,7 @@ private Reference createReference(final ModelNode referenceNode) {
try {
return AutoBeanCodex.decode(_factory, Reference.class, referenceNode.toJSONString(true)).as();
} catch (Exception e) {
- Log.error("Failed to parse data source representation", e);
+ Log.error(PARSE_ERROR_MESSAGE, e);
return null;
}
}
View
18 gwt/src/main/java/org/switchyard/console/client/ui/application/ApplicationPresenter.java
@@ -21,6 +21,8 @@
import org.jboss.as.console.client.shared.properties.PropertyRecord;
import org.jboss.ballroom.client.layout.LHSHighlightEvent;
import org.switchyard.console.client.NameTokens;
+import org.switchyard.console.client.Singleton;
+import org.switchyard.console.client.gin.SwitchYardGinjector;
import org.switchyard.console.client.model.Application;
import org.switchyard.console.client.model.ArtifactReference;
import org.switchyard.console.client.model.Reference;
@@ -60,10 +62,14 @@
*/
@ProxyCodeSplit
@NameToken(NameTokens.APPLICATIONS_PRESENTER)
- @TabInfo(container = RuntimePresenter.class, label = NameTokens.APPLICATIONS_TEXT, priority = 1)
public interface MyProxy extends TabContentProxyPlace<ApplicationPresenter> {
}
+ @TabInfo(container = RuntimePresenter.class, priority = 1)
+ static String getLabel(SwitchYardGinjector ginjector) {
+ return ginjector.getMessages().label_applications();
+ }
+
/**
* MyView
*
@@ -146,7 +152,7 @@ public void onArtifactSelected(ArtifactReference artifact) {
*/
public void onNavigateToService(Service service, Application application) {
if (service == null || application == null) {
- Console.error("Cannot reveal service details. No service or application specified.");
+ Console.error(Singleton.MESSAGES.error_navigateToService());
return;
}
_placeManager.revealRelativePlace(
@@ -164,7 +170,7 @@ public void onNavigateToService(Service service, Application application) {
*/
public void onNavigateToReference(Reference reference, Application application) {
if (reference == null || application == null) {
- Console.error("Cannot reveal reference details. No reference or application specified.");
+ Console.error(Singleton.MESSAGES.error_navigateToReference());
return;
}
_placeManager.revealRelativePlace(
@@ -193,7 +199,7 @@ public void onSuccess(Void result) {
@Override
public void onFailure(Throwable caught) {
- Console.error("Unknown error", caught.getMessage());
+ Console.error(Singleton.MESSAGES.error_unknown(), caught.getMessage());
}
});
}
@@ -254,7 +260,7 @@ public void onSuccess(List<Application> applications) {
@Override
public void onFailure(Throwable caught) {
- Console.error("Unknown error", caught.getMessage());
+ Console.error(Singleton.MESSAGES.error_unknown(), caught.getMessage());
}
});
}
@@ -273,7 +279,7 @@ public void onSuccess(Application result) {
@Override
public void onFailure(Throwable caught) {
- Console.error("Unknown error", caught.getMessage());
+ Console.error(Singleton.MESSAGES.error_unknown(), caught.getMessage());
}
});
}
View
5 ...src/main/java/org/switchyard/console/client/ui/application/ApplicationReferencesList.java
@@ -14,6 +14,7 @@
package org.switchyard.console.client.ui.application;
import org.jboss.ballroom.client.widgets.tables.DefaultCellTable;
+import org.switchyard.console.client.Singleton;
import org.switchyard.console.client.model.Application;
import org.switchyard.console.client.model.Reference;
import org.switchyard.console.client.ui.common.AbstractDataTable;
@@ -45,7 +46,7 @@ public Object getKey(Reference item) {
private final ApplicationPresenter _presenter;
ApplicationReferencesList(ApplicationPresenter presenter) {
- super("References");
+ super(Singleton.MESSAGES.label_references());
_presenter = presenter;
}
@@ -69,7 +70,7 @@ public void update(int index, Reference object, String value) {
dataProvider.getList());
sortHandler.setComparator(nameColumn, createColumnCommparator(nameColumn));
- table.addColumn(nameColumn, "Name");
+ table.addColumn(nameColumn, Singleton.MESSAGES.label_name());
table.addColumnSortHandler(sortHandler);
table.getColumnSortList().push(nameColumn);
View
2  ...src/main/java/org/switchyard/console/client/ui/application/ApplicationServicesEditor.java
@@ -47,7 +47,7 @@ public ApplicationServicesEditor(ApplicationPresenter presenter) {
*/
public Widget asWidget() {
VerticalPanel layout = new VerticalPanel();
- layout.setStyleName("fill-layout-width");
+ layout.setStyleName("fill-layout-width"); //$NON-NLS-1$
_applicationServicesList = new ApplicationServicesList(_presenter);
_componentServicesList = new ComponentServicesList();
View
7 gwt/src/main/java/org/switchyard/console/client/ui/application/ApplicationServicesList.java
@@ -15,6 +15,7 @@
import org.jboss.ballroom.client.widgets.tables.DefaultCellTable;
import org.switchyard.console.client.NameTokens;
+import org.switchyard.console.client.Singleton;
import org.switchyard.console.client.model.Application;
import org.switchyard.console.client.model.Service;
import org.switchyard.console.client.ui.common.AbstractDataTable;
@@ -47,7 +48,7 @@ public Object getKey(Service item) {
private final ApplicationPresenter _presenter;
ApplicationServicesList(ApplicationPresenter presenter) {
- super("Services");
+ super(Singleton.MESSAGES.label_services());
_presenter = presenter;
}
@@ -80,8 +81,8 @@ public String getValue(Service service) {
sortHandler.setComparator(nameColumn, createColumnCommparator(nameColumn));
sortHandler.setComparator(promotesColumn, createColumnCommparator(promotesColumn));
- table.addColumn(nameColumn, "Name");
- table.addColumn(promotesColumn, "Promoted Service");
+ table.addColumn(nameColumn, Singleton.MESSAGES.label_name());
+ table.addColumn(promotesColumn, Singleton.MESSAGES.label_promotedService());
table.addColumnSortHandler(sortHandler);
table.getColumnSortList().push(nameColumn);
View
37 gwt/src/main/java/org/switchyard/console/client/ui/application/ApplicationView.java
@@ -23,6 +23,7 @@
import org.jboss.as.console.client.shared.viewframework.builder.OneToOneLayout;
import org.jboss.as.console.client.shared.viewframework.builder.SimpleLayout;
import org.jboss.ballroom.client.widgets.forms.Form;
+import org.switchyard.console.client.Singleton;
import org.switchyard.console.client.model.Application;
import org.switchyard.console.client.ui.artifacts.ArtifactReferencesList;
import org.switchyard.console.client.ui.common.ValidatorsList;
@@ -69,14 +70,14 @@ public void onSelectionChange(SelectionChangeEvent event) {
});
VerticalPanel applicationDetailsPanel = new VerticalPanel();
- applicationDetailsPanel.setStyleName("fill-layout-width");
+ applicationDetailsPanel.setStyleName("fill-layout-width"); //$NON-NLS-1$
_applicationDetailsForm = new Form<Application>(Application.class);
// XXX: '_' included in names to workaround bug in form builder
- _applicationDetailsForm.setFields(new LocalNameFormItem("name_1", "Application Name"), new NamespaceFormItem(
- "name_2", "Application Namespace"));
+ _applicationDetailsForm.setFields(new LocalNameFormItem("name_1", Singleton.MESSAGES.label_applicationName()), //$NON-NLS-1$
+ new NamespaceFormItem("name_2", Singleton.MESSAGES.label_applicationNamespace())); //$NON-NLS-1$
Widget formWidget = _applicationDetailsForm.asWidget();
- formWidget.getElement().setAttribute("style", "margin:15px");
+ formWidget.getElement().setAttribute("style", "margin:15px"); //$NON-NLS-1$ //$NON-NLS-2$
_servicesEditor = new ApplicationServicesEditor(_presenter);
_referencesEditor = new ApplicationReferencesList(_presenter);
@@ -97,29 +98,29 @@ public void onSelectionChange(SelectionChangeEvent event) {
// reparent the panel containing the controls
OneToOneLayout applicationDetailsLayout = new OneToOneLayout()
.setPlain(true)
- .setHeadline("Application Details")
+ .setHeadline(Singleton.MESSAGES.label_applicationDetails())
.setDescription(
- "Displays details for a specific application. Select an application to see its implementation details.")
- .setMaster(null, formWidget).addDetail("Services", _servicesEditor.asWidget())
- .addDetail("References", _referencesEditor.asWidget())
- .addDetail("Properties", _propertiesEditor.asWidget())
- .addDetail("Artifacts", _artifactReferencesList.asWidget())
- .addDetail("Transformers", _transformationsEditor.asWidget())
- .addDetail("Validators", _validatorsList.asWidget());
+ Singleton.MESSAGES.description_applicationDetails())
+ .setMaster(null, formWidget).addDetail(Singleton.MESSAGES.label_services(), _servicesEditor.asWidget())
+ .addDetail(Singleton.MESSAGES.label_references(), _referencesEditor.asWidget())
+ .addDetail(Singleton.MESSAGES.label_properties(), _propertiesEditor.asWidget())
+ .addDetail(Singleton.MESSAGES.label_artifacts(), _artifactReferencesList.asWidget())
+ .addDetail(Singleton.MESSAGES.label_transformers(), _transformationsEditor.asWidget())
+ .addDetail(Singleton.MESSAGES.label_validators(), _validatorsList.asWidget());
applicationDetailsLayout.build();
- formWidget.getParent().setStyleName("fill-layout-width");
+ formWidget.getParent().setStyleName("fill-layout-width"); //$NON-NLS-1$
/* disable updating "key" field. */
_propertiesEditor.getPropertyTable().getColumn(0).setFieldUpdater(null);
SimpleLayout layout = new SimpleLayout()
.setPlain(true)
- .setTitle("SwitchYard Applications")
- .setHeadline("Applications")
+ .setTitle(Singleton.MESSAGES.label_switchYardApplications())
+ .setHeadline(Singleton.MESSAGES.label_applications())
.setDescription(
- "Displays a list of deployed SwitchYard applications. Select an application to see more details.")
- .addContent("Applications", _applicationsList.asWidget())
- .addContent("Application Details", formWidget.getParent());
+ Singleton.MESSAGES.description_applications())
+ .addContent(Singleton.MESSAGES.label_applications(), _applicationsList.asWidget())
+ .addContent(Singleton.MESSAGES.label_applicationDetails(), formWidget.getParent());
return layout.build();
}
View
7 gwt/src/main/java/org/switchyard/console/client/ui/application/ApplicationsList.java
@@ -14,6 +14,7 @@
package org.switchyard.console.client.ui.application;
import org.jboss.ballroom.client.widgets.tables.DefaultCellTable;
+import org.switchyard.console.client.Singleton;
import org.switchyard.console.client.model.Application;
import org.switchyard.console.client.ui.common.AbstractDataTable;
@@ -35,7 +36,7 @@
* Create a new ApplicationsList.