Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit acf36bb

Browse files
author
zhourenjian
committed
Migrate Java2Script compiler to Eclipse 3.3 M7
1 parent 46b27a8 commit acf36bb

File tree

4 files changed

+383
-343
lines changed

4 files changed

+383
-343
lines changed

src/net/sf/j2s/ui/actions/UnitJavaScriptUtil.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
import org.eclipse.ui.PartInitException;
4747
import org.eclipse.ui.editors.text.EditorsUI;
4848
import org.eclipse.ui.internal.editors.text.EditorsPlugin;
49-
import org.eclipse.ui.internal.editors.text.JavaFileEditorInput;
5049
import org.eclipse.ui.part.FileEditorInput;
5150

5251
/**
@@ -166,7 +165,10 @@ private static IEditorInput createEditorInput(IFileStore fileStore) {
166165
IFile workspaceFile= getWorkspaceFile(fileStore);
167166
if (workspaceFile != null)
168167
return new FileEditorInput(workspaceFile);
169-
return new JavaFileEditorInput(fileStore);
168+
else {
169+
//return new FileEditorInput(new Path(fileStore.toURI().getPath()).)
170+
return null;
171+
}
170172
}
171173

172174
private static IFile getWorkspaceFile(IFileStore fileStore) {

0 commit comments

Comments
 (0)