itemisCREATE / statecharts

YAKINDU Statechart Tools (http://www.statecharts.org)
Eclipse Public License 1.0
176 stars 86 forks source link

Provide support for xtext based rename refactorings #1364

Open jdicks opened 7 years ago

jdicks commented 7 years ago

This will have 2 aspects:

  1. update cross-references within specifications based on a change outside the SCT resource
  2. update all cross-references triggered from within an embedded resource context in SCT

The first aspect can be handled by implementing an IReferenceUpdater for the SCT resource. This reference updater have to apply text changes calculated by xtext to specification features properly.

The second aspect is accessible through the SCT embedded editor > right click > Refactoring > 'Rename..'. The current implementation is based on Stext but could be based on Xtext (RenameelementProcessor) so that it can be applied for Xtext based languages integrated via the sct domains embedded editor feature. The element rename processor will delegate to all IReferenceUpdater contributions for resources where cross references can be found. So a refactoring of an embedded element will use the IReferenceUpdater to update the specifications placed logically in the same file as the elements of the embedded fake resource.

jdicks commented 7 years ago

Following things left:

Other issues:

jdicks commented 7 years ago

i rebased the current state and pushed it to Yakindu/statecharts/tree/issue_1364_integration a few days ago

andreasmuelder commented 7 years ago

scheduling this for backlog as discussed

svenjawendler commented 7 years ago

Rename Refactoring currently does not work on event names: renamerefactoring