Examples of addDocumentListener()


Examples of com.atolsystems.atolutilities.LoggingWindow.addDocumentListener()

        Component c = scroll.getViewport().getComponents()[0];
        if (c instanceof LoggingWindow) {
            LoggingWindow log = (LoggingWindow) c;
            TabHighlighter th = new TabHighlighter(scroll, color, insert,remove,update);
            tabHighlighters.add(th);
            log.addDocumentListener(th);
        } else {
            throw new RuntimeException("not implemented yet");
        }
    }
View Full Code Here

Examples of com.intellij.openapi.editor.Document.addDocumentListener()

        updateEditorActions(textEditor);
        Document document = textEditor.getEditor().getDocument();

        int documentTracking = document.hashCode();
        if (document.hashCode() != sourceCodeFile.getDocumentHashCode()) {
            document.addDocumentListener(sourceCodeFile);
            sourceCodeFile.setDocumentHashCode(documentTracking);
        }

        Icon icon = getIcon();
        if (icon != null) {
View Full Code Here

Examples of com.intellij.openapi.editor.Document.addDocumentListener()

                new TextContentTypeComboBoxAction(this));
        actionsPanel.add(actionToolbar.getComponent(), BorderLayout.WEST);

        String text = readUserValue();
        Document document = EditorFactory.getInstance().createDocument(text == null ? "" : StringUtil.removeCharacter(text, '\r'));
        document.addDocumentListener(documentListener);

        editor = (EditorEx) EditorFactory.getInstance().createEditor(document, project, userValueHolder.getContentType().getFileType(), false);
        editor.setEmbeddedIntoDialogWrapper(true);
        editor.getContentComponent().setFocusTraversalKeysEnabled(false);
View Full Code Here

Examples of com.mucommander.ui.text.SizeConstrainedDocument.addDocumentListener()

        octalPermTextField.setDocument(doc);
        // Initializes the field's value
        updateOctalPermTextField();

        if(canSetPermission) {
            doc.addDocumentListener(this);
        }
        // Disable text field if no permission bit can be set
        else {
            octalPermTextField.setEnabled(false);
        }
View Full Code Here

Examples of com.qspin.qtaste.ui.jedit.NonWrappingTextPane.addDocumentListener()

                    }
                    textPane.setTestCasePane(this);

                    editorTabbedPane.addTab(f.getName(), null, sp, absolutePath);
                    editorTabbedPane.setSelectedIndex(editorTabbedPane.getTabCount() - 1);
                    textPane.addDocumentListener();
                    textPane.addPropertyChangeListener("isModified", new PropertyChangeListener() {

                        public void propertyChange(PropertyChangeEvent evt) {
                            if (evt.getNewValue().equals(true)) {
                                String currentTitle = editorTabbedPane.getTitleAt(editorTabbedPane.getSelectedIndex());
View Full Code Here

Examples of javax.swing.text.AbstractDocument.addDocumentListener()

      BoxLayout box = new BoxLayout(enterLineNumberPane, BoxLayout.LINE_AXIS);
      enterLineNumberPane.setLayout(box);
      lineNumberField = new JTextField(16);
      lineNumberField.setText("" + lineNumber);
      AbstractDocument doc = (AbstractDocument) lineNumberField.getDocument();
      doc.addDocumentListener(listener);
      doc.setDocumentFilter(new GoToDocumentFilter());
      enterLineNumberPane.add(new JLabel(s_stringMgr.getString("syntax.SquirrelGoToDialog.LineNumber")));
      enterLineNumberPane.add(lineNumberField);

      // Make a panel containing the OK and Cancel buttons.
View Full Code Here

Examples of javax.swing.text.DefaultStyledDocument.addDocumentListener()

        doc.setDocumentFilter(new GroovyFilter(doc));
        textEditor.setDocument(doc);

        // add a document listener, to hint whether the line number gutter has to be repainted
        // when the number of lines changes
        doc.addDocumentListener(new DocumentListener() {
            public void insertUpdate(DocumentEvent documentEvent) {
                documentChangedSinceLastRepaint = true;
            }

            public void removeUpdate(DocumentEvent documentEvent) {
View Full Code Here

Examples of javax.swing.text.DefaultStyledDocument.addDocumentListener()

        // add the undo actions
        undoManager.addPropertyChangeListener(undoAction);
        undoManager.addPropertyChangeListener(redoAction);

        doc.addDocumentListener(undoAction);
        doc.addDocumentListener(redoAction);

        InputMap im = textEditor.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW);
        KeyStroke ks = KeyStroke.getKeyStroke(KeyEvent.VK_Z, InputEvent.CTRL_MASK, false);
        im.put(ks, StructuredSyntaxResources.UNDO);
View Full Code Here

Examples of javax.swing.text.DefaultStyledDocument.addDocumentListener()

        // add the undo actions
        undoManager.addPropertyChangeListener(undoAction);
        undoManager.addPropertyChangeListener(redoAction);

        doc.addDocumentListener(undoAction);
        doc.addDocumentListener(redoAction);

        InputMap im = textEditor.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW);
        KeyStroke ks = KeyStroke.getKeyStroke(KeyEvent.VK_Z, InputEvent.CTRL_MASK, false);
        im.put(ks, StructuredSyntaxResources.UNDO);
        ActionMap am = textEditor.getActionMap();
View Full Code Here

Examples of javax.swing.text.DefaultStyledDocument.addDocumentListener()

        doc.setDocumentFilter(new GroovyFilter(doc));
        textEditor.setDocument(doc);

        // add a document listener, to hint whether the line number gutter has to be repainted
        // when the number of lines changes
        doc.addDocumentListener(new DocumentListener() {
            public void insertUpdate(DocumentEvent documentEvent) {
                documentChangedSinceLastRepaint = true;
            }

            public void removeUpdate(DocumentEvent documentEvent) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.