@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 configure(IEditStrategyAcceptor acceptor) { // Handle formatting of the step definitions within a workflow block acceptor.accept(new WorkflowStepsAutoIndentStrategy(), IDocument.DEFAULT_CONTENT_TYPE); // Apply standard auto-edit strategies super.configure(acceptor); }
@Override protected void configure(IEditStrategyAcceptor acceptor) { super.configure(acceptor); // acceptor.accept(newShortCuts("PI", "PI")); acceptor.accept(autoEdit, IDocument.DEFAULT_CONTENT_TYPE); }