|
Re: ProgressIndicator on custom presentation [message #87687 is a reply to message #87510] |
Thu, 15 May 2008 15:48 |
Eclipse User |
|
|
|
Originally posted by: fappel.innoopract.com
Hi,
I didn't find a nice solution in a short time evaluation, but changing
the DemoPresentationWorkbenchWindowAdvisor#createWindowContents( Shell)
by using a lot of internal and deprecated stuff (cough) to:
public void createWindowContents( final Shell shell ) {
shell.setBackground( COLOR_SHELL_BG );
shell.setLayout( new FormLayout() );
createBanner( shell );
createPageComposite( shell );
IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
WorkbenchWindow window = ( WorkbenchWindow )configurer.getWindow();
StatusLineManager statusLineManager = window.getStatusLineManager();
AbstractPresentationFactory presentationFactory
= getWindowConfigurer().getPresentationFactory();
presentationFactory.createStatusLineControl( statusLineManager,
shell);
progressRegion = new ProgressRegion();
progressRegion.createContents(shell, window);
}
at least shows the status bar showing the progress indicator.
Unfortunately in the upper-left corner, but that's because I didn't
adjust the layout data. Maybe that helps to continue.
Ciao
Frank
-----Ursprüngliche Nachricht-----
Von: Markus Krüger [mailto:krueger@ion.ag]
Bereitgestellt: Donnerstag, 15. Mai 2008 14:01
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: ProgressIndicator on custom presentation
Betreff: ProgressIndicator on custom presentation
Hello,
how can I implement the progress indicator in the custom presentation
from the demo of rap 1.1 M4?
I could create the statusline with the following code:
if (configurer.getShowStatusLine()) {
configurer.createStatusLineControl(myComposite);
}
But how can I now implement the progress indicator?
Regards,
Markus
|
|
|
|
Re: ProgressIndicator on custom presentation [message #87894 is a reply to message #87702] |
Fri, 16 May 2008 07:54 |
Eclipse User |
|
|
|
Originally posted by: fappel.innoopract.com
Hi,
there is good chance that there will be some improvements of the
presentation stuff after 1.2, but this isn't guaranteed yet.
Ciao
Frank
-----Ursprüngliche Nachricht-----
Von: Markus Krüger [mailto:krueger@ion.ag]
Bereitgestellt: Donnerstag, 15. Mai 2008 18:18
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: ProgressIndicator on custom presentation
Betreff: Re: ProgressIndicator on custom presentation
Thank you Frank,
that worked. Will this be possible without internal and deprecated
stuff in future?
Regards,
Markus
"Frank Appel" <fappel@innoopract.com> schrieb im Newsbeitrag
news:00ba01c8b6a3$2b717740$6402a8c0@Abulafila...
> Hi,
>
> I didn't find a nice solution in a short time evaluation, but changing
> the DemoPresentationWorkbenchWindowAdvisor#createWindowContents( Shell)
> by using a lot of internal and deprecated stuff (cough) to:
>
> public void createWindowContents( final Shell shell ) {
> shell.setBackground( COLOR_SHELL_BG );
> shell.setLayout( new FormLayout() );
> createBanner( shell );
> createPageComposite( shell );
> IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
> WorkbenchWindow window = ( WorkbenchWindow )configurer.getWindow();
> StatusLineManager statusLineManager =
window.getStatusLineManager();
> AbstractPresentationFactory presentationFactory
> = getWindowConfigurer().getPresentationFactory();
> presentationFactory.createStatusLineControl( statusLineManager,
> shell);
> progressRegion = new ProgressRegion();
> progressRegion.createContents(shell, window); }
>
> at least shows the status bar showing the progress indicator.
> Unfortunately in the upper-left corner, but that's because I didn't
> adjust the layout data. Maybe that helps to continue.
>
>
> Ciao
> Frank
>
> -----Ursprüngliche Nachricht-----
> Von: Markus Krüger [mailto:krueger@ion.ag]
> Bereitgestellt: Donnerstag, 15. Mai 2008 14:01 Bereitgestellt in:
> eclipse.technology.rap
> Unterhaltung: ProgressIndicator on custom presentation
> Betreff: ProgressIndicator on custom presentation
>
>
> Hello,
> how can I implement the progress indicator in the custom presentation
> from the demo of rap 1.1 M4?
> I could create the statusline with the following code:
> if (configurer.getShowStatusLine()) {
>
> configurer.createStatusLineControl(myComposite);
>
> }
>
> But how can I now implement the progress indicator?
>
> Regards,
>
> Markus
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03619 seconds