diff options
author | Victor Roldan Betancort | 2009-05-20 19:40:21 +0000 |
---|---|---|
committer | Victor Roldan Betancort | 2009-05-20 19:40:21 +0000 |
commit | 4f642ff0e03e43277eecd13ad23b547aadd1f102 (patch) | |
tree | 209fb85ac2e107654eac8830ae112d11c1ffb9f5 /plugins/org.eclipse.net4j.examples/src/org/eclipse/net4j/examples/echo | |
parent | 8fa5aebdac03f0ecf8b959397ca291a603dbd9a2 (diff) | |
download | cdo-4f642ff0e03e43277eecd13ad23b547aadd1f102.tar.gz cdo-4f642ff0e03e43277eecd13ad23b547aadd1f102.tar.xz cdo-4f642ff0e03e43277eecd13ad23b547aadd1f102.zip |
[272193] [UI] Externalize Strings (Net4j)
https://bugs.eclipse.org/bugs/show_bug.cgi?id=272193
Diffstat (limited to 'plugins/org.eclipse.net4j.examples/src/org/eclipse/net4j/examples/echo')
3 files changed, 7 insertions, 7 deletions
diff --git a/plugins/org.eclipse.net4j.examples/src/org/eclipse/net4j/examples/echo/EchoProtocol.java b/plugins/org.eclipse.net4j.examples/src/org/eclipse/net4j/examples/echo/EchoProtocol.java index 809f920490..e95d14dcae 100644 --- a/plugins/org.eclipse.net4j.examples/src/org/eclipse/net4j/examples/echo/EchoProtocol.java +++ b/plugins/org.eclipse.net4j.examples/src/org/eclipse/net4j/examples/echo/EchoProtocol.java @@ -16,7 +16,7 @@ package org.eclipse.net4j.examples.echo; */ public interface EchoProtocol { - public static final String PROTOCOL_NAME = "echo"; + public static final String PROTOCOL_NAME = "echo"; //$NON-NLS-1$ public static final short ECHO_SIGNAL = 1; } diff --git a/plugins/org.eclipse.net4j.examples/src/org/eclipse/net4j/examples/echo/client/EchoClient.java b/plugins/org.eclipse.net4j.examples/src/org/eclipse/net4j/examples/echo/client/EchoClient.java index 0b548e5120..6ef78c100e 100644 --- a/plugins/org.eclipse.net4j.examples/src/org/eclipse/net4j/examples/echo/client/EchoClient.java +++ b/plugins/org.eclipse.net4j.examples/src/org/eclipse/net4j/examples/echo/client/EchoClient.java @@ -42,16 +42,16 @@ public class EchoClient try { // Start a connector that represents the client side of a physical connection - IConnector connector = (IConnector)container.getElement("org.eclipse.net4j.connectors", "tcp", "localhost:2036"); + IConnector connector = (IConnector)container.getElement("org.eclipse.net4j.connectors", "tcp", "localhost:2036"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ // Open a virtual channel with the ECHO protocol, send an ECHO request and close the channel EchoClientProtocol protocol = new EchoClientProtocol(connector); - EchoRequest request = new EchoRequest(protocol, "My cool message"); + EchoRequest request = new EchoRequest(protocol, "My cool message"); //$NON-NLS-1$ String echo = request.send(); protocol.close(); System.out.println(); - System.out.println("ECHO: " + echo); + System.out.println("ECHO: " + echo); //$NON-NLS-1$ System.out.println(); } finally diff --git a/plugins/org.eclipse.net4j.examples/src/org/eclipse/net4j/examples/echo/server/EchoServer.java b/plugins/org.eclipse.net4j.examples/src/org/eclipse/net4j/examples/echo/server/EchoServer.java index e857e08506..92c7222d97 100644 --- a/plugins/org.eclipse.net4j.examples/src/org/eclipse/net4j/examples/echo/server/EchoServer.java +++ b/plugins/org.eclipse.net4j.examples/src/org/eclipse/net4j/examples/echo/server/EchoServer.java @@ -45,10 +45,10 @@ public class EchoServer try { // Start an acceptor - IAcceptor acceptor = (IAcceptor)container.getElement("org.eclipse.net4j.acceptors", "tcp", "0.0.0.0:2036"); - OM.LOG.info("Accepting connections: " + acceptor); + IAcceptor acceptor = (IAcceptor)container.getElement("org.eclipse.net4j.acceptors", "tcp", "0.0.0.0:2036"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + OM.LOG.info("Accepting connections: " + acceptor); //$NON-NLS-1$ - System.out.println("Press any key to shutdown"); + System.out.println("Press any key to shutdown"); //$NON-NLS-1$ while (IOUtil.IN().read() == -1) { Thread.sleep(200); |