سؤال

When running a project plugin I want to execute a simple method (eg: System.out.println), so how where can I do this?

What I'm trying to do is create a project plugin with an activator class and insert inside the Activator constructor the method System.out.println but it is not working.

هل كانت مفيدة؟

المحلول

If you want something to run during the Eclipse start use the org.eclipse.ui.startup extension point:

<extension point="org.eclipse.ui.startup">
  <startup class="example.StartupClass"/>
</extension>

where StartupClass implements org.eclipse.ui.IStartup

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top