/** * Returns whether closing markup tags should be automatically completed. * This method only returns <code>true</code> if * {@link #getLanguageIsMarkup()} also returns <code>true</code>. * * @return Whether markup closing tags should be automatically completed. * @see #getLanguageIsMarkup() */ public boolean getCompleteMarkupCloseTags() { // TODO: Remove terrible dependency on AbstractMarkupTokenMaker return getLanguageIsMarkup() && ((AbstractMarkupTokenMaker)tokenMaker).getCompleteCloseTags(); }
@Test public void testGetLanguageIsMarkup() { String syntaxStyle = SyntaxConstants.SYNTAX_STYLE_C; doc = new RSyntaxDocument(syntaxStyle); Assert.assertFalse(doc.getLanguageIsMarkup()); // Language that does not use curly braces syntaxStyle = SyntaxConstants.SYNTAX_STYLE_XML; doc.setSyntaxStyle(syntaxStyle); Assert.assertTrue(doc.getLanguageIsMarkup()); }
if (doc.getLanguageIsMarkup() && doc.getCompleteMarkupCloseTags() && !selection && rsta.getCloseMarkupTags() && dot>1) {
/** * Returns whether closing markup tags should be automatically completed. * This method only returns <code>true</code> if * {@link #getLanguageIsMarkup()} also returns <code>true</code>. * * @return Whether markup closing tags should be automatically completed. * @see #getLanguageIsMarkup() */ public boolean getCompleteMarkupCloseTags() { // TODO: Remove terrible dependency on AbstractMarkupTokenMaker return getLanguageIsMarkup() && ((AbstractMarkupTokenMaker)tokenMaker).getCompleteCloseTags(); }
/** * Returns whether closing markup tags should be automatically completed. * This method only returns <code>true</code> if * {@link #getLanguageIsMarkup()} also returns <code>true</code>. * * @return Whether markup closing tags should be automatically completed. * @see #getLanguageIsMarkup() */ public boolean getCompleteMarkupCloseTags() { // TODO: Remove terrible dependency on AbstractMarkupTokenMaker return getLanguageIsMarkup() && ((AbstractMarkupTokenMaker)tokenMaker).getCompleteCloseTags(); }
if (doc.getLanguageIsMarkup() && doc.getCompleteMarkupCloseTags() && !selection && rsta.getCloseMarkupTags() && dot>1) {
if (doc.getLanguageIsMarkup() && doc.getCompleteMarkupCloseTags() && !selection && rsta.getCloseMarkupTags() && dot>1) {