Skip to content

Commit b8a5643

Browse files
committed
Remove support of fast view completely
1 parent 41f7ce4 commit b8a5643

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

sources/net.sf.j2s.ui/src/net/sf/j2s/ui/launching/J2SApplicationRunnable.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
import org.eclipse.jface.preference.IPreferenceStore;
1313
import org.eclipse.swt.program.Program;
1414
import org.eclipse.ui.IViewPart;
15-
import org.eclipse.ui.IViewReference;
15+
//import org.eclipse.ui.IViewReference;
1616
import org.eclipse.ui.IWorkbenchPage;
1717
import org.eclipse.ui.PartInitException;
1818
import org.eclipse.ui.actions.ActionFactory;
1919
import org.eclipse.ui.actions.ActionFactory.IWorkbenchAction;
20-
import org.eclipse.ui.internal.WorkbenchPage;
20+
//import org.eclipse.ui.internal.WorkbenchPage;
2121

2222
public class J2SApplicationRunnable implements Runnable {
2323
ILaunchConfiguration configuration;
@@ -30,7 +30,7 @@ public J2SApplicationRunnable(ILaunchConfiguration configuration, String url) {
3030

3131
public void run() {
3232
boolean isToViewInConsole = true;
33-
boolean isViewFast = false;
33+
// boolean isViewFast = false;
3434
boolean isViewMaximize = false;
3535
try {
3636
IPreferenceStore store = Java2ScriptUIPlugin.getDefault().getPreferenceStore();
@@ -41,8 +41,8 @@ public void run() {
4141
IJ2SLauchingConfiguration.VIEW_IN_INNER_J2S_CONSOLE, preferred);
4242
isViewMaximize = configuration.getAttribute(
4343
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);
4646
} catch (CoreException e1) {
4747
e1.printStackTrace();
4848
}
@@ -80,9 +80,9 @@ public void run() {
8080
J2SConsoleView j2sConsole = (J2SConsoleView) console;
8181
IWorkbenchPage page = j2sConsole.getViewSite().getWorkbenchWindow()
8282
.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");
8686
// if (isViewFast && !wp.isFastView(ref)) {
8787
// wp.addFastView(ref);
8888
// }

0 commit comments

Comments
 (0)