Skip to main content



      Home
Home » Archived » BIRT » plug in question
plug in question [message #250436] Mon, 30 July 2007 15:52 Go to next message
Eclipse UserFriend
Apologies if this is more an eclipse plug-in question than that of a BIRT
one. I would appreciate any assistance on this in any case, even if it
is to tell me to go somewhere else :) The question:

I have added an actionset (menu and toolbar action)to a plugin for the RCP.
I want it (menu/toolbar) to go away when there is no active .rptdesign document
in the editor. I have the following but the action set remains disabled
regaradless of the file in the editor. I see that the BIRT designer (org.eclipse.birt.report.designer.ui.preview.web)
uses a actionSetPartAssociation to show/hide the preview actions. Given
that I have no reference to the editors in my plugin I don't think this tactic
will work in this case. Thoughts?

<extension
point="org.eclipse.ui.actionSets">
<actionSet
id="com.reports.actionSet"
label="Actions Action Set"
visible="false">
<menu
id="actionsMenu"
label="Actions">
<separator
name="actionsGroup">
</separator>
</menu>
<action
class="com.reports.actions.PublishAction"
icon="icons/sample.gif"
id="com.reports.actions.PublishAction"
label="Publish Report"
menubarPath="actionsMenu/actionsGroup"
toolbarPath="actionsGroup"
tooltip="Publish Report">
<enablement>
<and>
<objectClass name="org.eclipse.core.resources.IFile"/>
<objectState name="extension" value="rptdesign"/>
</and>
</enablement>
</action>
</actionSet>
</extension>
Re: plug in question [message #250441 is a reply to message #250436] Mon, 30 July 2007 16:06 Go to previous message
Eclipse UserFriend
The behavior seems only to exist when I preview the plug-in with "launch
an eclipse app...". The actionSetPartAssociations seems to work fine once
deployed(jar) to the RCP. That said, no need for an immediate solution here
but I am still curious as to why it does not work in the preview mode. Also,
even when deployed the <enablement> node does not function as expected.
That is, when displayed it remains disabled given configuration below. Still
looking.....

Thanks.


> Apologies if this is more an eclipse plug-in question than that of a
> BIRT one. I would appreciate any assistance on this in any case,
> even if it is to tell me to go somewhere else :) The question:
>
> I have added an actionset (menu and toolbar action)to a plugin for the
> RCP.
> I want it (menu/toolbar) to go away when there is no active
> .rptdesign document
> in the editor. I have the following but the action set remains
> disabled
> regaradless of the file in the editor. I see that the BIRT designer
> (org.eclipse.birt.report.designer.ui.preview.web) uses a
> actionSetPartAssociation to show/hide the preview actions. Given that
> I have no reference to the editors in my plugin I don't think this
> tactic will work in this case. Thoughts?
>
> <extension
> point="org.eclipse.ui.actionSets">
> <actionSet
> id="com.reports.actionSet"
> label="Actions Action Set"
> visible="false">
> <menu
> id="actionsMenu"
> label="Actions">
> <separator
> name="actionsGroup">
> </separator>
> </menu>
> <action
> class="com.reports.actions.PublishAction"
> icon="icons/sample.gif"
> id="com.reports.actions.PublishAction"
> label="Publish Report"
> menubarPath="actionsMenu/actionsGroup"
> toolbarPath="actionsGroup"
> tooltip="Publish Report">
> <enablement>
> <and>
> <objectClass name="org.eclipse.core.resources.IFile"/>
> <objectState name="extension" value="rptdesign"/>
> </and>
> </enablement>
> </action>
> </actionSet>
> </extension>
Previous Topic:LoadReportDocumentError
Next Topic:Algum Brazuca na lista !???
Goto Forum:
  


Current Time: Wed Apr 23 23:08:42 EDT 2025

Powered by FUDForum. Page generated in 0.03709 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top