Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » The chosen operation is not currently avialable.
The chosen operation is not currently avialable. [message #464194] Tue, 27 February 2007 04:11 Go to next message
Eclipse User
Originally posted by: m.hybler.aegis.cz

I have declaratively set a ActionSet with one action.
This is a part of plugin.xml where ActionSet has been declared.

<extension
point="org.eclipse.ui.actionSets">
<actionSet
description="Pro trideni stromu"
id="cz.aegis.cms.viewer.trideni"
label="Trideni"
visible="true">
<menu
id="cz.aegis.cms.viewer.trideniMenu"
label="Třídění"
path="additions">
<separator name="slot1"/>
</menu>
<action
class="cz.aegis.cms.sorting.Search"
id="cz.aegis.cms.sorting.Search"
label="Třídit dle vlastností"
menubarPath="cz.aegis.cms.viewer.trideniMenu/slot1"
style="push"
tooltip="Slouzi k trideni stromu pro lepsi prehlednost"/>
</actionSet>
</extension>

But when I try to click on this menu item the following message followed.
"The chosen operation is not currently avialable."

In my log is this text.
!SESSION 2007-02-27 10:00:13.812
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=cs_CZ
Framework arguments: -application cz.aegis.cms.run.application
Command-line arguments: -application cz.aegis.cms.run.application -data
C:\aegis\eclipse\work/../runtime-cmsviewer -dev
file:C:/aegis/eclipse/work/.metadata/.plugins/org.eclipse.pd e.core/CMS
viewer/dev.properties -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.ui 4 4 2007-02-27 10:00:15.906
!MESSAGE Part already exists in page layout: org.eclipse.ui.editorss.

!ENTRY org.eclipse.ui 4 4 2007-02-27 10:00:17.187
!MESSAGE Could not create action delegate for id:
cz.aegis.cms.sorting.Search

!ENTRY org.eclipse.equinox.registry 4 1 2007-02-27 10:00:17.187
!MESSAGE Plug-in "cz.aegis.cms.viewer" was unable to instantiate class
"cz.aegis.cms.sorting.Search".
!STACK 0
java.lang.InstantiationException: cz.aegis.cms.sorting.Search
at java.lang.Class.newInstance0(Class.java:340)
at java.lang.Class.newInstance(Class.java:308)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:157)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
at
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:234)
at
org.eclipse.ui.internal.PluginAction.createDelegate(PluginAc tion.java:120)
at
org.eclipse.ui.internal.PluginAction.selectionChanged(Plugin Action.java:278)
at
org.eclipse.ui.internal.WWinPluginAction.refreshSelection(WW inPluginAction.java:275)
at
org.eclipse.ui.internal.WWinPluginAction.<init>(WWinPluginAction.java:121)
at
org.eclipse.ui.internal.ActionDescriptor.createAction(Action Descriptor.java:259)
at
org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:170)
at
org.eclipse.ui.internal.PluginActionSetBuilder.createActionD escriptor(PluginActionSetBuilder.java:132)
at
org.eclipse.ui.internal.PluginActionBuilder.readElement(Plug inActionBuilder.java:158)
at
org.eclipse.ui.internal.registry.RegistryReader.readElements (RegistryReader.java:138)
at
org.eclipse.ui.internal.registry.RegistryReader.readElementC hildren(RegistryReader.java:127)
at
org.eclipse.ui.internal.PluginActionBuilder.readElement(Plug inActionBuilder.java:141)
at
org.eclipse.ui.internal.registry.RegistryReader.readElements (RegistryReader.java:138)
at
org.eclipse.ui.internal.PluginActionSetBuilder.readActionExt ensions(PluginActionSetBuilder.java:259)
at
org.eclipse.ui.internal.PluginActionSetBuilder.processAction Sets(PluginActionSetBuilder.java:221)
at
org.eclipse.ui.internal.ActionPresentation.setActionSets(Act ionPresentation.java:187)
at
org.eclipse.ui.internal.WorkbenchWindow.updateActionSets(Wor kbenchWindow.java:2826)
at org.eclipse.ui.internal.WorkbenchWindow$6.run(WorkbenchWindo w.java:2636)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at
org.eclipse.ui.internal.WorkbenchWindow.setActivePage(Workbe nchWindow.java:2597)
at
org.eclipse.ui.internal.WorkbenchWindow.busyOpenPage(Workben chWindow.java:658)
at
org.eclipse.ui.internal.Workbench.busyOpenWorkbenchWindow(Wo rkbench.java:795)
at
org.eclipse.ui.internal.Workbench.doOpenFirstTimeWindow(Work bench.java:1437)
at
org.eclipse.ui.internal.Workbench.openFirstTimeWindow(Workbe nch.java:1388)
at
org.eclipse.ui.internal.WorkbenchConfigurer.openFirstTimeWin dow(WorkbenchConfigurer.java:190)
at
org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:708)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:1085)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1847)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at cz.aegis.cms.run.Application.run(Application.java:18)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)

