| Summary: | [Tooling] Avoid launching a RAP application with wrong windowing system | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Beyhan Veliev <beyhan.veliev> | ||||||
| Component: | Demo | Assignee: | Project Inbox <rap-inbox> | ||||||
| Status: | RESOLVED WONTFIX | QA Contact: | |||||||
| Severity: | enhancement | ||||||||
| Priority: | P3 | CC: | rsternberg | ||||||
| Version: | 1.4 | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Bug Depends on: | 338544 | ||||||||
| Bug Blocks: | |||||||||
| Attachments: |
|
||||||||
|
Description
Beyhan Veliev
Created attachment 190393 [details]
Version 1
This patch adds '-ws' validation to RAP launcher. If '-ws' is not set or has a wrong value RAP launcher displays a warning on its title area. I decided to display an warning instead of an error because I found it too annoying. Any other suggestions here?
What about to open a warning dialog like 'Port in use' before launch if '-ws' isn't set properly? It is possible that a user has a RAP launch configuration and launches it from the context menu. In this use case we can warn the user only with an warning dialog like 'Port in use'.
Created attachment 190984 [details]
Version 2
Patch reviewed:
* some refectoring done
* new tests added
* warning message updated
Applied second patch to CVS HEAD. As an improvement, we could think about showing the warning only when the RAP runtime is >= 1.4M6. OTOH, setting the ws for older runtimes won't hurt. (In reply to comment #3) > As an improvement, we could think about showing the warning only when the RAP > runtime is >= 1.4M6. OTOH, setting the ws for older runtimes won't hurt. Thinking about it some more, I believe that this tweak would not be worth the effort. Users who work with the new tooling but still use an old target will have to live with this warning or to change the window system in the target. Closing as FIXED. We had to roll back the changes to bug 338544 because of unexpected side effects. Until we have a solution for them, we should disable the warning. We have a working solution for bug 338544 not based on specific RAP windowing system. Close as WONTFIX. |