Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » About refactoring issue(How to extract a selected text to a variable?)
About refactoring issue [message #1701091] Thu, 09 July 2015 09:14 Go to next message
Jiang Li is currently offline Jiang LiFriend
Messages: 27
Registered: November 2014
Junior Member
I want to implement a refactoring feature like the following one:
//Extracting a selected text to a variable

//before extracting
id="my name is John";

//after extracting
name="John"
id="my name is"+ name


I want to select text "John", then use any shortcut to extract "John" to a variable.

It is not content assist because it should have own shortcut.

Has anybody idea about it? Is there any similar feature in xtext like it?

Re: About refactoring issue [message #1702139 is a reply to message #1701091] Mon, 20 July 2015 09:36 Go to previous message
Jiang Li is currently offline Jiang LiFriend
Messages: 27
Registered: November 2014
Junior Member
Done. Maybe there is no similar feature in xtext.
I finished it with jface api direktly.
Previous Topic:Guide to write own TMF analysis module.
Next Topic:Deprecated ISemanticHighlightingCalculator
Goto Forum:
  


Current Time: Tue Mar 19 10:52:10 GMT 2024

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

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

Back to the top