@Override protected void configureCompoundBracesBlocks(final IEditStrategyAcceptor acceptor) { CompoundMultiLineTerminalsEditStrategy s = null; if (AutoStartup.CORE_CLOSE_CURLY.getValue()) { s = compoundMultiLineTerminals.newInstanceFor("{", "}"); } if (AutoStartup.CORE_CLOSE_SQUARE.getValue()) { if (s == null) { s = compoundMultiLineTerminals.newInstanceFor("[", "]"); } else { s = s.and("[", "]"); } } if (AutoStartup.CORE_CLOSE_PARENTHESES.getValue()) { if (s == null) { s = compoundMultiLineTerminals.newInstanceFor("(", ")"); } else { s = s.and("(", ")"); } } if (s != null) { acceptor.accept(s, IDocument.DEFAULT_CONTENT_TYPE); } }
@Override protected void configureSquareBrackets(final IEditStrategyAcceptor acceptor) { if (AutoStartup.CORE_CLOSE_SQUARE.getValue()) { super.configureSquareBrackets(acceptor); } }