/** * Sets the token maker factory used by this document. * * @param tmf The <code>TokenMakerFactory</code> for this document. If * this is <code>null</code>, a default factory is used. */ public void setTokenMakerFactory(TokenMakerFactory tmf) { tokenMakerFactory = tmf!=null ? tmf : TokenMakerFactory.getDefaultInstance(); }
/** * Sets the token maker factory used by this document. * * @param tmf The <code>TokenMakerFactory</code> for this document. If * this is <code>null</code>, a default factory is used. */ public void setTokenMakerFactory(TokenMakerFactory tmf) { tokenMakerFactory = tmf!=null ? tmf : TokenMakerFactory.getDefaultInstance(); }
/** * Sets the token maker factory used by this document. * * @param tmf The <code>TokenMakerFactory</code> for this document. If * this is <code>null</code>, a default factory is used. */ public void setTokenMakerFactory(TokenMakerFactory tmf) { tokenMakerFactory = tmf!=null ? tmf : TokenMakerFactory.getDefaultInstance(); }
/** * Sets the token maker factory used by this document. * * @param tmf The <code>TokenMakerFactory</code> for this document. If * this is <code>null</code>, a default factory is used. */ public void setTokenMakerFactory(TokenMakerFactory tmf) { tokenMakerFactory = tmf!=null ? tmf : TokenMakerFactory.getDefaultInstance(); }
public TextEditorDemo() { JPanel cp = new JPanel(new BorderLayout()); AbstractTokenMakerFactory atmf = (AbstractTokenMakerFactory)TokenMakerFactory.getDefaultInstance(); atmf.putMapping("text/c3dg", "org.konte.ui.KonteRSTATokenMaker"); RSyntaxTextArea textArea = new RSyntaxTextArea(20, 60); textArea.setSyntaxEditingStyle("text/c3dg"); textArea.setCodeFoldingEnabled(true); RTextScrollPane sp = new RTextScrollPane(textArea); cp.add(sp); setContentPane(cp); setTitle("Text Editor Demo"); setDefaultCloseOperation(EXIT_ON_CLOSE); pack(); setLocationRelativeTo(null); }
this.editor.setPopupMenu(null); final AbstractTokenMakerFactory atmf = (AbstractTokenMakerFactory) TokenMakerFactory.getDefaultInstance(); atmf.putMapping("text/plantuml", "com.igormaznitsa.sciareto.ui.editors.PlantUmlTokenMaker");