!ENTRY org.eclipse.ui 4 4 2007-02-27 10:00:20.453
!MESSAGE Context menu missing standard group
'org.eclipse.ui.IWorkbenchActionConstants.MB_ADDITIONS'. (menu ids =
[cz.aegis.cms.viewer.CMSview]) part id = cz.aegis.cms.viewer.CMSview)

!ENTRY org.eclipse.ui 4 4 2007-02-27 10:00:34.015
!MESSAGE Context menu missing standard group
'org.eclipse.ui.IWorkbenchActionConstants.MB_ADDITIONS'. (menu ids =
[cz.aegis.cms.viewer.CMSview]) part id = cz.aegis.cms.viewer.CMSview)


Someone can help me?
Thanking Michal
Re: The chosen operation is not currently avialable. [message #464228 is a reply to message #464194] Wed, 28 February 2007 01:36 Go to previous message
Karsten Panier is currently offline Karsten Panier
Messages: 57
Registered: July 2009
Member
Michal Hybler schrieb:
> I have declaratively set a ActionSet with one action.
> This is a part of plugin.xml where ActionSet has been declared.
>
> <extension
> point="org.eclipse.ui.actionSets">
> <actionSet
> description="Pro trideni stromu"
> id="cz.aegis.cms.viewer.trideni"
> label="Trideni"
> visible="true">
> <menu
> id="cz.aegis.cms.viewer.trideniMenu"
> label="Třídění"
> path="additions">
> <separator name="slot1"/>
> </menu>
> <action
> class="cz.aegis.cms.sorting.Search"
> id="cz.aegis.cms.sorting.Search"
> label="Třídit dle vlastností"
> menubarPath="cz.aegis.cms.viewer.trideniMenu/slot1"
> style="push"
> tooltip="Slouzi k trideni stromu pro lepsi prehlednost"/>
> </actionSet>
> </extension>
>
> But when I try to click on this menu item the following message followed.
> "The chosen operation is not currently avialable."
>
> In my log is this text.
> !SESSION 2007-02-27 10:00:13.812
> -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.6.0
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=cs_CZ
> Framework arguments: -application cz.aegis.cms.run.application
> Command-line arguments: -application cz.aegis.cms.run.application -data
> C:\aegis\eclipse\work/../runtime-cmsviewer -dev
> file:C:/aegis/eclipse/work/.metadata/.plugins/org.eclipse.pd e.core/CMS
> viewer/dev.properties -os win32 -ws win32 -arch x86
>
> !ENTRY org.eclipse.ui 4 4 2007-02-27 10:00:15.906
> !MESSAGE Part already exists in page layout: org.eclipse.ui.editorss.
>
> !ENTRY org.eclipse.ui 4 4 2007-02-27 10:00:17.187
> !MESSAGE Could not create action delegate for id:
> cz.aegis.cms.sorting.Search
>
> !ENTRY org.eclipse.equinox.registry 4 1 2007-02-27 10:00:17.187
> !MESSAGE Plug-in "cz.aegis.cms.viewer" was unable to instantiate class
> "cz.aegis.cms.sorting.Search".
> !STACK 0
> java.lang.InstantiationException: cz.aegis.cms.sorting.Search
> at java.lang.Class.newInstance0(Class.java:340)
> at java.lang.Class.newInstance(Class.java:308)
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:157)
>
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
>
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
>
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
>
> at
> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:234)
>
> at
> org.eclipse.ui.internal.PluginAction.createDelegate(PluginAc tion.java:120)
> at
> org.eclipse.ui.internal.PluginAction.selectionChanged(Plugin Action.java:278)
>
> at
> org.eclipse.ui.internal.WWinPluginAction.refreshSelection(WW inPluginAction.java:275)
>
> at
> org.eclipse.ui.internal.WWinPluginAction.<init>(WWinPluginAction.java:121)
> at
> org.eclipse.ui.internal.ActionDescriptor.createAction(Action Descriptor.java:259)
>
> at
> org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:170)
> at
> org.eclipse.ui.internal.PluginActionSetBuilder.createActionD escriptor(PluginActionSetBuilder.java:132)
>
> at
> org.eclipse.ui.internal.PluginActionBuilder.readElement(Plug inActionBuilder.java:158)
>
> at
> org.eclipse.ui.internal.registry.RegistryReader.readElements (RegistryReader.java:138)
>
> at
> org.eclipse.ui.internal.registry.RegistryReader.readElementC hildren(RegistryReader.java:127)
>
> at
> org.eclipse.ui.internal.PluginActionBuilder.readElement(Plug inActionBuilder.java:141)
>
> at
> org.eclipse.ui.internal.registry.RegistryReader.readElements (RegistryReader.java:138)
>
> at
> org.eclipse.ui.internal.PluginActionSetBuilder.readActionExt ensions(PluginActionSetBuilder.java:259)
>
> at
> org.eclipse.ui.internal.PluginActionSetBuilder.processAction Sets(PluginActionSetBuilder.java:221)
>
> at
> org.eclipse.ui.internal.ActionPresentation.setActionSets(Act ionPresentation.java:187)
>
> at
> org.eclipse.ui.internal.WorkbenchWindow.updateActionSets(Wor kbenchWindow.java:2826)
>
> at
> org.eclipse.ui.internal.WorkbenchWindow$6.run(WorkbenchWindo w.java:2636)
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at
> org.eclipse.ui.internal.WorkbenchWindow.setActivePage(Workbe nchWindow.java:2597)
>
> at
> org.eclipse.ui.internal.WorkbenchWindow.busyOpenPage(Workben chWindow.java:658)
>
> at
> org.eclipse.ui.internal.Workbench.busyOpenWorkbenchWindow(Wo rkbench.java:795)
>
> at
> org.eclipse.ui.internal.Workbench.doOpenFirstTimeWindow(Work bench.java:1437)
>
> at
> org.eclipse.ui.internal.Workbench.openFirstTimeWindow(Workbe nch.java:1388)
> at
> org.eclipse.ui.internal.WorkbenchConfigurer.openFirstTimeWin dow(WorkbenchConfigurer.java:190)
>
> at
> org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:708)
>
> at org.eclipse.ui.internal.Workbench.init(Workbench.java:1085)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1847)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at cz.aegis.cms.run.Application.run(Application.java:18)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
> at org.eclipse.core.launcher.Main.run(Main.java:977)
> at org.eclipse.core.launcher.Main.main(Main.java:952)
>
> !ENTRY org.eclipse.ui 4 4 2007-02-27 10:00:20.453
> !MESSAGE Context menu missing standard group
> 'org.eclipse.ui.IWorkbenchActionConstants.MB_ADDITIONS'. (menu ids =
> [cz.aegis.cms.viewer.CMSview]) part id = cz.aegis.cms.viewer.CMSview)
>
> !ENTRY org.eclipse.ui 4 4 2007-02-27 10:00:34.015
> !MESSAGE Context menu missing standard group
> 'org.eclipse.ui.IWorkbenchActionConstants.MB_ADDITIONS'. (menu ids =
> [cz.aegis.cms.viewer.CMSview]) part id = cz.aegis.cms.viewer.CMSview)
>
>
> Someone can help me?
> Thanking Michal

Has the class cz.aegis.cms.sorting.Search a default constructur? The
Platfrom needs that to create an instance.
Karsten
Previous Topic:RCP + Features + Resource
Next Topic:Calling helpsystem out of dialog
Goto Forum:
  


Current Time: Wed Aug 20 14:34:17 EDT 2014

Powered by FUDForum. Page generated in 0.05131 seconds