A bug appears when I run DemoPresentationWorkbenchAdvisor and StatusLineManager [message #109384] |
Thu, 16 October 2008 11:03  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.04191 seconds