Package com._1c.g5.v8.dt.bsl.ui.autoedit
Class BslEditStrategyProvider
- java.lang.Object
-
- org.eclipse.xtext.ui.editor.autoedit.AbstractEditStrategyProvider
-
- org.eclipse.xtext.ui.editor.autoedit.DefaultAutoEditStrategyProvider
-
- com._1c.g5.v8.dt.bsl.ui.autoedit.BslEditStrategyProvider
-
public class BslEditStrategyProvider extends org.eclipse.xtext.ui.editor.autoedit.DefaultAutoEditStrategyProvider
Special autoeditstrategy for Bsl
DefaultAutoEditStrategyProvider
has very large overhead in big Bsl module
-
-
Field Summary
Fields Modifier and Type Field Description protected com.google.inject.Provider<BslCommentNewLineEditStrategy>
bslCommentNewLineEditStrategy
protected com.google.inject.Provider<BslIndentLineAutoEditStrategy>
bslIndentLineAutoEditStrategy
protected com.google.inject.Provider<BslStringLiteralInsertNewLineEditStrategy>
bslStringLiteralInsertNewLineEditStrategy
-
Constructor Summary
Constructors Constructor Description BslEditStrategyProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configure(org.eclipse.xtext.ui.editor.autoedit.AbstractEditStrategyProvider.IEditStrategyAcceptor acceptor)
protected void
configureCompoundBracesBlocks(org.eclipse.xtext.ui.editor.autoedit.AbstractEditStrategyProvider.IEditStrategyAcceptor acceptor)
protected void
configureCurlyBracesBlock(org.eclipse.xtext.ui.editor.autoedit.AbstractEditStrategyProvider.IEditStrategyAcceptor acceptor)
protected void
configureIndentationEditStrategy(org.eclipse.xtext.ui.editor.autoedit.AbstractEditStrategyProvider.IEditStrategyAcceptor acceptor)
protected void
configureMultilineComments(org.eclipse.xtext.ui.editor.autoedit.AbstractEditStrategyProvider.IEditStrategyAcceptor acceptor)
protected void
configureSinglelineComments(org.eclipse.xtext.ui.editor.autoedit.AbstractEditStrategyProvider.IEditStrategyAcceptor acceptor)
Adds newIAutoEditStrategy
for "//" if "shift+enter" was pressedprotected void
configureStringLiteral(org.eclipse.xtext.ui.editor.autoedit.AbstractEditStrategyProvider.IEditStrategyAcceptor acceptor)
-
Methods inherited from class org.eclipse.xtext.ui.editor.autoedit.DefaultAutoEditStrategyProvider
configureParenthesis, configureSquareBrackets
-
-
-
-
Field Detail
-
bslStringLiteralInsertNewLineEditStrategy
@Inject protected com.google.inject.Provider<BslStringLiteralInsertNewLineEditStrategy> bslStringLiteralInsertNewLineEditStrategy
-
bslIndentLineAutoEditStrategy
@Inject protected com.google.inject.Provider<BslIndentLineAutoEditStrategy> bslIndentLineAutoEditStrategy
-
bslCommentNewLineEditStrategy
@Inject protected com.google.inject.Provider<BslCommentNewLineEditStrategy> bslCommentNewLineEditStrategy
-
-
Method Detail
-
configure
protected void configure(org.eclipse.xtext.ui.editor.autoedit.AbstractEditStrategyProvider.IEditStrategyAcceptor acceptor)
- Overrides:
configure
in classorg.eclipse.xtext.ui.editor.autoedit.DefaultAutoEditStrategyProvider
-
configureCompoundBracesBlocks
protected void configureCompoundBracesBlocks(org.eclipse.xtext.ui.editor.autoedit.AbstractEditStrategyProvider.IEditStrategyAcceptor acceptor)
- Overrides:
configureCompoundBracesBlocks
in classorg.eclipse.xtext.ui.editor.autoedit.DefaultAutoEditStrategyProvider
-
configureIndentationEditStrategy
protected void configureIndentationEditStrategy(org.eclipse.xtext.ui.editor.autoedit.AbstractEditStrategyProvider.IEditStrategyAcceptor acceptor)
- Overrides:
configureIndentationEditStrategy
in classorg.eclipse.xtext.ui.editor.autoedit.DefaultAutoEditStrategyProvider
-
configureMultilineComments
protected void configureMultilineComments(org.eclipse.xtext.ui.editor.autoedit.AbstractEditStrategyProvider.IEditStrategyAcceptor acceptor)
- Overrides:
configureMultilineComments
in classorg.eclipse.xtext.ui.editor.autoedit.DefaultAutoEditStrategyProvider
-
configureSinglelineComments
protected void configureSinglelineComments(org.eclipse.xtext.ui.editor.autoedit.AbstractEditStrategyProvider.IEditStrategyAcceptor acceptor)
Adds newIAutoEditStrategy
for "//" if "shift+enter" was pressed- Parameters:
acceptor
- collector forIAutoEditStrategy
, nevernull
-
configureCurlyBracesBlock
protected void configureCurlyBracesBlock(org.eclipse.xtext.ui.editor.autoedit.AbstractEditStrategyProvider.IEditStrategyAcceptor acceptor)
- Overrides:
configureCurlyBracesBlock
in classorg.eclipse.xtext.ui.editor.autoedit.DefaultAutoEditStrategyProvider
-
configureStringLiteral
protected void configureStringLiteral(org.eclipse.xtext.ui.editor.autoedit.AbstractEditStrategyProvider.IEditStrategyAcceptor acceptor)
- Overrides:
configureStringLiteral
in classorg.eclipse.xtext.ui.editor.autoedit.DefaultAutoEditStrategyProvider
-
-