Examples of OutputListener


Examples of com.joshondesign.arduino.common.OutputListener

        }
        //setup toolbar
        checkButton.setAction(actions.checkAction);
        runButton.setAction(actions.runAction);

        actions.addLogListener(new OutputListener() {

            @Override
            public void log(String string) {
                ((ConsoleTextPane)console).appendInfo(string);
            }
View Full Code Here

Examples of org.openide.windows.OutputListener

                        color = color.MAGENTA.darker().darker();
                    }
                      if (test.startsWith("midierror")) {
                        color = color.BLUE.darker().darker();
                    }
                    OutputHandler.output("Test", test, color, new OutputListener() {

                        public void outputLineSelected(OutputEvent oe) {
                            //throw new UnsupportedOperationException("Not supported yet.");
                        }
View Full Code Here

Examples of org.openide.windows.OutputListener

        // System.out.println("outNot supported yet.");
    }

    public List<ConvertedLine> convert(String line) {
        ConvertedLine k;
        OutputListener out = null;
        if (line.indexOf(": Warnung:") != -1) {
            out = this;
        }
        if (line.indexOf(": Fehler:") != -1) {
            out = this;
View Full Code Here

Examples of org.openide.windows.OutputListener

    public LineConvertor newLineConvertor () {
        return new LineConvertor() {
            @Override
            public List<ConvertedLine> convert ( String line ) {
                Matcher m = ERR_PATTERN.matcher( line );
                OutputListener ol = null;
                try {
                    if (m.find()) {
                        String clazz = m.group( 1 );
                        String path = m.group( 2 );
                        int lineNumber = Integer.parseInt( m.group( 3 ) );
View Full Code Here

Examples of org.openide.windows.OutputListener

        return matchStackTraceLine(line);
    }

    @Override
    public boolean tryConsumeLine(String line, OutputWriter output) throws IOException {
        OutputListener listener = matchStackTraceLine(line);
        if (listener != null) {
            output.println(line, listener, false);
            return true;
        }
        else {
View Full Code Here

Examples of org.openide.windows.OutputListener

        File file = new File(fileStr);
        if (!file.isFile()) {
            return false;
        }

        OutputListener outputListener = null;
        if (isBrowserFile(fileStr)) {
            try {
                URL url = Utilities.toURI(file).toURL();
                outputListener = OutputUrlConsumer.getUrlListener(url);
            } catch (MalformedURLException ex) {
View Full Code Here

Examples of org.openide.windows.OutputListener

                lineNumber = Integer.parseInt(otherInfo.substring(0, lineIndexSep).trim()) - 1;
            } catch (NumberFormatException ex) {
            }
        }

        OutputListener listener = OpenEditorOutputListener.tryCreateListener(file, lineNumber);
        if (listener == null) {
            LOGGER.log(Level.WARNING, "File displayed in the output disapeared: {0}", file);
            return false;
        }
View Full Code Here

Examples of org.openide.windows.OutputListener

    @Override
    public boolean tryConsumeLine(String line, OutputWriter output) throws IOException {
        for (String prefix: URL_PREFIXES) {
            final URL url = tryGetUrlWithPrefix(prefix, line);
            if (url != null) {
                output.println(line, new OutputListener() {
                    @Override
                    public void outputLineSelected(OutputEvent ev) {
                    }

                    @Override
View Full Code Here

Examples of org.openide.windows.OutputListener

    }

    public static OutputListener getUrlListener(final URL url) {
        ExceptionHelper.checkNotNullArgument(url, "url");

        return new OutputListener() {
            @Override
            public void outputLineSelected(OutputEvent ev) {
            }

            @Override
View Full Code Here

Examples of org.openide.windows.OutputListener

            public void run() {
                log.select();
                try {
                    OutputWriter out = log.getOut();

                    OutputListener listener = new OutputListener() {

                        public void outputLineAction(OutputEvent ev) {
                            try {
                                HtmlBrowser.URLDisplayer.getDefault().showURL(new URL(sURL));
                            } catch (IOException ex) {
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.