Package org.openide.windows

Examples of org.openide.windows.InputOutput.select()


     */
    public static void output(String name, String mess, Color c, OutputListener listener) {
        boolean select = getIO(name) || !outputMap.contains(name);
        InputOutput io = IOProvider.getDefault().getIO(name, select);
        if (select) {
            io.select();
        }
        io.setFocusTaken(false);
        if (mess == null || mess.trim().isEmpty()) {
            if (listener == null) {
                io.getOut().println(mess);
View Full Code Here


    private void showError(Exception e) {
        InputOutput io;
        OutputWriter outputWriter;
        io = IOProvider.getDefault().getIO("Cucumber", false);
        io.select();
        outputWriter = io.getOut();
        e.printStackTrace(outputWriter);
        // This seems to block the IDE
        // JOptionPane.showMessageDialog(null, e, e.getMessage(), JOptionPane.ERROR_MESSAGE);
    }
View Full Code Here

    public static OutputWriter getOutputWriter(String title, Action[] actions) {
        // get an output window tab
        //io = IOProvider.getDefault().getIO("Cucumber", false);
        InputOutput io = IOProvider.getDefault().getIO("Cucumber: " + title, actions);
        io.select();
        return io.getOut();
    }

}
View Full Code Here

                    NbBundle.getMessage( NodeJSProject.class, "RUNNING_NPM_INSTALL", getName() ) ); //NOI18N
            handle.start();
            try {
                String result = Npm.getDefault().run( FileUtil.toFile( getProjectDirectory() ), "install" ); //NOI18N
                InputOutput io = IOProvider.getDefault().getIO( getName() + " - npm install", true ); //NOI18N
                io.select();
                io.getOut().print( result );
                io.getOut().close();
                checkTask.schedule( 3000 );
            } finally {
                handle.finish();
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.