Changeset 67 in default


Ignore:
Timestamp:
05/14/14 14:22:53 (10 years ago)
Author:
hkaulbersch
Message:

Minimized Outline:
-<unnamed> Removed
-Rule is the lowest shown entity

Location:
v2/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • v2/trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/build.properties

    r61 r67  
    55               .,\ 
    66               plugin.xml 
     7src.includes = .settings/ 
  • v2/trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/plugin.xml

    r61 r67  
    248248        </extension> 
    249249 
     250<!----> 
    250251   <extension 
    251252         point="org.eclipse.xtext.builder.participant"> 
     
    254255      </participant> 
    255256   </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    
    256296   <extension 
    257297            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  
    55 
    66import com.google.inject.Inject 
     7import de.ugoe.cs.swe.bnftools.ebnf.ImportSection 
     8import de.ugoe.cs.swe.bnftools.ebnf.Rule 
     9import de.ugoe.cs.swe.bnftools.ebnf.BnfEntry 
    710 
    811/** 
     
    1821        } 
    1922 
    20         // Labels and icons can be computed like this: 
     23        def text(ImportSection sec){ 
     24                'Imports' 
     25        } 
    2126         
    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        } 
    2930} 
  • v2/trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools/ui/outline/EbnfOutlineTreeProvider.xtend

    r66 r67  
    33*/ 
    44package de.ugoe.cs.swe.bnftools.ui.outline 
     5 
     6import org.eclipse.xtext.ui.editor.outline.impl.DocumentRootNode 
     7import de.ugoe.cs.swe.bnftools.ebnf.EtsiBnf 
     8import de.ugoe.cs.swe.bnftools.ebnf.Import 
     9import org.eclipse.xtext.ui.editor.outline.IOutlineNode 
     10import org.eclipse.xtext.AbstractElement 
     11import de.ugoe.cs.swe.bnftools.ebnf.BnfEntry 
     12import de.ugoe.cs.swe.bnftools.ebnf.ImportSection 
     13import de.ugoe.cs.swe.bnftools.ebnf.Rule 
    514 
    615/** 
     
    1019 */ 
    1120class 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 
    1329} 
  • v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src-gen/de/ugoe/cs/swe/bnftools/serializer/EbnfSyntacticSequencer.java

    r66 r67  
    7676         * Syntax: 
    7777         *     ( 
    78              '+' |  
     78             '(' |  
     79             '}' |  
    7980             '[' |  
     81             '*' |  
     82             '|' |  
     83             '{' |  
    8084             ')' |  
    81              '{' |  
    8285             ']' |  
    83              '|' |  
    84              '*' |  
    85              '(' |  
    86              '}' 
     86             '+' 
    8787         )* 
    8888         */ 
Note: See TracChangeset for help on using the changeset viewer.