- Timestamp:
- 05/14/14 14:22:53 (10 years ago)
- Location:
- v2/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
v2/trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/build.properties
r61 r67 5 5 .,\ 6 6 plugin.xml 7 src.includes = .settings/ -
v2/trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/plugin.xml
r61 r67 248 248 </extension> 249 249 250 <!----> 250 251 <extension 251 252 point="org.eclipse.xtext.builder.participant"> … … 254 255 </participant> 255 256 </extension> 257 258 259 <!--this is for using a button for generation 260 <extension 261 point="org.eclipse.ui.handlers"> 262 <handler 263 class="de.ugoe.cs.swe.bnftools.ui.EbnfExecutableExtensionFactory:de.ugoe.cs.swe.bnftools.ui.helper.GenerationHandler" 264 commandId="de.ugoe.cs.swe.bnftools.ui.handler.GenerationCommand"> 265 </handler> 266 267 </extension> 268 269 <extension 270 point="org.eclipse.ui.commands"> 271 <command name="Generate Code" 272 id="de.ugoe.cs.swe.bnftools.ui.handler.GenerationCommand"> 273 </command> 274 </extension> 275 276 <extension point="org.eclipse.ui.menus"> 277 <menuContribution locationURI="popup:org.eclipse.jdt.ui.PackageExplorer"> 278 <command 279 commandId="de.ugoe.cs.swe.bnftools.ui.handler.GenerationCommand" 280 style="push"> 281 <visibleWhen 282 checkEnabled="false"> 283 <iterate> 284 <adapt type="org.eclipse.core.resources.IResource"> 285 <test property="org.eclipse.core.resources.name" 286 value="*.bnf"/> 287 </adapt> 288 </iterate> 289 </visibleWhen> 290 </command> 291 </menuContribution> 292 </extension> 293 --> 294 295 256 296 <extension 257 297 point="org.eclipse.ui.preferencePages"> -
v2/trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools/ui/labeling/EbnfLabelProvider.xtend
r61 r67 5 5 6 6 import com.google.inject.Inject 7 import de.ugoe.cs.swe.bnftools.ebnf.ImportSection 8 import de.ugoe.cs.swe.bnftools.ebnf.Rule 9 import de.ugoe.cs.swe.bnftools.ebnf.BnfEntry 7 10 8 11 /** … … 18 21 } 19 22 20 // Labels and icons can be computed like this: 23 def text(ImportSection sec){ 24 'Imports' 25 } 21 26 22 // def text(Greeting ele) { 23 // 'A greeting to ' + ele.name 24 // } 25 // 26 // def image(Greeting ele) { 27 // 'Greeting.gif' 28 // } 27 def text(BnfEntry entry){ 28 'Rule' 29 } 29 30 } -
v2/trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools/ui/outline/EbnfOutlineTreeProvider.xtend
r66 r67 3 3 */ 4 4 package de.ugoe.cs.swe.bnftools.ui.outline 5 6 import org.eclipse.xtext.ui.editor.outline.impl.DocumentRootNode 7 import de.ugoe.cs.swe.bnftools.ebnf.EtsiBnf 8 import de.ugoe.cs.swe.bnftools.ebnf.Import 9 import org.eclipse.xtext.ui.editor.outline.IOutlineNode 10 import org.eclipse.xtext.AbstractElement 11 import de.ugoe.cs.swe.bnftools.ebnf.BnfEntry 12 import de.ugoe.cs.swe.bnftools.ebnf.ImportSection 13 import de.ugoe.cs.swe.bnftools.ebnf.Rule 5 14 6 15 /** … … 10 19 */ 11 20 class EbnfOutlineTreeProvider extends org.eclipse.xtext.ui.editor.outline.impl.DefaultOutlineTreeProvider { 12 21 def void _createChildren(DocumentRootNode parentNode, EtsiBnf bnf) { 22 createNode(parentNode,bnf); 23 } 24 25 def boolean _isLeaf(Rule rule) { 26 return true; 27 } 28 13 29 } -
v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src-gen/de/ugoe/cs/swe/bnftools/serializer/EbnfSyntacticSequencer.java
r66 r67 76 76 * Syntax: 77 77 * ( 78 '+' | 78 '(' | 79 '}' | 79 80 '[' | 81 '*' | 82 '|' | 83 '{' | 80 84 ')' | 81 '{' |82 85 ']' | 83 '|' | 84 '*' | 85 '(' | 86 '}' 86 '+' 87 87 )* 88 88 */
Note: See TracChangeset
for help on using the changeset viewer.