geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r604402 - /geronimo/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/DefaultShell.java
Date Sat, 15 Dec 2007 08:24:35 GMT
Author: jdillon
Date: Sat Dec 15 00:24:34 2007
New Revision: 604402

URL: http://svn.apache.org/viewvc?rev=604402&view=rev
Log:
Update formatting

Modified:
    geronimo/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/DefaultShell.java

Modified: geronimo/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/DefaultShell.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/DefaultShell.java?rev=604402&r1=604401&r2=604402&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/DefaultShell.java
(original)
+++ geronimo/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/DefaultShell.java
Sat Dec 15 00:24:34 2007
@@ -208,38 +208,36 @@
         }
     }
 
-	public Prompter getPrompter() {
-		if( prompter == null ) {
-			prompter = createPrompter();
-		}
-		return prompter;
-	}
-	
-	public void setPrompter(Prompter prompter) {
-		this.prompter = prompter;
-	}
+    public Prompter getPrompter() {
+        if (prompter == null) {
+            prompter = createPrompter();
+        }
+        return prompter;
+    }
+    
+    public void setPrompter(final Prompter prompter) {
+        this.prompter = prompter;
+    }
 
-	/**
-	 * Allow subclasses to override the default Prompter implementation 
-	 * used.
-	 * @return
-	 */
-	protected Prompter createPrompter() {
-		return new Prompter() {
-		    Renderer renderer = new Renderer();
-		    public String prompt() {
-		        String userName = shellInfo.getUserName();
-		        String hostName = shellInfo.getLocalHost().getHostName();
+    /**
+     * Allow subclasses to override the default Prompter implementation used.
+     */
+    protected Prompter createPrompter() {
+        return new Prompter() {
+            Renderer renderer = new Renderer();
+            public String prompt() {
+                String userName = shellInfo.getUserName();
+                String hostName = shellInfo.getLocalHost().getHostName();
 
-		        //
-		        // HACK: There is no path... yet ;-)
-		        //
-		        String path = "/";
+                //
+                // HACK: There is no path... yet ;-)
+                //
+                String path = "/";
 
-		        return renderer.render("@|bold " + userName + "|@" + hostName + ":@|bold " + path
+ "|> ");
-		    }
-		};
-	}
+                return renderer.render("@|bold " + userName + "|@" + hostName + ":@|bold
" + path + "|> ");
+            }
+        };
+    }
 
     //
     // Error Display



Mime
View raw message