Menu

#10 Eclipse Galileo (OSX): The chosen operation is not enabled.

closed
None
9
2010-12-06
2009-09-16
No

After installing HTML tidy 1.2.2 into Eclipse Galileo (OS X Snow Leopard), the HTML tidy toolbar items apepar, as does the menu, but when they are clicked when editing a JSP (html) file, a dialogue appears saying "The chosen operation is not enabled."

Discussion

  • John Hawksley

    John Hawksley - 2009-09-16
    • priority: 5 --> 9
    • assigned_to: nobody --> pbaumard
     
  • John Hawksley

    John Hawksley - 2009-09-16

    Set prio 9/assigned (showstopper) - tool does not function in this env.

     
  • Pierre Baumard

    Pierre Baumard - 2009-09-30

    Some similar issues have been reported by the past (see ID 1811153 & 1706856), but I couldn't reproduce them. Since I don't have OS X Snow Leopard, I won't be able to reproduce this one either.

    Do you have Eclipse error logs for this issue?

     
  • John Hawksley

    John Hawksley - 2009-09-30

    Hello Pierre,

    I just did an install from scratch, then tried to activate HTMLTidy -> Format from the menu.

    Unfortunately no errors we generated in the workspace log file.

     
  • Nobody/Anonymous

    I just received the exact same symptom on a Windows XP machine, Eclipse Version: 3.4.1
    Build id: M20080911-1700. I have numerous errors in the log file
    !ENTRY org.eclipse.jface 4 0 2009-12-09 15:38:23.638
    !MESSAGE Undefined context while filtering dialog/window contexts
    !STACK 0
    org.eclipse.core.commands.common.NotDefinedException: Cannot get the parent identifier from an undefined context. net.sf.eclipsetidy.ActionSet
    at org.eclipse.core.commands.contexts.Context.getParentId(Context.java:201)
    at org.eclipse.jface.bindings.BindingManager.createFilteredContextTreeFor(BindingManager.java:825)
    at org.eclipse.jface.bindings.BindingManager.recomputeBindings(BindingManager.java:1721)
    at org.eclipse.jface.bindings.BindingManager.contextManagerChanged(BindingManager.java:689)
    at org.eclipse.core.commands.contexts.ContextManager.fireContextManagerChanged(ContextManager.java:152)
    at org.eclipse.core.commands.contexts.ContextManager.addActiveContext(ContextManager.java:96)
    at org.eclipse.ui.internal.contexts.ContextAuthority.updateContext(ContextAuthority.java:765)
    at org.eclipse.ui.internal.contexts.ContextAuthority.activateContext(ContextAuthority.java:179)
    at org.eclipse.ui.internal.contexts.ContextService.activateContext(ContextService.java:88)
    at org.eclipse.ui.internal.contexts.SlaveContextService.doActivateContext(SlaveContextService.java:279)
    at org.eclipse.ui.internal.contexts.SlaveContextService.activateContext(SlaveContextService.java:122)
    at org.eclipse.ui.internal.ActionSetManager$1.propertyChanged(ActionSetManager.java:89)
    at org.eclipse.ui.internal.ActionSetManager.firePropertyChange(ActionSetManager.java:116)
    at org.eclipse.ui.internal.ActionSetManager.showAction(ActionSetManager.java:138)
    at org.eclipse.ui.internal.ActionSetManager.change(ActionSetManager.java:194)
    at org.eclipse.ui.internal.WorkbenchPage.perspectiveActionSetChanged(WorkbenchPage.java:3599)
    at org.eclipse.ui.internal.Perspective.addAlwaysOn(Perspective.java:896)
    at org.eclipse.ui.internal.Perspective.turnOnActionSets(Perspective.java:1789)
    at org.eclipse.ui.internal.WorkbenchWindow$1.addExtension(WorkbenchWindow.java:503)
    at org.eclipse.ui.internal.registry.UIExtensionTracker$2.run(UIExtensionTracker.java:58)
    at org.eclipse.ui.internal.UILockListener.doPendingWork(UILockListener.java:155)
    at org.eclipse.ui.internal.UISynchronizer$3.run(UISynchronizer.java:158)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3800)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3425)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1236)

     
  • Nobody/Anonymous

    I experience the same error on Mac OS X - Leopard (10.5.8)

    Eclipse for PHP Developers

    Build id: 20090920-1017

     
  • Pierre Baumard

    Pierre Baumard - 2010-03-28
    • assigned_to: pbaumard --> nobody
     
  • Pierre Baumard

    Pierre Baumard - 2010-11-28
    • assigned_to: nobody --> pbaumard
     
  • Pierre Baumard

    Pierre Baumard - 2010-11-28

    I just installed Eclipsetidy 1.2.2 with Eclipse Helios Service Release 1 on Mac OS 10.6.5 and all tasks work fine.

    If you manage to reproduce the issue please try to include some reproducible steps, e.g. 1. Download this eclipse version..., 2. install eclipsetdy 1.2.2, 3. do this precise action by clicking on this menu...

     
  • Pierre Baumard

    Pierre Baumard - 2010-12-06

    I finally found the cause.
    "The chosen operation is not enabled" popup is shown when an eclipsetidy action is done in a file that doesn't follow the regular expression in Preferences > HTML Tidy > File Filter

    To enable eclipsetidy action on any file, this file filter can be changed to ".*".
    I will probably change the default file filter to this value in a future release.

     
  • Pierre Baumard

    Pierre Baumard - 2010-12-06
    • status: open --> closed
     
  • Pierre Baumard

    Pierre Baumard - 2010-12-06
    • labels: 480233 -->
     
  • Anonymous

    Anonymous - 2010-12-21

    Hi pb - I understand this (note when there is no file match it even disappears from html files, so ".*" is clearly working) .
    Although when I right click on an html file I see the htmltidy context. When I right click on a php file I do not have the htmltidy context menu.
    Do you know of a way to add the htmltidy right click menu when editing php files

     
  • Anonymous

    Anonymous - 2012-02-23

    First, it works great from the popup menu when right-clicking in the Package Explorer over a file name.

    It does not work on the top menu in the PDT Plug-in Editor.
    The PDT editor uses IStructuredSelection instead of ITextSelection when calling TidyAction.selectionChanged.
    Also, TidyAction.setActiveEditor never gets called, so no editor is ever set.

    You may want to install the PDT Plug-in and see if you can duplicate the error.

    I am using Eclipse 3.7.1 and PHP Development Tools (PDT) Runtime Feature 3.0.0.201111271336

     

    Last edit: Anonymous 2017-07-10

Log in to post a comment.

MongoDB Logo MongoDB