Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » ProgressIndicator on custom presentation
ProgressIndicator on custom presentation [message #87510] Thu, 15 May 2008 12:00 Go to next message
Markus  rüger is currently offline Markus rügerFriend
Messages: 369
Registered: July 2009
Senior Member
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 #87687 is a reply to message #87510] Thu, 15 May 2008 15:48 Go to previous messageGo to next message
Eclipse UserFriend
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 #87702 is a reply to message #87687] Thu, 15 May 2008 16:17 Go to previous messageGo to next message
Markus  rüger is currently offline Markus rügerFriend
Messages: 369
Registered: July 2009
Senior Member
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
Re: ProgressIndicator on custom presentation [message #87894 is a reply to message #87702] Fri, 16 May 2008 07:54 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:StatusLine setMessage
Next Topic:Deployment Problem
Goto Forum:
  


Current Time: Mon Sep 23 21:13:39 GMT 2024

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

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

Back to the top