how to force plugin startup [message #264507] |
Thu, 29 July 2004 15:21  |
Eclipse User |
|
|
|
Originally posted by: rhill2_._free.fr
hi-
all is in the question : id like to know if theres some way to force
plugin startup when the platform starts (start() method called) - i have
no manifest yet.
thanks,
-- gd
|
|
|
|
|
|
|
|
Re: how to force plugin startup [message #264803 is a reply to message #264760] |
Fri, 30 July 2004 15:13   |
Eclipse User |
|
|
|
Originally posted by: rhill2_._free.fr
Rich,
thanks for your reply. comments inlined.
Rich Kulp wrote:
> How do your dynamic preference pages hook into the Eclipse preference
> pages? There may be another way to kick them off thru Eclipse when needed.
When the plugin starts, i create IPreferenceNodes from the
IConfigurationElements and attach them to the preference dialog through
Workbench#getPreferenceManager().add(String, IPreferenceNode)
Id much prefer attaching them when the dialog is opened, but i dont know
if there is an extension point that let me declare some kind of
"PreferenceDialogListener".
> Is your launchConfiguration just a standard configuration, or did you
> supply code that is needed for it. What Class is not found, the stack
> trace might be helpful here.
this is indeed just a standard configuration. the class being not found
is the delegate :
public class MavenLaunchDelegate extends AbstractRunner
implements ILaunchConfigurationDelegate
i attach the stack trace at the end of the message. The exception wont
occur as soon a provided ui element is displayed.
> In both cases it is a user action that causes the need for your plugin
> so there shouldn't be a need to force it to start at startup.
>
id be happy to know of a better way to attach the preference pages to
the dialog and if you could give me a hint about the
ClassNotFoundException.
thanks for your help !
-- gd
heres the trace :
java.lang.ClassNotFoundException:
org.mevenide.ui.eclipse.launch.configuration.MavenLaunchDele gate
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:404)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(AbstractClassLoader.java:93)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:307)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:336)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1313)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:131)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:124)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:113)
at
org.eclipse.debug.internal.core.LaunchConfigurationType.getD elegate(LaunchConfigurationType.java:231)
at
org.eclipse.debug.internal.core.LaunchConfiguration.getDeleg ate(LaunchConfiguration.java:360)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:514)
at
org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(D ebugUIPlugin.java:788)
at org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlu gin.java:955)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
>> i just look for a way to solve two problems ive posted there :
>>
>> 1. i have dynamic preference pages that are statically declared through
>> my own extension point. if plugin is not started before opening the
>> pref dialog, then the dynamic preference pages wont show up.
>>
>> 2. i declare a launchconfiguration but when hitting the run button
>> just after startup throws intermittently a ClassNotFoundException ;
>> this wont occur after a ui element is shown (view, preferences pages,
>> configuration dialog, etc.). actually bringing up an ui element starts
>> the plugin whereas the run button doesnot. however i guess that the
>> problem here may be deeper.
>>
>> id much prefer avoid early startup but i dont see any way to solve
>> those two issues (especially the first one). ive posted some messages
>> about them some days ago without reply.
>>
>> thanks for your help.
>>
>> -- gd
>
>
|
|
|
|
|
|
|
|
|
|
Re: how to force plugin startup [message #265068 is a reply to message #265045] |
Mon, 02 August 2004 11:34  |
Eclipse User |
|
|
|
Originally posted by: richkulp.NO.SPAM.us.ibm.com
I should actually say "Display.getCurrent() only returns a display when
called from the UI thread," not that "It is only valid in the display
thread."
--
Thanks, Rich Kulp
|
|
|
Powered by
FUDForum. Page generated in 0.06463 seconds