Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/bundle/CDOCommandProvider.java26
-rw-r--r--plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/bundle/Net4jCommandProvider.java12
2 files changed, 22 insertions, 16 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/bundle/CDOCommandProvider.java b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/bundle/CDOCommandProvider.java
index 6f7df7da50..fde5577edd 100644
--- a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/bundle/CDOCommandProvider.java
+++ b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/bundle/CDOCommandProvider.java
@@ -50,7 +50,9 @@ import java.io.OutputStream;
*/
public class CDOCommandProvider implements CommandProvider
{
- private static final String INDENT = " ";
+ private static final String NEW_LINE = "\r\n"; //$NON-NLS-1$
+
+ private static final String INDENT = " "; //$NON-NLS-1$
public CDOCommandProvider(BundleContext bundleContext)
{
@@ -60,17 +62,17 @@ public class CDOCommandProvider implements CommandProvider
public String getHelp()
{
StringBuffer buffer = new StringBuffer();
- buffer.append("---CDO commands---\n");
- buffer.append("\tcdo list - list all active repositories\n");
- buffer.append("\tcdo start - start repositories from a config file\n");
- buffer.append("\tcdo stop - stop a repository\n");
- buffer.append("\tcdo export - export the contents of a repository to an XML file\n");
- buffer.append("\tcdo import - import the contents of a repository from an XML file\n");
- buffer.append("\tcdo sessions - dump the sessions of a repository\n");
- buffer.append("\tcdo packages - dump the packages of a repository\n");
- buffer.append("\tcdo branches - dump the branches of a repository\n");
- buffer.append("\tcdo locks - dump the durable locking areas of a repository\n");
- buffer.append("\tcdo deletelocks - delete a durable locking area of a repository\n");
+ buffer.append("---CDO commands---" + NEW_LINE);
+ buffer.append(INDENT + "cdo list - list all active repositories" + NEW_LINE);
+ buffer.append(INDENT + "cdo start - start repositories from a config file" + NEW_LINE);
+ buffer.append(INDENT + "cdo stop - stop a repository" + NEW_LINE);
+ buffer.append(INDENT + "cdo export - export the contents of a repository to an XML file" + NEW_LINE);
+ buffer.append(INDENT + "cdo import - import the contents of a repository from an XML file" + NEW_LINE);
+ buffer.append(INDENT + "cdo sessions - dump the sessions of a repository" + NEW_LINE);
+ buffer.append(INDENT + "cdo packages - dump the packages of a repository" + NEW_LINE);
+ buffer.append(INDENT + "cdo branches - dump the branches of a repository" + NEW_LINE);
+ buffer.append(INDENT + "cdo locks - dump the durable locking areas of a repository" + NEW_LINE);
+ buffer.append(INDENT + "cdo deletelocks - delete a durable locking area of a repository" + NEW_LINE);
return buffer.toString();
}
diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/bundle/Net4jCommandProvider.java b/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/bundle/Net4jCommandProvider.java
index 7b1a4d19e3..7c7e0cd453 100644
--- a/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/bundle/Net4jCommandProvider.java
+++ b/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/bundle/Net4jCommandProvider.java
@@ -25,6 +25,10 @@ import org.osgi.framework.BundleContext;
*/
public class Net4jCommandProvider implements CommandProvider
{
+ private static final String NEW_LINE = "\r\n"; //$NON-NLS-1$
+
+ private static final String INDENT = " "; //$NON-NLS-1$
+
public Net4jCommandProvider(BundleContext bundleContext)
{
bundleContext.registerService(CommandProvider.class.getName(), this, null);
@@ -33,10 +37,10 @@ public class Net4jCommandProvider implements CommandProvider
public String getHelp()
{
StringBuffer buffer = new StringBuffer();
- buffer.append("---Net4j commands---\n");
- buffer.append("\telements - list all managed elements\n");
- buffer.append("\tacceptors - list all active acceptors, their connectors and channels\n");
- buffer.append("\tconnectors - list all active connectors and their channels\n");
+ buffer.append("---Net4j commands---" + NEW_LINE);
+ buffer.append(INDENT + "elements - list all managed elements" + NEW_LINE);
+ buffer.append(INDENT + "acceptors - list all active acceptors, their connectors and channels" + NEW_LINE);
+ buffer.append(INDENT + "connectors - list all active connectors and their channels" + NEW_LINE);
return buffer.toString();
}

Back to the top