Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Does org.eclipse.ltk.core.refactoring.participants.RenameParticipant extension point work?
Does org.eclipse.ltk.core.refactoring.participants.RenameParticipant extension point work? [message #289818] Thu, 11 August 2005 08:06 Go to next message
Stefan Junsved is currently offline Stefan JunsvedFriend
Messages: 56
Registered: July 2009
Member
This is a multi-part message in MIME format.

------=_NextPart_000_0012_01C59E5C.6702BE20
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi.

I've tried to extend the IDE rename functionality by referring the =
org.eclipse.ltk.core.refactoring.participants.RenameParticip ant =
extension point in my plugin.xml, but I just don't get it to work.

The plugin.xml sub part looks like this:

<extension
point=3D"org.eclipse.ltk.core.refactoring.renameParticipants ">
<renameParticipant
id=3D"myid"
name=3D"myname"=20
class=3D"net.mycompany.eclipse.tools.core.refactoring.MyClass ">
<enablement>
<with variable=3D"affectedNatures">
<iterate operator=3D"or">
<equals value=3D"org.eclipse.jdt.core.javanature"/>
</iterate>
</with>
<with variable=3D"element">
<instanceof value=3D"org.eclipse.core.resources.IResource"/>
</with>
</enablement>
</renameParticipant>
</extension>

MyClass extends the =
org.eclipse.ltk.core.refactoring.participants.RenameParticip ant class. =
Nothing is trigged though in MyClass when a rename is executed. Is there =
anything more I have to do?

Please help.

/Stefan Junsved
------=_NextPart_000_0012_01C59E5C.6702BE20
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2668" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Hi.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I've tried to extend the IDE rename =
functionality=20
by referring the =
org.eclipse.ltk.core.refactoring.participants.RenameParticip ant=20
extension point in my plugin.xml, but I just don't get it to =
work.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>
<DIV><FONT face=3DArial size=3D2>The plugin.xml sub part looks like=20
this:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>&lt;extension<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp=
;=20
point=3D"org.eclipse.ltk.core.refactoring.renameParticipants "&gt;<BR>&nbs=
p;&nbsp;&lt;renameParticipant<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
id=3D"myid"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name=3D"myname"=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
class=3D"net.mycompany.eclipse.tools.core.refactoring.MyClass "&gt;<BR>&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;enablement&gt;<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; =
&lt;with=20
variable=3D"affectedNatures"&gt;<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &=
nbsp;&nbsp;&nbsp;=20
&lt;iterate=20
operator=3D"or"&gt;<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;=20
&lt;equals=20
value=3D"org.eclipse.jdt.core.javanature"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;/iterate&gt;<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;=20
&lt;/with&gt;<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;with=20
variable=3D"element"&gt;<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nb=
sp;&nbsp;=20
&lt;instanceof=20
value=3D"org.eclipse.core.resources.IResource"/&gt;<BR >&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;/with&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;/enablement&gt;<BR>&nbsp;&nbsp;&lt;/renameParticipant&gt; <BR>&nbsp;&l=
t;/extension&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>MyClass extends the=20
org.eclipse.ltk.core.refactoring.participants.RenameParticip ant class. =
Nothing=20
is trigged though in MyClass when a rename is executed. Is there =
anything more I=20
have to do?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Please help.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>/Stefan =
Junsved</FONT></DIV></DIV></BODY></HTML>

------=_NextPart_000_0012_01C59E5C.6702BE20--
Re: Does org.eclipse.ltk.core.refactoring.participants.RenameParticipant extension point work? [message #289847 is a reply to message #289818] Thu, 11 August 2005 14:05 Go to previous message
Stefan Junsved is currently offline Stefan JunsvedFriend
Messages: 56
Registered: July 2009
Member
This is a multi-part message in MIME format.

------=_NextPart_000_002C_01C59E8E.72FDFDC0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hmm. Suddenly it just started working...
At first I had the Resource perspective open when I tested my code, and =
that didn't work. I then switched to the Java perspective, and things =
started rockin'.

/Stefan
"Stefan Junsved" <stefan.junsved@comactivity.net> wrote in message =
news:ddf0uv$nbr$1@news.eclipse.org...
Hi.

I've tried to extend the IDE rename functionality by referring the =
org.eclipse.ltk.core.refactoring.participants.RenameParticip ant =
extension point in my plugin.xml, but I just don't get it to work.

The plugin.xml sub part looks like this:

<extension
=
point=3D"org.eclipse.ltk.core.refactoring.renameParticipants ">
<renameParticipant
id=3D"myid"
name=3D"myname"=20
class=3D"net.mycompany.eclipse.tools.core.refactoring.MyClass ">
<enablement>
<with variable=3D"affectedNatures">
<iterate operator=3D"or">
<equals value=3D"org.eclipse.jdt.core.javanature"/>
</iterate>
</with>
<with variable=3D"element">
<instanceof value=3D"org.eclipse.core.resources.IResource"/>
</with>
</enablement>
</renameParticipant>
</extension>

MyClass extends the =
org.eclipse.ltk.core.refactoring.participants.RenameParticip ant class. =
Nothing is trigged though in MyClass when a rename is executed. Is there =
anything more I have to do?

Please help.

/Stefan Junsved
------=_NextPart_000_002C_01C59E8E.72FDFDC0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2668" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hmm. Suddenly it just started=20
working...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>At first I had the Resource perspective =
open when I=20
tested my code, and that didn't work. I then switched to the Java =
perspective,=20
and things started rockin'.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>/Stefan</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Stefan Junsved" &lt;<A=20
=
href=3D"mailto:stefan.junsved@comactivity.net">stefan.junsved@comactivity=
..net</A>&gt;=20
wrote in message <A=20
=
href=3D"news:ddf0uv$nbr$1@news.eclipse.org">news:ddf0uv$nbr$1@news.eclips=
e.org</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>Hi.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I've tried to extend the IDE rename =
functionality=20
by referring the=20
org.eclipse.ltk.core.refactoring.participants.RenameParticip ant =
extension=20
point in my plugin.xml, but I just don't get it to work.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>
<DIV><FONT face=3DArial size=3D2>The plugin.xml sub part looks like=20
this:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
=
size=3D2>&lt;extension<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp=
;=20
=
point=3D"org.eclipse.ltk.core.refactoring.renameParticipants "&gt;<BR>&nbs=
p;&nbsp;&lt;renameParticipant<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
id=3D"myid"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name=3D"myname"=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
=
class=3D"net.mycompany.eclipse.tools.core.refactoring.MyClass "&gt;<BR>&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;enablement&gt;<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; =
&lt;with=20
=
variable=3D"affectedNatures"&gt;<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &=
nbsp;&nbsp;&nbsp;=20
&lt;iterate=20
=
operator=3D"or"&gt;<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;=20
&lt;equals=20
=
value=3D"org.eclipse.jdt.core.javanature"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;/iterate&gt;<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;=20
&lt;/with&gt;<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;with=20
=
variable=3D"element"&gt;<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nb=
sp;&nbsp;=20
&lt;instanceof=20
=
value=3D"org.eclipse.core.resources.IResource"/&gt;<BR >&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;/with&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
=
&lt;/enablement&gt;<BR>&nbsp;&nbsp;&lt;/renameParticipant&gt; <BR>&nbsp;&l=
t;/extension&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>MyClass extends the=20
org.eclipse.ltk.core.refactoring.participants.RenameParticip ant class. =
Nothing=20
is trigged though in MyClass when a rename is executed. Is there =
anything more=20
I have to do?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Please help.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>/Stefan=20
Junsved</FONT></DIV></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_002C_01C59E8E.72FDFDC0--
Previous Topic:Problem about file "write-able" to "read-only"
Next Topic:Problem with MyEclipse depedencie...
Goto Forum:
  


Current Time: Thu Sep 26 08:11:06 GMT 2024

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

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

Back to the top