Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Override ResourceNavigator Rename/Refactor
Override ResourceNavigator Rename/Refactor [message #298270] Fri, 27 January 2006 09:52 Go to next message
Eclipse UserFriend
Originally posted by: mowens72.gmail.com

I was wondering if it was possible to override the
ResourceNavigatorRenameAction with one of my own. I noticed that
CopyAction (in the same action group) is hidden, and some other classes
import *.internal.* packages/classes.

The reason I want to do this is because some of my files can reference
others. Unless I catch a rename/refactor being performed and update the
references automatically, the user will have to do so manually.

Thanks for any help.
Re: Override ResourceNavigator Rename/Refactor [message #298282 is a reply to message #298270] Fri, 27 January 2006 14:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mvalenta.ca.ibm.com

Mike,

We have added support in 3.2 to allow model providers to provide a
description (in the form of an IStatus) that is displayed to the user
when they perform operations on resources that make up higher level
models. This support is provided through the ModelProvider class in the
oreg.eclipse.core.resources class but it is fairly new (i.e. not in M4
but is in the latest integration builds).

Michael

Mike Owens wrote:
> I was wondering if it was possible to override the
> ResourceNavigatorRenameAction with one of my own. I noticed that
> CopyAction (in the same action group) is hidden, and some other classes
> import *.internal.* packages/classes.
>
> The reason I want to do this is because some of my files can reference
> others. Unless I catch a rename/refactor being performed and update the
> references automatically, the user will have to do so manually.
>
> Thanks for any help.
Re: Override ResourceNavigator Rename/Refactor [message #300338 is a reply to message #298282] Tue, 07 March 2006 15:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mowens72.gmail.com

I just got the eclipse-SDK-I20060223-1656 integration build to take a
look at this. How do I use the ModelProvider class to pick up a rename
event on a file? There are only get* functions in the base implementation.

Thanks.

Michael Valenta wrote:
> Mike,
>
> We have added support in 3.2 to allow model providers to provide a
> description (in the form of an IStatus) that is displayed to the user
> when they perform operations on resources that make up higher level
> models. This support is provided through the ModelProvider class in the
> oreg.eclipse.core.resources class but it is fairly new (i.e. not in M4
> but is in the latest integration builds).
>
> Michael
>
> Mike Owens wrote:
>
>> I was wondering if it was possible to override the
>> ResourceNavigatorRenameAction with one of my own. I noticed that
>> CopyAction (in the same action group) is hidden, and some other
>> classes import *.internal.* packages/classes.
>>
>> The reason I want to do this is because some of my files can reference
>> others. Unless I catch a rename/refactor being performed and update
>> the references automatically, the user will have to do so manually.
>>
>> Thanks for any help.
Re: Override ResourceNavigator Rename/Refactor [message #300368 is a reply to message #300338] Tue, 07 March 2006 18:35 Go to previous message
Eclipse UserFriend
Originally posted by: mowens72.gmail.com

Nevermind. I just found out about the IResourceChangeListener.

Mike Owens wrote:
> I just got the eclipse-SDK-I20060223-1656 integration build to take a
> look at this. How do I use the ModelProvider class to pick up a rename
> event on a file? There are only get* functions in the base implementation.
>
> Thanks.
>
> Michael Valenta wrote:
>
>> Mike,
>>
>> We have added support in 3.2 to allow model providers to provide a
>> description (in the form of an IStatus) that is displayed to the user
>> when they perform operations on resources that make up higher level
>> models. This support is provided through the ModelProvider class in
>> the oreg.eclipse.core.resources class but it is fairly new (i.e. not
>> in M4 but is in the latest integration builds).
>>
>> Michael
>>
>> Mike Owens wrote:
>>
>>> I was wondering if it was possible to override the
>>> ResourceNavigatorRenameAction with one of my own. I noticed that
>>> CopyAction (in the same action group) is hidden, and some other
>>> classes import *.internal.* packages/classes.
>>>
>>> The reason I want to do this is because some of my files can
>>> reference others. Unless I catch a rename/refactor being performed
>>> and update the references automatically, the user will have to do so
>>> manually.
>>>
>>> Thanks for any help.
Previous Topic:Getting file system location of a project
Next Topic:Transport error, error code = -1
Goto Forum:
  


Current Time: Wed Jul 23 17:39:37 EDT 2025

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

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

Back to the top