Share

JavaCC Eclipse Plugin

Tracker: Bugs

5 xxx.jj.jtb - ID: 1702792
Last Update: Comment added ( koutch )

When one uses a "standard" jtb file, named xxx.jj.jtb, he gets in the
package explorer JavaCC menu two compile entries, Compile with JavaCC and
Compile with JTB : he should have only the second one.
In the plugin.xml, just change the nameFilter from "*.jj* (which allows
*.jj.jtb) to "*.jj,*.jjt"

<extension point="org.eclipse.ui.popupMenus">
<objectContribution
objectClass="org.eclipse.core.resources.IFile"
adaptable="false"
nameFilter="*.jj,*.jjt"
id="javacccompile">
<action
label="%Compile_with_JavaCC"
menubarPath="JJGroup"
icon="icons/jj_file.gif"
class="sf.eclipse.javacc.actions.JJCompile"
enablesFor="1"
id="javacc.compile">
</action>
</objectContribution>


Marc MAZAS ( mmazas ) - 2007-04-18 09:50

5

Closed

None

Nobody/Anonymous

None

None

Public


Comments ( 2 )




Date: 2007-06-10 13:51
Sender: koutchProject Admin


Solved in 1.5.9 see bug 1702893


Date: 2007-04-18 12:48
Sender: mmazasProject Admin


In fact, it must be splitted in two different filterNames, otherwise the
menu will not appear

<objectContribution
objectClass="org.eclipse.core.resources.IFile"
adaptable="false"
nameFilter="*.jj"
id="javacccompile">
<action
label="%Compile_with_JavaCC"
menubarPath="JJGroup"
icon="icons/jj_file.gif"
class="sf.eclipse.javacc.actions.JJCompile"
enablesFor="1"
id="javacc.compile">
</action>
</objectContribution>
<objectContribution
objectClass="org.eclipse.core.resources.IFile"
adaptable="false"
nameFilter="*.jjt"
id="javacccompile">
<action
label="%Compile_with_JavaCC"
menubarPath="JJGroup"
icon="icons/jj_file.gif"
class="sf.eclipse.javacc.actions.JJCompile"
enablesFor="1"
id="javacc.compile">
</action>
</objectContribution>



Log in to comment.

Attached File

No Files Currently Attached

Changes ( 2 )

Field Old Value Date By
status_id Open 2007-06-10 13:51 koutch
close_date - 2007-06-10 13:51 koutch