SCViewer/com.minres.scviewer.ui/plugin.xml

211 lines
7.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="org.eclipse.ui.views">
<category
name="TxViewer"
id="com.minres.scviewer.ui">
</category>
</extension>
<extension
point="org.eclipse.help.contexts">
<contexts
file="contexts.xml">
</contexts>
</extension>
<extension
point="org.eclipse.ui.editors">
<editor
class="com.minres.scviewer.ui.TxEditorPart"
contributorClass="com.minres.scviewer.ui.TxEditorActionBarContributor"
extensions="txdb"
filenames="*.txdb,*.txlog,*.vcd"
icon="res/images/scviewer.png"
id="com.minres.scviewer.ui.TxEditorPart"
name="Wave Viewer">
</editor>
</extension>
<extension
point="org.eclipse.ui.views.properties.tabbed.propertyContributor">
<propertyContributor
contributorId="com.minres.scviewer.ui.TxEditorPart">
<propertyCategory
category="Transaction"></propertyCategory>
</propertyContributor>
</extension>
<extension
point="org.eclipse.ui.views.properties.tabbed.propertyTabs">
<propertyTabs
contributorId="com.minres.scviewer.ui.TxEditorPart">
<propertyTab
category="Transaction"
id="com.minres.scviewer.ui.propertyTabTransaction"
label="Transaction">
</propertyTab>
<propertyTab
afterTab="com.minres.scviewer.ui.propertyTabTransaction"
category="Transaction"
id="com.minres.scviewer.ui.propertyTabAttributes"
label="Attributes">
</propertyTab>
<propertyTab
afterTab="com.minres.scviewer.ui.propertyTabAttributes"
category="Transaction"
id="com.minres.scviewer.ui.propertyTabRelated"
label="Related Tx">
</propertyTab>
</propertyTabs>
</extension>
<extension
point="org.eclipse.ui.views.properties.tabbed.propertySections">
<propertySections
contributorId="com.minres.scviewer.ui.TxEditorPart">
<propertySection
class="org.eclipse.ui.views.properties.tabbed.AdvancedPropertySection"
id="com.minres.scviewer.ui.propertySectionAll"
tab="com.minres.scviewer.ui.propertyTabTransaction">
<input
type="com.minres.scviewer.database.ITx">
</input>
</propertySection>
<propertySection
afterSection="com.minres.scviewer.ui.propertySectionAll"
class="com.minres.scviewer.ui.views.sections.AttributeProperty"
id="com.minres.scviewer.ui.propertySectionAttributes"
tab="com.minres.scviewer.ui.propertyTabAttributes">
<input
type="com.minres.scviewer.database.ITx">
</input>
</propertySection>
<propertySection
afterSection="com.minres.scviewer.ui.propertySectionAttributes"
class="com.minres.scviewer.ui.views.sections.RelatedProperty"
id="com.minres.scviewer.ui.propertySectionRelated"
tab="com.minres.scviewer.ui.propertyTabRelated">
<input
type="com.minres.scviewer.database.ITx">
</input>
</propertySection>
</propertySections>
</extension>
<extension
point="org.eclipse.core.runtime.adapters">
<factory
adaptableType="com.minres.scviewer.database.ITx"
class="com.minres.scviewer.ui.adapter.TxAdapterFactory">
<adapter
type="org.eclipse.ui.views.properties.IPropertySource">
</adapter>
</factory>
</extension>
<extension
point="org.eclipse.ui.elementFactories">
<factory
class="com.minres.scviewer.ui.TxEditorInputFactory"
id="com.minres.scviewer.ui.TxEditorInputFactory">
</factory>
</extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution
allPopups="false"
locationURI="toolbar:org.eclipse.ui.main.toolbar">
<toolbar
id="com.minres.scviewer.ui.toolbar1">
<command
commandId="com.minres.scviewer.ui.gotoPrev"
disabledIcon="res/images/previous-green-d.png"
icon="res/images/previous-green.png"
label="Prev"
style="push"
tooltip="Go to previous event">
<visibleWhen
checkEnabled="false">
<reference
definitionId="com.minres.scviewer.ui.waveEditorActive">
</reference>
</visibleWhen>
</command>
<command
commandId="com.minres.scviewer.ui.gotoNext"
disabledIcon="res/images/next-green-d.png"
icon="res/images/next-green.png"
label="Next"
style="push"
tooltip="Go to next event">
<visibleWhen
checkEnabled="false">
<reference
definitionId="com.minres.scviewer.ui.waveEditorActive">
</reference>
</visibleWhen>
</command>
</toolbar>
</menuContribution>
</extension>
<extension
point="org.eclipse.ui.commands">
<command
description="Go to next event"
id="com.minres.scviewer.ui.gotoNext"
name="Next">
</command>
<command
description="Go to previous event"
id="com.minres.scviewer.ui.gotoPrev"
name="Prev">
</command>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
class="com.minres.scviewer.ui.handler.GotoNext"
commandId="com.minres.scviewer.ui.gotoNext">
<enabledWhen>
<reference
definitionId="com.minres.scviewer.ui.oneElementSeleted">
</reference>
</enabledWhen>
</handler>
<handler
class="com.minres.scviewer.ui.handler.GotoPrev"
commandId="com.minres.scviewer.ui.gotoPrev">
<enabledWhen>
<reference
definitionId="com.minres.scviewer.ui.oneElementSeleted">
</reference>
</enabledWhen>
</handler>
</extension>
<extension
point="org.eclipse.core.expressions.definitions">
<definition
id="com.minres.scviewer.ui.oneElementSeleted">
<with
variable="selection">
<and>
<count
value="1">
</count>
<iterate
operator="or">
<instanceof value="com.minres.scviewer.database.ITx"/>
</iterate>
</and>
</with>
</definition>
<definition
id="com.minres.scviewer.ui.waveEditorActive">
<with
variable="activeEditorId">
<equals
value="com.minres.scviewer.ui.TxEditorPart">
</equals>
</with>
</definition>
</extension>
</plugin>