Package org.syntax.jedit

Examples of org.syntax.jedit.JEditTextArea$FocusHandler


          InspectItem item = ( InspectItem )tn.getUserObject();

          partTabs.setSelectedIndex( item.getTabIndex() );
          statusBar.setInfo( item.getDescription() );

          JEditTextArea editor = editors.get( item.getTabIndex() );
          int lineNumber = item.getLineNumber();
          if( lineNumber > 0 && editor.getLineStartOffset( lineNumber ) >= 0 )
          {
            editor.setCaretPosition( editor.getLineStartOffset( lineNumber ) );
          }
          else
          {
            editor.setCaretPosition( 0 );
          }
        }

        tree.scrollPathToVisible( newLeadSelectionPath );
        tree.expandPath( newLeadSelectionPath );
View Full Code Here


          InspectItem item = ( InspectItem )tn.getUserObject();

          partTabs.setSelectedIndex( item.getTabIndex() );
          statusBar.setInfo( item.getDescription() );

          JEditTextArea editor = editors.get( item.getTabIndex() );
          int lineNumber = item.getLineNumber();
          if( lineNumber > 0 && editor.getLineStartOffset( lineNumber ) >= 0 )
          {
            editor.setCaretPosition( editor.getLineStartOffset( lineNumber ) );
          }
          else
          {
            editor.setCaretPosition( 0 );
          }
        }

        tree.scrollPathToVisible( newLeadSelectionPath );
        tree.expandPath( newLeadSelectionPath );
View Full Code Here

    /**
     * Creates and returns a JEdit text component with syntax highlighing
     */
    public static JEditTextArea createJEditTextArea() {
        JEditTextArea area = new JEditTextAreaUndoable();
        if (OperatingSystem.getOS() == OperatingSystem.MAC_OS_X) {
            area.setInputHandler(new MacInputHandler());
        }

        return area;
    }
View Full Code Here

public class OSXWidgetFactory extends DefaultWidgetFactory {

    @Override
    public JEditTextArea createJEditTextArea() {
        JEditTextArea area = super.createJEditTextArea();
        area.setInputHandler(new MacInputHandler());
        return area;
    }
View Full Code Here

    defaults.eolMarkers = false;
    defaults.lineHighlight = false;
    defaults.caretVisible = false;
    defaults.cols = 40;
    defaults.rows = 16;
    textArea = new JEditTextArea(defaults);
    textArea.setEditable(false);
    textArea.setBorder(UIManager.getBorder("TextField.border"));

    logUtil = new LogUtil(LogUtil.DEFAULT_LOGGER_NAMES);
    logHandler = new JEditTextAreaHandler(textArea, new LogFormatter());
View Full Code Here

public class OSXWidgetFactory extends DefaultWidgetFactory {

    @Override
    public JEditTextArea createJEditTextArea() {
        JEditTextArea area = super.createJEditTextArea();
        area.setInputHandler(new MacInputHandler());
        return area;
    }
View Full Code Here

TOP

Related Classes of org.syntax.jedit.JEditTextArea$FocusHandler

Copyright © 2018 www.massapicom. 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.