Announcement

Collapse
No announcement yet.

View reagiert nicht

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • View reagiert nicht

    Hi

    bin langsam wirklich am verzweifeln, deswegen komme ich zu euch. Ich will eigentlich nur eine View machen und das funktioniert nicht und ich bin WIRKLICH überfragt worans liegen könnte. Er schmeißt wenn ich auf das MenuItem klick den Fehler: "The chosen operation is not enabled".

    Der Inhalt meiner plugin.xml (lasst euch nicht davon verwirren, dass noch ein weiterer Command im Menu ist):
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <?eclipse version="3.4"?>
    <plugin>
    
       <extension
             point="org.eclipse.ui.commands">
          <category
                name="OXB"
                id="extractionBroker.commands.category">
          </category>
          <command
                name="OXBWizard"
                categoryId="extractionBroker.commands.category"
                id="extractionBroker.commands.sampleCommand">
          </command>
          <command
                categoryId="extractionBroker.commands.category"
                id="extractionBroker.command.webExtractionViewCommand"
                name="webExtractionViewCommand">
          </command>
       </extension>
       <extension
             point="org.eclipse.ui.handlers">
          <handler
                class="extractionbroker.handlers.OXBHandler"
                commandId="extractionBroker.commands.sampleCommand">
          </handler>
          <handler
                class="de.unituebingen.pinweb.ExtractionBroker.viewHandler.WebExtractionViewHandler"
                commandId="extractionBroker.command.webExtractionViewCommand">
          </handler>
       </extension>
       <extension
             point="org.eclipse.ui.bindings">
          <key
                commandId="extractionBroker.commands.sampleCommand"
                contextId="org.eclipse.ui.contexts.window"
                sequence="M1+6"
                schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
          </key>
          <key
                commandId="extractionBroker.command.webExtractionViewCommand"
                contextId="org.eclipse.ui.contexts.window"
                schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
                sequence="M1+6">
          </key>
       </extension>
       <extension
             point="org.eclipse.ui.menus">
          <menuContribution
                locationURI="menu:org.eclipse.ui.main.menu?after=additions">
             <menu
                   label="OXB"
                   mnemonic="M"
                   id="extractionBroker.menus.sampleMenu">
                <command
                      commandId="extractionBroker.commands.sampleCommand"
                      mnemonic="S"
                      id="extractionBroker.menus.sampleCommand">
                </command>
                <command
                      commandId="extractionBroker.command.webExtractionViewCommand"
                      id="extractionBroker.menus.webExtractionCommand"
                      mnemonic="W"
                      style="push">
                </command>
             </menu>
          </menuContribution>
          <menuContribution
                locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
             <toolbar
                   id="extractionBroker.toolbars.sampleToolbar">
                <command
                      commandId="extractionBroker.commands.sampleCommand"
                      icon="icons/OXBIcon.jpg"
                      tooltip="OXBWizard"
                      id="extractionBroker.toolbars.sampleCommand">
                </command>
             </toolbar>
          </menuContribution>
       </extension>
       <extension
             point="org.eclipse.ui.views">
          <category
                id="extractionBroker.Views"
                name="ExtractionBrokerViews">
          </category>
          <view
                category="extractionBroker.Views"
                class="de.unituebingen.pinweb.ExtractionBroker.views.WebExtractionView"
                id="extractionBroker.views.WebExtractionView"
                name="WebExtractionView">
          </view>
       </extension>
       <extension
             point="org.eclipse.ui.viewActions">
          <viewContribution
                id="ExtractionBroker.WebExtractionContribution"
                targetID="extractionBroker.views.WebExtractionView">
          </viewContribution>
       </extension>
    
    </plugin>
    Sieht jemand den Fehler??? Ich hoffe ihr könnt mir weiterhelfen, ich versteh nicht was falsch ist..
Working...
X