Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/nls')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/nls/Messages.java136
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/nls/Messages.properties69
2 files changed, 205 insertions, 0 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/nls/Messages.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/nls/Messages.java
new file mode 100644
index 000000000..a97fd4cbe
--- /dev/null
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/nls/Messages.java
@@ -0,0 +1,136 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Wind River Systems, Inc. and others. 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:
+ * Wind River Systems - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.tcf.te.tcf.ui.nls;
+
+import java.lang.reflect.Field;
+
+import org.eclipse.osgi.util.NLS;
+
+/**
+ * TCF UI Plug-in externalized strings management.
+ */
+public class Messages extends NLS {
+
+ // The plug-in resource bundle name
+ private static final String BUNDLE_NAME = "org.eclipse.tcf.te.tcf.ui.nls.Messages"; //$NON-NLS-1$
+
+ /**
+ * Static constructor.
+ */
+ static {
+ // Load message values from bundle file
+ NLS.initializeMessages(BUNDLE_NAME, Messages.class);
+ }
+
+ /**
+ * Returns if or if not this NLS manager contains a constant for
+ * the given externalized strings key.
+ *
+ * @param key The externalized strings key or <code>null</code>.
+ * @return <code>True</code> if a constant for the given key exists, <code>false</code> otherwise.
+ */
+ public static boolean hasString(String key) {
+ if (key != null) {
+ try {
+ Field field = Messages.class.getDeclaredField(key);
+ return field != null;
+ } catch (NoSuchFieldException e) { /* ignored on purpose */ }
+ }
+
+ return false;
+ }
+
+ /**
+ * Returns the corresponding string for the given externalized strings
+ * key or <code>null</code> if the key does not exist.
+ *
+ * @param key The externalized strings key or <code>null</code>.
+ * @return The corresponding string or <code>null</code>.
+ */
+ public static String getString(String key) {
+ if (key != null) {
+ try {
+ Field field = Messages.class.getDeclaredField(key);
+ if (field != null) {
+ return (String)field.get(null);
+ }
+ } catch (Exception e) { /* ignored on purpose */ }
+ }
+
+ return null;
+ }
+
+ // **** Declare externalized string id's down here *****
+
+ public static String NodePropertiesContentProvider_peerNode_sectionTitle;
+
+ public static String NodePropertiesLabelProvider_state;
+ public static String NodePropertiesLabelProvider_state__1;
+ public static String NodePropertiesLabelProvider_state_0;
+ public static String NodePropertiesLabelProvider_state_1;
+ public static String NodePropertiesLabelProvider_state_2;
+ public static String NodePropertiesLabelProvider_state_3;
+
+ public static String NodePropertiesLabelProvider_lastScannerError;
+
+ public static String NodePropertiesLabelProvider_services_local;
+ public static String NodePropertiesLabelProvider_services_remote;
+
+ public static String NewTargetWizard_windowTitle;
+ public static String NewTargetWizard_error_savePeer;
+
+ public static String NewTargetWizardPage_title;
+ public static String NewTargetWizardPage_description;
+ public static String NewTargetWizardPage_section_transportType;
+ public static String NewTargetWizardPage_section_attributes;
+
+ public static String PeerIdControl_label;
+ public static String PeerNameControl_label;
+
+ public static String TransportTypeControl_label;
+ public static String TransportTypeControl_tcpType_label;
+ public static String TransportTypeControl_sslType_label;
+ public static String TransportTypeControl_pipeType_label;
+ public static String TransportTypeControl_customType_label;
+
+ public static String MyRemoteHostAddressControl_label;
+ public static String MyRemoteHostAddressControl_information_missingTargetNameAddress;
+ public static String MyRemoteHostAddressControl_error_invalidTargetNameAddress;
+ public static String MyRemoteHostAddressControl_error_invalidTargetIpAddress;
+ public static String MyRemoteHostAddressControl_error_targetNameNotResolveable;
+ public static String MyRemoteHostAddressControl_information_checkNameAddressUserInformation;
+
+ public static String PipeNameControl_label;
+ public static String PipeNameControl_information_missingValue;
+ public static String PipeNameControl_error_invalidValue;
+
+ public static String CustomTransportNameControl_label;
+ public static String CustomTransportNameControl_information_missingValue;
+ public static String CustomTransportNameControl_error_invalidValue;
+
+ public static String PeerAttributesTablePart_button_new;
+ public static String PeerAttributesTablePart_button_edit;
+ public static String PeerAttributesTablePart_button_remove;
+ public static String PeerAttributesTablePart_column_name;
+ public static String PeerAttributesTablePart_column_value;
+ public static String PeerAttributesTablePart_add_dialogTitle;
+ public static String PeerAttributesTablePart_add_title;
+ public static String PeerAttributesTablePart_add_message;
+ public static String PeerAttributesTablePart_edit_dialogTitle;
+ public static String PeerAttributesTablePart_edit_title;
+ public static String PeerAttributesTablePart_edit_message;
+
+ public static String DeleteCommandHandler_error_title;
+ public static String DeleteCommandHandler_error_deleteFailed;
+
+ public static String AgentSelectionDialog_dialogTitle;
+ public static String AgentSelectionDialog_title;
+ public static String AgentSelectionDialog_message;
+}
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/nls/Messages.properties b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/nls/Messages.properties
new file mode 100644
index 000000000..8ee194c98
--- /dev/null
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/nls/Messages.properties
@@ -0,0 +1,69 @@
+#
+# org.eclipse.tcf.te.tcf.ui
+# Externalized Strings.
+#
+
+NodePropertiesContentProvider_peerNode_sectionTitle=Peer
+
+NodePropertiesLabelProvider_state=Link State
+NodePropertiesLabelProvider_state__1=Unknown
+NodePropertiesLabelProvider_state_0=Reachable
+NodePropertiesLabelProvider_state_1=Communicating
+NodePropertiesLabelProvider_state_2=Not Reachable. Connection attempt timed out.
+NodePropertiesLabelProvider_state_3=Not Reachable. Connection attempt failed.
+
+NodePropertiesLabelProvider_lastScannerError=Communication failed. Possible cause:
+
+NodePropertiesLabelProvider_services_local=Local Services
+NodePropertiesLabelProvider_services_remote=Remote Services
+
+NewTargetWizard_windowTitle=New Peer
+NewTargetWizard_error_savePeer=Failed to save peer: {0}
+
+NewTargetWizardPage_title=New Peer
+NewTargetWizardPage_description=Define the properties of the new peer.
+NewTargetWizardPage_section_transportType=Specify the transport type and properties:
+NewTargetWizardPage_section_attributes=Specify additional peer attributes:
+
+PeerIdControl_label=Peer ID:
+PeerNameControl_label=Peer Name:
+
+TransportTypeControl_label=Type:
+TransportTypeControl_tcpType_label=TCP
+TransportTypeControl_sslType_label=SSL
+TransportTypeControl_pipeType_label=PIPE
+TransportTypeControl_customType_label=Custom
+
+MyRemoteHostAddressControl_label=Host:
+MyRemoteHostAddressControl_information_missingTargetNameAddress=Please enter a valid peer host name or IP address.
+MyRemoteHostAddressControl_error_invalidTargetNameAddress=Peer host name or IP address is not valid.
+MyRemoteHostAddressControl_error_invalidTargetIpAddress=Peer host IP address is not valid.
+MyRemoteHostAddressControl_error_targetNameNotResolveable=Cannot resolve the peer host name to a valid IP address.
+MyRemoteHostAddressControl_information_checkNameAddressUserInformation=The peer host name can be validated by pressing the check button.
+
+PipeNameControl_label=Pipe Name:
+PipeNameControl_information_missingValue=Please enter a valid pipe name.
+PipeNameControl_error_invalidValue=Pipe name is not valid.
+
+CustomTransportNameControl_label=Transport Name:
+CustomTransportNameControl_information_missingValue=Please enter a valid transport name.
+CustomTransportNameControl_error_invalidValue=Transport name is not valid.
+
+PeerAttributesTablePart_button_new=New...
+PeerAttributesTablePart_button_edit=Edit...
+PeerAttributesTablePart_button_remove=Remove
+PeerAttributesTablePart_column_name=Name
+PeerAttributesTablePart_column_value=Value
+PeerAttributesTablePart_add_dialogTitle=Add
+PeerAttributesTablePart_add_title=Add Attribute
+PeerAttributesTablePart_add_message=Specify the name and the value of the new peer attribute.
+PeerAttributesTablePart_edit_dialogTitle=Edit
+PeerAttributesTablePart_edit_title=Edit Attribute
+PeerAttributesTablePart_edit_message=Edit the selected peer attribute.
+
+DeleteCommandHandler_error_title=Error
+DeleteCommandHandler_error_deleteFailed=Failed to delete static peer.
+
+AgentSelectionDialog_dialogTitle=Select Agent(s)
+AgentSelectionDialog_title=Select Agent(s)
+AgentSelectionDialog_message=Select the agent(s) for the operation to perform.

Back to the top