Project

General

Profile

Actions

Bug #4978

open

Create additional 'module' property for any menu entries that are inserted by non-core modules

Added by Sean Riddle over 14 years ago. Updated about 9 years ago.

Status:
In Progress
Priority:
Normal
Category:
interface
Target version:
Start date:
05/04/2010
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
4978

Description

As of revision r24221 and r24222-3 on the branch, there's a way to avoid those errors that look like:

[run] ERROR (org.kepler.gui.MenuMapper:getActionFor:271) Exception trying to create an Action for classname: <org.kepler.tagging.TagManagerAction>:
[run] null (java.lang.ClassNotFoundException: org.kepler.tagging.TagManagerAction)

Those come from modules inserting menu entry information into the persistent gui module configuration and then the user removing that module from their active configuration. The system still tries to create that entry, which references a class that is no longer available. If a property named 'module' is created as a peer to 'name' and 'value', then the menu entry will only be generated if a module by that name is in the active configuration. See org.kepler.module.tagging.Initialize from the tagging module for an example of how to do this without hardwiring the module name.

So in order to eliminate error messages like the above, these additional properties need to be created when the menu entry is added to the gui configuration.

Actions

Also available in: Atom PDF