Examples of printNormalMessage()


Examples of ro.redeul.google.go.ide.ui.GoToolWindow.printNormalMessage()

            Runtime rt = Runtime.getRuntime();
            Process proc = rt.exec(command, goEnv);
            OSProcessHandler handler = new OSProcessHandler(proc, null);
            toolWindow.attachConsoleViewToProcess(handler);
            toolWindow.printNormalMessage(String.format("%s -> %s%n", "Project dir", projectDir));
            toolWindow.printNormalMessage(String.format("%s%n", command));
            handler.startNotify();
        } catch (Exception e) {
            e.printStackTrace();
            Messages.showErrorDialog("Error while processing go env command.", "Error on go env");
        }
View Full Code Here

Examples of ro.redeul.google.go.ide.ui.GoToolWindow.printNormalMessage()

            Runtime rt = Runtime.getRuntime();
            Process proc = rt.exec(command, goEnv);
            OSProcessHandler handler = new OSProcessHandler(proc, null);
            toolWindow.attachConsoleViewToProcess(handler);
            toolWindow.printNormalMessage(String.format("%s -> %s%n", "Project dir", projectDir));
            toolWindow.printNormalMessage(String.format("%s%n", command));
            handler.startNotify();
        } catch (Exception e) {
            e.printStackTrace();
            Messages.showErrorDialog("Error while processing go env command.", "Error on go env");
View Full Code Here

Examples of ro.redeul.google.go.ide.ui.GoToolWindow.printNormalMessage()

            Runtime rt = Runtime.getRuntime();
            Process proc = rt.exec(command, goEnv);
            OSProcessHandler handler = new OSProcessHandler(proc, null);
            toolWindow.attachConsoleViewToProcess(handler);
            toolWindow.printNormalMessage(String.format("%s -> %s%n", "Project dir", projectDir));
            toolWindow.printNormalMessage(String.format("%s%n", command));
            handler.startNotify();
        } catch (Exception e) {
            e.printStackTrace();
            Messages.showErrorDialog("Error while processing go env command.", "Error on go env");
        }
View Full Code Here

Examples of ro.redeul.google.go.ide.ui.GoToolWindow.printNormalMessage()

            Runtime rt = Runtime.getRuntime();
            Process proc = rt.exec(command, goEnv, new File(projectDir));
            OSProcessHandler handler = new OSProcessHandler(proc, null);
            toolWindow.attachConsoleViewToProcess(handler);
            toolWindow.printNormalMessage(String.format("%s%n", StringUtil.join(command, " ")));
            toolWindow.showAndCreate(m_project);
            handler.startNotify();

            if (proc.waitFor() == 0) {
                VirtualFileManager.getInstance().syncRefresh();
View Full Code Here

Examples of ro.redeul.google.go.ide.ui.GoToolWindow.printNormalMessage()

            toolWindow.showAndCreate(m_project);
            handler.startNotify();

            if (proc.waitFor() == 0) {
                VirtualFileManager.getInstance().syncRefresh();
                toolWindow.printNormalMessage(String.format("%nFinished building project %s%n", execName));
            } else {
                toolWindow.printErrorMessage(String.format("%nCould't build project %s%n", execName));
                throw new CantRunException(String.format("Error while processing %s build command.", goExecName));
            }
        } catch (Exception e) {
View Full Code Here

Examples of ro.redeul.google.go.ide.ui.GoToolWindow.printNormalMessage()

                    @Override
                    public void run() {
                        String mainFileName = projectName.concat(".go");
                        mainPackage.checkCreateFile(mainFileName);
                        GoTemplatesFactory.createFromTemplate(mainPackage, "main", "main", mainFileName, GoTemplatesFactory.Template.GoAppMain);
                        toolWindow.printNormalMessage(String.format("%nFinished creating package %s from template.%n", packageName));
                        sourceRoots[0].refresh(true, true);
                    }
                });

            } else {
View Full Code Here

Examples of ro.redeul.google.go.ide.ui.GoToolWindow.printNormalMessage()

                            String[] command = GoSdkUtil.computeGoGetCommand(goExecName, "-u -v", packageURL);
                            Runtime rt = Runtime.getRuntime();
                            Process proc = rt.exec(command, goEnv, new File(projectDir));
                            OSProcessHandler handler = new OSProcessHandler(proc, null);
                            toolWindow.attachConsoleViewToProcess(handler);
                            toolWindow.printNormalMessage(String.format("%s%n", StringUtil.join(command, " ")));
                            toolWindow.show();
                            handler.startNotify();
                            if (proc.waitFor() == 0) {
                                toolWindow.printNormalMessage(String.format("%nFinished go get package %s%n", packageURL));
                            } else {
View Full Code Here

Examples of ro.redeul.google.go.ide.ui.GoToolWindow.printNormalMessage()

                            toolWindow.attachConsoleViewToProcess(handler);
                            toolWindow.printNormalMessage(String.format("%s%n", StringUtil.join(command, " ")));
                            toolWindow.show();
                            handler.startNotify();
                            if (proc.waitFor() == 0) {
                                toolWindow.printNormalMessage(String.format("%nFinished go get package %s%n", packageURL));
                            } else {
                                toolWindow.printErrorMessage(String.format("%nCould't go get package %s%n", packageURL));
                            }
                            sourceRoots[0].refresh(true, true);
View Full Code Here

Examples of ro.redeul.google.go.ide.ui.GoToolWindow.printNormalMessage()

            Runtime rt = Runtime.getRuntime();
            Process proc = rt.exec(command, goEnv, new File(projectDir));
            OSProcessHandler handler = new OSProcessHandler(proc, null);
            toolWindow.attachConsoleViewToProcess(handler);
            toolWindow.printNormalMessage(String.format("%s%n", command));
            toolWindow.showAndCreate(myProject);
            handler.startNotify();

            if (proc.waitFor() == 0) {
                ApplicationManager.getApplication().invokeLater(new Runnable() {
View Full Code Here

Examples of ro.redeul.google.go.ide.ui.GoToolWindow.printNormalMessage()

                    @Override
                    public void run() {
                        VirtualFileManager.getInstance().syncRefresh();
                    }
                });
                toolWindow.printNormalMessage(String.format("%nFinished running go vet on project %s%n", projectDir));
            } else {
                toolWindow.printErrorMessage(String.format("%nCouldn't vet project %s%n", projectDir));
            }
        } catch (Exception e) {
            toolWindow.printErrorMessage(String.format("Error while processing %s vet command.%n", goExecName));
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.