The Action interface in Swing has a setEnabled() and an isEnabled() property that
lets you enable/disable actions (and any menus they were added to) by a simple call
to the setEnabled(false).
It would be nice if one could call setEnabled()/isEnabled() on a EditAction after
getting it from the jEdit.getAction(String Name) and have it automatically work as
it should in Swing.
This would be a first step in unifying the jEdit and Swing action API. But doing this
would also require reworking the GuiUtilities.loadMenuItem() methods so they create
JMenuItems with a Swing Action inside them instead of the multiple separate arguments
that are currently supplied to the JMenuItem ctor.
The current way of enabling/disabling menu items (we can see an example in the toggle
buffer switcher code) is not reusable.
Submitted | ezust - 2009-08-10 21:25:32 | Assigned | |
---|---|---|---|
Priority | 5 | Labels | core |
Status | open | Group | None |
Resolution | None |
2009-12-30 20:33:24 ezust |
Looks like I need to do this myself in order to unify HelperLauncher/ProjectViewer.
|
---|---|
2009-12-30 20:33:25 ezust |
- **assigned_to**: nobody --> ezust |
2010-02-22 20:17:28 ezust |
Post by Francois Rey on jEdit-devel which I think is relevant, so I am going to paste
it here:
|
2011-11-16 23:41:21 ezust |
- **assigned_to**: ezust --> nobody |