Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » StatusBar, MessageBox, ... breaking UI window?
StatusBar, MessageBox, ... breaking UI window? [message #132580] Wed, 13 May 2009 09:03 Go to next message
Kristian Rink is currently offline Kristian RinkFriend
Messages: 64
Registered: July 2009
Member
Folks;

not sure how to completely get to the bottom of this problem: In a given
situation I want to have the user notified that something actually happened
after "clicking an icon" in my RAP application coolbar. Well... So far I
tried to go for two different approaches:

(a) Use a MessageBox started from within the AbstractHandler implementations
execute() method that gets invoked whenever the button is being presed.

(b) Use some global helper class to access (and write to) the application
status line, more or less following the approach outlined in [1].

While both approaches basically work, in both situations I see that either
after the status line has been updated or after the message box has been
displayed, the UI perspective gets messed up completely: It seems the "RAP
application window" is extended way beyond the boundaries of the screen, the
status line is not visible anymore, neither are my views at the bottom of
the screen (well, not completely, parts of the Forms components which are in
one of the views still are there yet somehow painted "over" another view).
Only way to restore this, by then, is to restart the RAP session which is
_rather_ inconvenient... So to ask:

- Is this a known issue / limitation, ...?

- Is there a workaround? At least the approach in [1] of how to access the
status bar from a non-view component seems somewhat clumsy, and I want to
make sure it's not the code itself causing a misbehaviour.

- Any other information required to track this down?


TIA and all the best,
Kristian



[1] http://dev.eclipse.org/newslists/news.eclipse.platform.rcp/m sg05917.html
Re: StatusBar, MessageBox, ... breaking UI window? [message #132607 is a reply to message #132580] Wed, 13 May 2009 09:26 Go to previous messageGo to next message
Kristian Rink is currently offline Kristian RinkFriend
Messages: 64
Registered: July 2009
Member
> - Any other information required to track this down?


Adding to this, maybe of relevance: There is an exception being thrown in
one of the views containing a CTabFolder, but as far as I can tell, this
seems a consequence of trying to resize the widget rather than the reason
for resizing?

K.


SCHWERWIEGEND: Could not execute PhaseListener after phase 'PROCESS_ACTION'.
java.lang.ArrayIndexOutOfBoundsException: 0
at org.eclipse.swt.custom.CTabFolder.updateItems(CTabFolder.jav a:1294)
at org.eclipse.swt.custom.CTabFolder.updateItems(CTabFolder.jav a:1286)
at org.eclipse.swt.custom.CTabFolder.onResize(CTabFolder.java:1 822)
at org.eclipse.swt.custom.CTabFolder$1.controlResized(CTabFolde r.java:191)
at org.eclipse.swt.events.ControlEvent.dispatchToObserver(Contr olEvent.java:68)
at org.eclipse.rwt.internal.events.Event.processEvent(Event.jav a:44)
at org.eclipse.swt.events.TypedEvent.processEvent(TypedEvent.ja va:125)
at org.eclipse.swt.widgets.Control.notifyResize(Control.java:17 88)
at org.eclipse.swt.widgets.Composite.notifyResize(Composite.jav a:732)
Re: StatusBar, MessageBox, ... breaking UI window? [message #132644 is a reply to message #132607] Wed, 13 May 2009 11:56 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Kristian,

are you experiencing this bug:

[Viewers] ArrayIndexOutOfBoundsException exception in
ConcurrentTableUpdator (used in DeferredContentProvider)
https://bugs.eclipse.org/bugs/show_bug.cgi?id=165637

If so, you could add your findings to this bug.

Ralf
Re: StatusBar, MessageBox, ... breaking UI window? [message #132683 is a reply to message #132644] Wed, 13 May 2009 12:47 Go to previous message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Ralf Sternberg wrote:
> [Viewers] ArrayIndexOutOfBoundsException exception in
> ConcurrentTableUpdator (used in DeferredContentProvider)
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=165637

Hmm, I think I mixed up something here. Your problem doesn't seem to be
related. Sorry for the noise.

However, feel free to file a new bug report for your problem.

Regards, Ralf
Previous Topic:Information on defaults Preferences
Next Topic:Problems with trees
Goto Forum:
  


Current Time: Sat Apr 27 03:03:49 GMT 2024

Powered by FUDForum. Page generated in 0.03096 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top