Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix a typo in execEditorInput method name
  • Loading branch information
Valentin Georgiev committed Mar 21, 2012
1 parent 0ac8e56 commit 3be35bf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
Expand Up @@ -25,7 +25,7 @@ public Object execute(ExecutionEvent event) throws ExecutionException {
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView("net.bioclipse.r.ui.views.RConsoleView");
RConsoleView rView = (RConsoleView) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().findView("net.bioclipse.r.ui.views.RConsoleView");
String contents = RunUtil.getContent(event);
rView.execEditorInpit(contents);
rView.execEditorInput(contents);
} catch (PartInitException e) {
e.printStackTrace();
}
Expand Down
Expand Up @@ -26,8 +26,7 @@ public Object execute(ExecutionEvent event) throws ExecutionException {
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView("net.bioclipse.r.ui.views.RConsoleView");
RConsoleView rView = (RConsoleView) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().findView("net.bioclipse.r.ui.views.RConsoleView");
String filepath = RunUtil.getFilePath();
rView.execEditorInpit("source(\"" + filepath + "\")");
rView.printMessage(NEWLINE + RunUtil.getContent(event));
rView.execEditorInput("source(\"" + filepath + "\")");
} catch (PartInitException e) {
e.printStackTrace();
}
Expand Down
Expand Up @@ -24,7 +24,7 @@ public Object execute(ExecutionEvent event) throws ExecutionException {
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView("net.bioclipse.r.ui.views.RConsoleView");
RConsoleView rView = (RConsoleView) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().findView("net.bioclipse.r.ui.views.RConsoleView");
String code = RunUtil.getSelectedCode(event);
rView.execEditorInpit(code);
rView.execEditorInput(code);
} catch (CoreException e) {
e.printStackTrace();
}
Expand Down
Expand Up @@ -44,7 +44,7 @@ public void run() {

}

public String execEditorInpit(String command) {
public String execEditorInput(String command) {
return executeCommand(command);
}
/*
Expand Down

0 comments on commit 3be35bf

Please sign in to comment.