12
12
import org .eclipse .jface .preference .IPreferenceStore ;
13
13
import org .eclipse .swt .program .Program ;
14
14
import org .eclipse .ui .IViewPart ;
15
- import org .eclipse .ui .IViewReference ;
15
+ // import org.eclipse.ui.IViewReference;
16
16
import org .eclipse .ui .IWorkbenchPage ;
17
17
import org .eclipse .ui .PartInitException ;
18
18
import org .eclipse .ui .actions .ActionFactory ;
19
19
import org .eclipse .ui .actions .ActionFactory .IWorkbenchAction ;
20
- import org .eclipse .ui .internal .WorkbenchPage ;
20
+ // import org.eclipse.ui.internal.WorkbenchPage;
21
21
22
22
public class J2SApplicationRunnable implements Runnable {
23
23
ILaunchConfiguration configuration ;
@@ -30,7 +30,7 @@ public J2SApplicationRunnable(ILaunchConfiguration configuration, String url) {
30
30
31
31
public void run () {
32
32
boolean isToViewInConsole = true ;
33
- boolean isViewFast = false ;
33
+ // boolean isViewFast = false;
34
34
boolean isViewMaximize = false ;
35
35
try {
36
36
IPreferenceStore store = Java2ScriptUIPlugin .getDefault ().getPreferenceStore ();
@@ -41,8 +41,8 @@ public void run() {
41
41
IJ2SLauchingConfiguration .VIEW_IN_INNER_J2S_CONSOLE , preferred );
42
42
isViewMaximize = configuration .getAttribute (
43
43
IJ2SLauchingConfiguration .MAXIMIZE_J2S_CONSOLE , false );
44
- isViewFast = configuration .getAttribute (
45
- IJ2SLauchingConfiguration .FAST_VIEW_J2S_CONSOLE , false );
44
+ // isViewFast = configuration.getAttribute(
45
+ // IJ2SLauchingConfiguration.FAST_VIEW_J2S_CONSOLE, false);
46
46
} catch (CoreException e1 ) {
47
47
e1 .printStackTrace ();
48
48
}
@@ -80,9 +80,9 @@ public void run() {
80
80
J2SConsoleView j2sConsole = (J2SConsoleView ) console ;
81
81
IWorkbenchPage page = j2sConsole .getViewSite ().getWorkbenchWindow ()
82
82
.getActivePage ();
83
- WorkbenchPage wp = (WorkbenchPage ) page ;
84
- IViewReference ref = wp
85
- .findViewReference ("net.sf.j2s.ui.console.J2SConsoleView" );
83
+ // WorkbenchPage wp = (WorkbenchPage) page;
84
+ // IViewReference ref = wp
85
+ // .findViewReference("net.sf.j2s.ui.console.J2SConsoleView");
86
86
// if (isViewFast && !wp.isFastView(ref)) {
87
87
// wp.addFastView(ref);
88
88
// }
0 commit comments