| Summary: | [Design] Design disregards main menu items' disability and visibility | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Hasan Ceylan <hceylan> | ||||||||
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | ||||||||||
| Version: | unspecified | ||||||||||
| Target Milestone: | 1.2 | ||||||||||
| Hardware: | All | ||||||||||
| OS: | All | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Hasan Ceylan
Created attachment 138602 [details]
Patch for menu items disability and visibility
Hi Hasan,
thanks for reporting this bug. I verified it. If I see this correct, the visibility will only be disregarded in the main menu's popup. So can you please try out the attached patch and report if the bug is fixed with this patch? Thank you.
Regards Holger
Created attachment 138705 [details]
Cleaner solution
Hi,
I attached a cleaner solution.
+1 for the second patch committed Hello, Thanks for the update. The menu item visibility problem has been resolved. But I hate to say that the same problem applies to the coolbar... Hasan Created attachment 139187 [details]
coolbar solution
The attached solution should fix the visibility for coolbar items. Can you verify this Hasan?
I have reopened the bug until the coolbar item visibility was verified. +1 for the "coolbar solution" patch committed. for some reason handler is null for the action. Here's the stack trace. Action is declared using the plugin.xml and made available based on "selection" and "instance of" expressions... Hasan java.lang.NullPointerException at org.eclipse.rap.internal.design.example.business.managers.BusinessCoolBarManager$6.widgetSelected(BusinessCoolBarManager.java:691) at org.eclipse.swt.events.SelectionEvent.dispatchToObserver(SelectionEvent.java:176) at org.eclipse.rwt.internal.events.Event.processEvent(Event.java:44) at org.eclipse.swt.events.TypedEvent.processEvent(TypedEvent.java:125) at org.eclipse.swt.events.TypedEvent.executeNext(TypedEvent.java:165) at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.readAndDispatch(RWTLifeCycle.java:244) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:764) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2485) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2444) at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:2295) at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:514) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:497) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:157) at com.turquality.server.rap.Application.createUI(Application.java:58) at org.eclipse.rwt.internal.lifecycle.EntryPointManager.createUI(EntryPointManager.java:92) at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:231) at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:119) at java.lang.Thread.run(Thread.java:636) (In reply to comment #10) > for some reason handler is null for the action. > Here's the stack trace. Action is declared using the plugin.xml and made > available based on "selection" and "instance of" expressions... > Hasan > > java.lang.NullPointerException > [ ... ] Hasan, please file a separate bug and provide some information or code to reproduce the problem. Rüdiger |