Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Progress Bar Question
Progress Bar Question [message #86659] Thu, 08 May 2008 12:43 Go to next message
Eclipse UserFriend
Originally posted by: jonas.bruestel.net

Hi,

I have a question about the progress bar. I'm trying to automatically open
an editor after the RAP page is loaded. While loading the content a
progress bar is supposed to show up. But it's partially working. I've put
the loading code inside the ApplicationWorkbenchWindowAdvisor class.

@Override
public void postWindowCreate() {
Shell shell = getWindowConfigurer().getWindow().getShell();
shell.setMaximized( true );


try {
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage().
openEditor( new FileInput("/tmp/testdata"),
"test.editor", true );
} catch (PartInitException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}

Is this a good position? When I start the editor by an action the progress
bar is shown correctly.

Thanks,
Jonas
Re: Progress Bar Question [message #86842 is a reply to message #86659] Mon, 12 May 2008 06:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

just a guess - try ModalContext.setAllowReadAndDispatch(true); before
opening the editor and see if something changes.


Ciao
Frank

-----Ursprüngliche Nachricht-----
Von: Jonas "Brüstel" [mailto:jonas@bruestel.net]
Bereitgestellt: Donnerstag, 8. Mai 2008 18:44
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: Progress Bar Question
Betreff: Progress Bar Question


Hi,

I have a question about the progress bar. I'm trying to automatically
open an editor after the RAP page is loaded. While loading the content a
progress bar is supposed to show up. But it's partially working. I've
put the loading code inside the ApplicationWorkbenchWindowAdvisor
class.

@Override
public void postWindowCreate() {
Shell shell =
getWindowConfigurer().getWindow().getShell();
shell.setMaximized( true );


try {

PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage().
openEditor( new FileInput("/tmp/testdata"),
"test.editor", true );
} catch (PartInitException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}

Is this a good position? When I start the editor by an action the
progress bar is shown correctly.

Thanks,
Jonas
Re: Progress Bar Question [message #86956 is a reply to message #86842] Tue, 13 May 2008 08:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jonas.bruestel.net

Hi,

thanks for your suggestion, but it didn't worked out.

Jonas
Re: Progress Bar Question [message #87096 is a reply to message #86956] Wed, 14 May 2008 04:06 Go to previous message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

I'm currently don't have much time to do a lot of investigations of my
own - sorry for that. But could you check out, if the behavior differs
from RCP - does RCP show the progress bar in that case? If so feel free
to file a bug.


Ciao
Frank

-----Ursprüngliche Nachricht-----
Von: Jonas "Brüstel" [mailto:jonas@bruestel.net]
Bereitgestellt: Dienstag, 13. Mai 2008 14:25
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: Progress Bar Question
Betreff: Re: Progress Bar Question


Hi,

thanks for your suggestion, but it didn't worked out.

Jonas
Previous Topic:Trouble with M4
Next Topic:Integrating external packages using the ServletBridge in RAP
Goto Forum:
  


Current Time: Sun Aug 31 16:34:29 EDT 2025

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

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

Back to the top