Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Startup Plugin
Startup Plugin [message #602279] Mon, 05 October 2009 13:24 Go to next message
Cosmin is currently offline CosminFriend
Messages: 23
Registered: October 2009
Junior Member
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 22:38 Go to previous message
Steffen Zschaler is currently offline Steffen ZschalerFriend
Messages: 266
Registered: July 2009
Senior Member
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: Tue Apr 16 05:56:53 GMT 2024

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

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

Back to the top