[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [ve-dev] Passing extra information to a customizer
|
Well
the information I needed to pass was essentially the project location, so your
advice, together with the
initialize(IConfigurationContributionInfo) method on the contributor
enables me to achieve exactly what I want.
Thankyou very much for all of the advice and
information.
Darren
-----Original Message-----
From:
ve-dev-bounces@xxxxxxxxxxx [mailto:ve-dev-bounces@xxxxxxxxxxx]On Behalf Of
Rich Kulp
Sent: 08 May 2006 18:29
To: Discussions people
developing code for the Visual Editor project
Subject: RE: [ve-dev]
Passing extra information to a customizer
Hi,
There is a difference between adding to the customize
action and just calling something on the proxy factory registry after it has
been created.
We already have ways
of doing the registry stuff. Have you read
http://eclipse.org/articles/Article-VE-Custom-Widget/customwidget.html
This discusses extending VE. You would be using a special extension
point. There is an example in org.eclipse.ve.jfc's plugin.xml:
<extension
point="org.eclipse.jem.proxy.contributors">
<contributor
container="org.eclipse.jdt.launching.JRE_CONTAINER"
class="org.eclipse.ve.internal.jfc.core.JFCVisualContributor">
</contributor>
</extension>
This
says that if the container org.eclipse.jdt.launching.JRE_CONTAINER is in the classpath then the contributor class org.eclipse.ve.internal.jfc.core.JFCVisualContributor will be instantiated and called to allow it to
contribute to the remote vm. The method you would implement to modify
the remote vm at creation time is contributeToRegistry(ProxyFactoryRegistry registry)
Thanks,
Rich
Darren Hurt
<darren.hurt@xxxxxxxxxx> Sent by: ve-dev-bounces@xxxxxxxxxxx
05/08/2006 12:48 PM
Please respond
to Discussions people developing code for the Visual Editor
project
<ve-dev@xxxxxxxxxxx> |
|
To
| "'Discussions people developing
code for the Visual Editor project'"
<ve-dev@xxxxxxxxxxx>
|
cc
|
|
Subject
| RE: [ve-dev] Passing extra
information to a customizer |
|
I have managed to accomplish what I want by subclassing the
JavaVisualEditorPart and CustomizeJavaBeanAction
classes, and using the target VM API to set a couple of
String properties on a singleton class in the target VM.
This is all I wanted to do, as my customizers can
pick up this information from the singleton class.
I am
aware that what I have done is far from conforming to the API, and would like
to be able to do this kind of thing in
a proper way.
All I need is a
hook to be able to call some arbitrary code after a JavaVisualEditorPart has
set up it's ProxyFactoryRegistry.
Is there a way I can get involved to make this happen, either by
requesting the change or doing it myself and commiting it?
Darren Hurt
-----Original
Message-----
From: ve-dev-bounces@xxxxxxxxxxx
[mailto:ve-dev-bounces@xxxxxxxxxxx]On Behalf Of Rich
Kulp
Sent: 08 May 2006 14:44
To: Discussions people
developing code for the Visual Editor project
Subject: Re: [ve-dev]
Passing extra information to a customizer
Hello,
There isn't any way. The customizer is on a separate Java VM than
the Eclipse IDE. The customizer doesn't know anything about the workspace. And
there isn't anyway to tell it that info. The Customize action isn't extensible
to allow that.
Sorry,
Rich_______________________________________________
ve-dev mailing
list
ve-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ve-dev