Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Element Rename in XText 2.14(Rename problem)
Element Rename in XText 2.14 [message #1798297] Thu, 15 November 2018 00:41 Go to next message
Eclipse UserFriend
Hi,

Please refer the uploaded files. On press of enter button it is not coming out.
Could you please let me know that what can be the problem ?

mwe2 file:
Workflow {
	
	component = XtextGenerator {
		configuration = {
			project = StandardProjectConfig {
				baseName = "org.xtext.example.test"
				rootPath = rootPath
				runtimeTest = {
					enabled = true
				}
				eclipsePlugin = {
					enabled = true
				}
				eclipsePluginTest = {
					enabled = true
				}
				createEclipseMetaData = true
			}
			code = {
				encoding = "windows-1252"
				lineDelimiter = "\r\n"
				fileHeader = "/*\n * generated by Xtext \${version}\n */"
			}
		}
		language = StandardLanguage {
			name = "org.xtext.example.TestDsl"
			fileExtensions = "lex"

			serializer = {
				generateStub = false
			}
			
			renameRefactoring = {
        		useChangeSerializer = true        
        	}       	
		
		}
	}
}



Thanks and regards,
Virag Purnam
  • Attachment: 1.png
    (Size: 9.47KB, Downloaded 83 times)
  • Attachment: 2.png
    (Size: 12.20KB, Downloaded 57 times)
  • Attachment: 3.png
    (Size: 10.90KB, Downloaded 79 times)
Re: Element Rename in XText 2.14 [message #1798298 is a reply to message #1798297] Thu, 15 November 2018 00:43 Go to previous messageGo to next message
Eclipse UserFriend
Do you mean enter key?
Re: Element Rename in XText 2.14 [message #1798301 is a reply to message #1798298] Thu, 15 November 2018 01:52 Go to previous messageGo to next message
Eclipse UserFriend
Yes. But I found the problem.
There was small problem in overridden class from RenameRefactoringController.
I have another question, related to rename.
Can we customize org.eclipse.ltk.core.refactoring.TextChange class?
also org.eclipse.text.edits.TextEditProcessor class ?

And how to do that?
Is binding required ?

Thanks and regards,
Virag Purnam

[Updated on: Thu, 15 November 2018 01:54] by Moderator

Re: Element Rename in XText 2.14 [message #1798303 is a reply to message #1798301] Thu, 15 November 2018 02:22 Go to previous message
Eclipse UserFriend
what is the background behind your wish to change. see org.eclipse.xtext.ui.refactoring2.ChangeConverter
Previous Topic:Xtend generator fails- attributes are not resolved
Next Topic:Implementing dates clashes with simple equations
Goto Forum:
  


Current Time: Tue Jun 24 10:22:36 EDT 2025

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

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

Back to the top