Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » 3.3 Refactor Rename problem
3.3 Refactor Rename problem [message #318282] Tue, 24 July 2007 12:10 Go to next message
Eclipse UserFriend
Hi all,

I'm the author of the viPlugin. As it happens in Eclipse 3.3 the
Refactor Rename is able to do this "inline style".

When the viPlugin is activated and the user executes this refactoring
it's not possible to use all keys to enter the new name, because most of
them have a meaning in vi (e.g. h,j,k,l).

Is there any possibility to get a notification if refactor rename is
selected so that I can enter "InsertMode" prior to it?

Catching events using RefactoringCore - IRefactoringExecutionListener
doesn't work when "inline style" is enabled.

Thanks & Best regards,
Michael Bartl
Re: 3.3 Refactor Rename problem [message #318287 is a reply to message #318282] Tue, 24 July 2007 14:09 Go to previous messageGo to next message
Eclipse UserFriend
What about adding an IExecutionListener to the ICommandService? You
should get a preExecute(*) call just before the rename command is
called, at least if CTRL+SHIFT+R is used.

Later,
PW
Re: 3.3 Refactor Rename problem [message #318421 is a reply to message #318287] Sat, 28 July 2007 13:26 Go to previous messageGo to next message
Eclipse UserFriend
Paul Webster wrote:
> What about adding an IExecutionListener to the ICommandService? You
> should get a preExecute(*) call just before the rename command is
> called, at least if CTRL+SHIFT+R is used.
>
> Later,
> PW

This is really great. Any reason why it doesn't work if it's selected
through the popup context-menu? I'd really like to leave the choice "how
to refactor" to my users ;-)

Many thanks & Best regards,
Michael
Re: 3.3 Refactor Rename problem [message #318478 is a reply to message #318421] Mon, 30 July 2007 13:26 Go to previous message
Eclipse UserFriend
Michael Bartl wrote:
> This is really great. Any reason why it doesn't work if it's selected
> through the popup context-menu? I'd really like to leave the choice "how
> to refactor" to my users ;-)

At the moment, CTRL+SHIFT+R goes through the command framework but popup
menus are part of the action framework. Running an action doesn't fire
a command event.

They're converging, but not yet ...

PW
Previous Topic:Split editor window in JDT plugin
Next Topic:plugin loading insode my rcp
Goto Forum:
  


Current Time: Sun Jul 20 16:06:18 EDT 2025

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

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

Back to the top