Diff between IPlatformRunnable, IStartup n preStartup in WorkbenchAdvisor [message #167030] |
Thu, 24 August 2006 10:35 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 #167220 is a reply to message #167213] |
Fri, 25 August 2006 01:51 |
Eclipse User |
|
|
|
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!!" );
}
}
|
|
|
|
Powered by
FUDForum. Page generated in 0.08163 seconds