File tree Expand file tree Collapse file tree 4 files changed +75
-223
lines changed Expand file tree Collapse file tree 4 files changed +75
-223
lines changed Original file line number Diff line number Diff line change 137
137
</extension >
138
138
<extension
139
139
point =" org.eclipse.ui.popupMenus" >
140
+ <!--
140
141
<objectContribution
141
142
id="net.sf.j2s.ui.actions.openjs"
142
143
objectClass="org.eclipse.jdt.core.ICompilationUnit">
147
148
label="Edit Con&verted *.js"
148
149
menubarPath="additions"/>
149
150
</objectContribution>
151
+ -->
150
152
<objectContribution
151
153
adaptable =" false"
152
154
id =" net.sf.j2s.ui.actions.genPropsJS"
159
161
menubarPath =" additions" />
160
162
</objectContribution >
161
163
</extension >
164
+ <!--
162
165
<extension
163
166
point="org.eclipse.ui.popupMenus">
164
167
<viewerContribution
172
175
</action>
173
176
</viewerContribution>
174
177
</extension>
178
+ -->
175
179
<!--
176
180
<extension
177
181
point="org.eclipse.ui.exportWizards">
183
187
<description>Export Java2Script applications as standalone application</description>
184
188
</wizard>
185
189
</extension>
186
- -->
187
190
<extension
188
191
point="org.eclipse.jdt.ui.javadocCompletionProcessor">
189
192
<javadocCompletionProcessor
190
193
class="net.sf.j2s.ui.text.javadoc.JavaDocCompletionEvaluator"
191
194
id="net.sf.j2s.javadocCompletionProcessor"/>
192
195
</extension>
196
+ -->
193
197
194
198
</plugin >
Original file line number Diff line number Diff line change @@ -71,7 +71,9 @@ public static boolean openEditor(ICompilationUnit unit) {
71
71
if (files != null && files .length != 0 ) {
72
72
editorInput = new FileEditorInput (files [0 ]);
73
73
} else {
74
- editorInput = new JavaFileEditorInput (file );
74
+ //editorInput = new JavaFileEditorInput(file);
75
+ // FIXME open editor for *.js
76
+ return false ;
75
77
}
76
78
try {
77
79
Java2ScriptUIPlugin .getDefault ().getWorkbench ()
You can’t perform that action at this time.
0 commit comments