Insubstantial / insubstantial

Swing look-and-feel library and assorted widgets
195 stars 57 forks source link

Unable to add ribbon task to ribbon once removed #70

Open remiohead opened 12 years ago

remiohead commented 12 years ago

Removing a task from a ribbon does not null the ribbon reference in the task. If you try to add the task to the original ribbon or a different one an exception is thrown:

java.lang.IllegalStateException: The task already belongs to another ribbon

remiohead commented 12 years ago

Since the setRibbon() method in RibbonTask is package protected the problem can not easily be worked around.