Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.etrice.core.fsm.ui/src/org/eclipse/etrice/core/fsm/ui/quickfix/FSMQuickfixProvider.xtend')
-rw-r--r--plugins/org.eclipse.etrice.core.fsm.ui/src/org/eclipse/etrice/core/fsm/ui/quickfix/FSMQuickfixProvider.xtend18
1 files changed, 3 insertions, 15 deletions
diff --git a/plugins/org.eclipse.etrice.core.fsm.ui/src/org/eclipse/etrice/core/fsm/ui/quickfix/FSMQuickfixProvider.xtend b/plugins/org.eclipse.etrice.core.fsm.ui/src/org/eclipse/etrice/core/fsm/ui/quickfix/FSMQuickfixProvider.xtend
index 8b842d9d2..9f1359a61 100644
--- a/plugins/org.eclipse.etrice.core.fsm.ui/src/org/eclipse/etrice/core/fsm/ui/quickfix/FSMQuickfixProvider.xtend
+++ b/plugins/org.eclipse.etrice.core.fsm.ui/src/org/eclipse/etrice/core/fsm/ui/quickfix/FSMQuickfixProvider.xtend
@@ -7,12 +7,10 @@ import com.google.inject.Inject
import org.eclipse.etrice.core.fsm.fSM.DetailCode
import org.eclipse.etrice.core.fsm.validation.FSMJavaValidator
import org.eclipse.xtext.formatting.IWhitespaceInformationProvider
-import org.eclipse.xtext.nodemodel.util.NodeModelUtils
import org.eclipse.xtext.ui.editor.quickfix.DefaultQuickfixProvider
import org.eclipse.xtext.ui.editor.quickfix.Fix
import org.eclipse.xtext.ui.editor.quickfix.IssueResolutionAcceptor
import org.eclipse.xtext.validation.Issue
-import org.eclipse.etrice.core.common.converter.BaseConverterService
/**
* Custom quickfixes.
@@ -22,9 +20,6 @@ import org.eclipse.etrice.core.common.converter.BaseConverterService
class FSMQuickfixProvider extends DefaultQuickfixProvider {
@Inject
- BaseConverterService converterService
-
- @Inject
IWhitespaceInformationProvider whitespaceProvider;
@Fix(FSMJavaValidator.PLAIN_STRING_DETAILCODE)
@@ -33,16 +28,9 @@ class FSMQuickfixProvider extends DefaultQuickfixProvider {
element as DetailCode => [
val ccString = lines.join(whitespaceProvider.getLineSeparatorInformation(eResource.URI).lineSeparator)
- // xtext bug: serializer freezes in many situations (manual serialization via ISerializer does not work either)
- // semantic change can trigger formatting, activate in RoomUiModule (https://www.eclipse.org/forums/index.php/t/1067512/)
-// used = false
-// lines.clear
-// lines += ccString
-
- // workaround, TODO do formatting manually
- NodeModelUtils.findActualNodeFor(it) => [
- context.xtextDocument.replace(offset, length, converterService.CC_StringConverter.addDelim(ccString))
- ]
+ used = false
+ lines.clear
+ lines += ccString
]
])
}

Back to the top