Skip to main content



      Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Startup Plugin
Startup Plugin [message #602279] Mon, 05 October 2009 09:24 Go to next message
Eclipse UserFriend
Hello,

I would like to deploy a plugin that prints some information to console on Eclipse startup.looking through the documentation I found that I had to override earlyStartup().

import org.eclipse.ui.IStartup;


public class CustomStartup implements IStartup {
@Override
public void earlyStartup() {
System.out.println("Booom");
}
}

But if I test this code from Manifest.MF->Overview it will not print in the new Eclipse application started but it will print in the Eclipse used for building the plugin.Also deploying the plugin doesn't seem to work.

Am I doing something wrong here?
Re: Startup Plugin [message #602285 is a reply to message #602279] Mon, 05 October 2009 18:38 Go to previous message
Eclipse UserFriend
System.out refers to the out stream of the Eclipse application. This is
why you see this in the original Eclipse rather than in the one you have
started. When you deploy the plugin, you can only see the message by
starting Eclipse using eclipsec.exe Then, you should see the message on
the command line where you started eclipse.

If you want the message to appear inside Eclipse, you may want to have a
look at Eclipse's own console classes.

Steffen

Cosmin wrote:
> Hello,
> I would like to deploy a plugin that prints some information to
> console on Eclipse startup.looking through the documentation I found
> that I had to override earlyStartup().
>
> import org.eclipse.ui.IStartup;
>
>
> public class CustomStartup implements IStartup {
> @Override
> public void earlyStartup() {
> System.out.println("Booom");
> }
> }
>
> But if I test this code from Manifest.MF->Overview it will not print
> in the new Eclipse application started but it will print in the
> Eclipse used for building the plugin.Also deploying the plugin doesn't
> seem to work.
>
> Am I doing something wrong here?
Previous Topic:Processing C-code using a Makefile and a custom builder
Next Topic:Creating an editor for certain types of xml files
Goto Forum:
  


Current Time: Sun Jul 06 05:22:18 EDT 2025

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

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

Back to the top