Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Support for refactoring in EmbeddedEditor
Support for refactoring in EmbeddedEditor [message #1037687] Tue, 09 April 2013 22:36 Go to next message
Ravikanth Somayaji is currently offline Ravikanth Somayaji
Messages: 39
Registered: July 2009
Location: Oxford
Member
Was wondering if there will be any refactoring support in the Xtext 2.2 EmbedddedEditor?
Re: Support for refactoring in EmbeddedEditor [message #1037763 is a reply to message #1037687] Wed, 10 April 2013 01:24 Go to previous messageGo to next message
Steve Kallestad is currently offline Steve Kallestad
Messages: 62
Registered: March 2013
Member
There is rename refactoring included out of the box (I know it was there in 2.3 and it's still there in 2.4, unsure about 2.2 since I never used it). Any other refactoring will have to be coded.
Re: Support for refactoring in EmbeddedEditor [message #1037905 is a reply to message #1037763] Wed, 10 April 2013 06:37 Go to previous message
Ravikanth Somayaji is currently offline Ravikanth Somayaji
Messages: 39
Registered: July 2009
Location: Oxford
Member
Oh ok, I just realised I am using 2.3.1

However, when I use Alt+Shift+R, the
org.eclipse.xtext.ui.refactoring.ui.DefaultRenameElementHandler
is called and this expects an
org.eclipse.xtext.ui.editor.XtextEditor
to be present, but as I'm using an EmbeddedEditor, this isn't present or available.

Can you please guide me as to how to enable the refactoring of elements in an
org.eclipse.xtext.ui.editor.embedded.EmbeddedEditor
.

Your assistance is much appreciated.
Previous Topic:Performance in scoping
Next Topic:Creating an Outline
Goto Forum:
  


Current Time: Fri Oct 24 15:38:46 GMT 2014

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

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