Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Diff between IPlatformRunnable, IStartup n preStartup in WorkbenchAdvisor
Diff between IPlatformRunnable, IStartup n preStartup in WorkbenchAdvisor [message #167030] Thu, 24 August 2006 10:35 Go to next message
Eclipse UserFriend
Originally posted by: joneo_ytk81.hotmail.com

can anybody tell me the usage differents between these 3
IPlatformRunnable, IStartup n preStartup in WorkbenchAdvisor? i tried to
have a login dialog popup when user open the eclipse. i've came across
those 3 interfaces/function but i not very clear about it. can anybody
explain to me? i've tied to do like below but it doesnt popup when i open
the eclipse. can anybody tell me why? am i do it wrongly?

public class LoginDialog implements IStartup {
protected Shell window;
public void earlyStartup() {
MessageDialog.openInformation(window, "Testing", "Early Startup
Testing!!" );
}

}
Re: Diff between IPlatformRunnable, IStartup n preStartup in WorkbenchAdvisor [message #167054 is a reply to message #167030] Thu, 24 August 2006 14:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: guerreroderrick.gmail.com

To use IStartup, you also need to supply an extension in Eclipse, goto
the plugin.xml, extensions tab, and add a org.eclipse.ui.startup
extension that points to your class.

Guerrero

joneo wrote:
> can anybody tell me the usage differents between these 3
> IPlatformRunnable, IStartup n preStartup in WorkbenchAdvisor? i tried to
> have a login dialog popup when user open the eclipse. i've came across
> those 3 interfaces/function but i not very clear about it. can anybody
> explain to me? i've tied to do like below but it doesnt popup when i
> open the eclipse. can anybody tell me why? am i do it wrongly?
>
> public class LoginDialog implements IStartup {
> protected Shell window;
> public void earlyStartup() {
> MessageDialog.openInformation(window, "Testing", "Early Startup
> Testing!!" );
> }
>
> }
>
Re: Diff between IPlatformRunnable, IStartup n preStartup in WorkbenchAdvisor [message #167213 is a reply to message #167054] Fri, 25 August 2006 01:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: joneo_ytk81.hotmail.com

yeah i did that and that's the place where i actually created the class
out and written the example code that i attached along. but it didnt popup
the message dialog box when i test run. pls advice.
Re: Diff between IPlatformRunnable, IStartup n preStartup in WorkbenchAdvisor [message #167220 is a reply to message #167213] Fri, 25 August 2006 01:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: joneo_ytk81.hotmail.com

so now i try implements IStartup in the ExampleActivator and point the
class of the extensionpoint to the ExampleActivator class but it still not
working. can anybody help me?

public class ExampleActivator extends AbstractUIPlugin implements IStartup{
protected Shell window;
public void earlyStartup() {
MessageDialog.openInformation(window, "Testing", "Early Startup
Testing!!" );
}

}
Re: Diff between IPlatformRunnable, IStartup n preStartup in WorkbenchAdvisor [message #1506951 is a reply to message #167030] Thu, 11 December 2014 07:30 Go to previous message
Melwyn Jensen is currently offline Melwyn JensenFriend
Messages: 15
Registered: January 2014
Junior Member
Probably it's very late for reply but then this thread help me out and I want to provide the solution as well which might help someone else in future Wink

The reason the dialog box is not showing up is because the shell window which you have created is NULL.

We need to get the Workbench shell handle first and then create the dialog box.

Example to get the Workbench shell handle - http://help.eclipse.org/luna/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fapi%2Forg%2Feclipse%2Fui%2FIStartup.html

Example for creating Username/Password dialog box - http://www.vogella.com/tutorials/EclipseDialogs/article.html

Previous Topic:How do I search for files that contain multiple query strings?
Next Topic:Updating plug-in versions, source, and javadoc
Goto Forum:
  


Current Time: Fri Oct 30 05:33:17 GMT 2020

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

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

Back to the top