Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

file drag and drop Rconsole, changed r workspace

Changed to have R workspace same as bioclipse-workspace and removed starting / or \ in file path when dropping files in R-console. 
=> It is now possible to use files in the Bioclipse workspace in the R-console by dragging and dropping them on the R-console.
  • Loading branch information...
commit 7db112c856b6b8fad9f004e7d84d073accce7776 1 parent 16f0283
Jonathan Alvarsson authored August 09, 2011
2  plugins/net.bioclipse.r.business/src/net/bioclipse/r/business/RBusinessManager.java
@@ -345,7 +345,7 @@ String getResult() {
345 345
 	}
346 346
 
347 347
 	private void initSession() {
348  
-    	File file = new File(workspacePath.toString()+fileseparator+"r");
  348
+    	File file = new File(workspacePath.toString());
349 349
 		if (!file.exists())
350 350
 			file.mkdir();
351 351
 		// Java crashes when setting working directory with "\" in windows
10  plugins/net.bioclipse.r.ui/src/net/bioclipse/r/ui/views/RConsoleView.java
@@ -61,4 +61,14 @@ protected void waitUntilCommandFinished() {
61 61
     void echoCommand(final String command) {
62 62
         printMessage(NEWLINE + "> " + command + NEWLINE);
63 63
     }
  64
+    
  65
+    @Override
  66
+    protected String interceptDroppedString( String s ) {
  67
+
  68
+        String result = super.interceptDroppedString( s );
  69
+        if ( s.charAt( 0 ) == '\\' || s.charAt( 0 ) == '/' ) {
  70
+            return result.substring( 1 );
  71
+        }
  72
+        return result;
  73
+    }
64 74
 }

0 notes on commit 7db112c

Please sign in to comment.
Something went wrong with that request. Please try again.