Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » A bug appears when I run DemoPresentationWorkbenchAdvisor and StatusLineManager
A bug appears when I run DemoPresentationWorkbenchAdvisor and StatusLineManager [message #109384] Thu, 16 October 2008 11:03 Go to next message
Eclipse UserFriend
Hi, I am trying to run the Demo programme:
DemoPresentationWorkbenchAdvisor. After I open the main page with "RAP
Demo", I click "open new editor" tool button, the demo create a new editor
for me, I type some characters and save them, but not any response to me.
I add a "NullPointerException" breakpoint in eclipse 3.5 and found a
NullPointerException in class StatusLineManager on :
/* (non-Javadoc)
* Method declared on IStatueLineManager
*/
public void setCancelEnabled(boolean enabled) {
if (statusLineExist()) {
((StatusLine) statusLine).setCancelEnabled(enabled);
}
}

"statusLine" variable is null pointer and enable is false at this time. I
guess the reason is that DemoPresentationWorkbenchAdvisor has no
statusline.

How to void and solute the problem?

Thank you.

Dahai CAO
Re: A bug appears when I run DemoPresentationWorkbenchAdvisor and StatusLineManager [message #109617 is a reply to message #109384] Fri, 17 October 2008 06:39 Go to previous message
Eclipse UserFriend
Originally posted by: rherrmann.innoopract.com

please note that the demo presentation is a hacked-together show
case to exploit how far we can get with Workbench theming.

There is work going on, to provide a decent way to modifiy the
workbench appearance.

Nonetheless, feel free to file a bugzilla. In the meanwhile, if yhou
have access to the sources, a change in
DemoPresentationWorkbenchWindowAdvisor will fix this.
Replace createWindowContents() with the code below and store the
configurer passed in the constructor as a field.

public void createWindowContents( final Shell shell ) {
shell.setBackground( COLOR_SHELL_BG );
shell.setLayout( new FormLayout() );
createBanner( shell );
createPageComposite( shell );
Control statusline
= configurer.createStatusLineControl( shell );
statusline.setVisible( false );
}

HTH
Rüdiger

CAO Dahai wrote:
> Hi, I am trying to run the Demo programme:
> DemoPresentationWorkbenchAdvisor. After I open the main page with "RAP
> Demo", I click "open new editor" tool button, the demo create a new
> editor for me, I type some characters and save them, but not any
> response to me. I add a "NullPointerException" breakpoint in eclipse 3.5
> and found a NullPointerException in class StatusLineManager on : /*
> (non-Javadoc)
> * Method declared on IStatueLineManager
> */
> public void setCancelEnabled(boolean enabled) {
> if (statusLineExist()) {
> ((StatusLine) statusLine).setCancelEnabled(enabled);
> }
> }
>
> "statusLine" variable is null pointer and enable is false at this time.
> I guess the reason is that DemoPresentationWorkbenchAdvisor has no
> statusline.
> How to void and solute the problem?
> Thank you.
>
> Dahai CAO
>
Previous Topic:Stuck @ Session timed out
Next Topic:bundle.getEntry( path ) returns null
Goto Forum:
  


Current Time: Tue Jul 22 00:50:48 EDT 2025

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

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

Back to the top