Alan Shutko writes:
> I'm finally starting to look at turning RemoteEclipse into a plugin.
> It sets the classpath for two different reasons.
>
> First, it sets it to include the java needed to talk to the Eclipse
> plugin it comes with. I see that can easily be done while
> registering the plugin.
>
> Second, when it opens a file that is in an Eclipse project, it asks
> Eclipse for the project's classpath, and wants to set that in JDE.
> To ask Eclipse, it opens a bsh with the base plugin classpath (for
> the plugin's jars) to talk to Eclipse and retrieve the classpath.
> Ideally, after this is done, I'd like to reset bsh's classpath to
> include the new info, so completion and everything works correctly.
>
> What would be the most appropriate way to set the classpath in this
> case, to set the jde-global-classpath after the plugin is run? I
> could kill the bsh and let it respawn when next needed, but I don't
> want to make bsh restart more than necessary.
;; Set global classpath to classpath obtained from Eclipse.
(custom-set-variables
(list
'jde-global-classpath
(get-classpath-from eclipse)))
;; Update the BeanShell to use the Eclipse classpath.
(jde-create-prj-values-str)
Paul
>
> --
> Alan Shutko <[EMAIL PROTECTED]> - I am the rocks.
> There was a phone call for you.
>