Examples of IOConsole


Examples of org.eclipse.ui.console.IOConsole


    @Override
    public void createPartControl(Composite parent)
    {
        console = new IOConsole("Runtime Log", LogViewerPlugin.getImageDescriptor("jsbook_obj.gif"));
        console.setTabWidth(4);
       
        textConsoleViewer = new TextConsoleViewer(parent, console);
        textConsoleViewer.getTextWidget().setEditable(false);
       
View Full Code Here

Examples of org.eclipse.ui.console.IOConsole

  /**
   * Called by the framework to open the view.
   */
  public void createPartControl(Composite parent) {
    ioConsole = new IOConsole("Crystal User Console", ImageDescriptor.getMissingImageDescriptor());
    viewer = new TextConsoleViewer(parent, ioConsole);
    viewer.setInput(getViewSite());
   
    ioConsoleOutputStream = ioConsole.newOutputStream();
   
View Full Code Here

Examples of org.eclipse.ui.console.IOConsole

    try {
      dbgpService = DLTKDebugPlugin.getDefault().getDbgpService();

      IScriptDebugTarget target = new ScriptDebugTarget("org.apache.uima.ruta.ide.debug.rutaModel",
              dbgpService, "hello", launch, null);
      IOConsole cs = new IOConsole("aa", null);
      ScriptStreamProxy proxy = new ScriptStreamProxy(cs);
      target.setStreamProxy(proxy);
      launch.addDebugTarget(target);
      final ISourceLocator sourceLocator = launch.getSourceLocator();
      final RutaSourceLookupDirector l = new RutaSourceLookupDirector();
View Full Code Here

Examples of org.eclipse.ui.console.IOConsole

      }

      public void consolesAdded(IConsole[] consoles) {
        for (IConsole c : consoles) {
          if (c instanceof IOConsole) {
            final IOConsole p = (IOConsole) c;
            Object attribute = p
                .getAttribute("org.eclipse.debug.ui.ATTR_CONSOLE_PROCESS");
            if (attribute != null) {
              IProcess pr = (IProcess) attribute;
              ILaunch launch = pr.getLaunch();
              ILaunchConfiguration launchConfiguration = launch
                  .getLaunchConfiguration();
              Map<?, ?> attributes = null;
              try {
                attributes = launchConfiguration
                    .getAttributes();
              } catch (CoreException e1) {
                Activator.log(e1);
                return;
              }
              final String project = (String) attributes
                  .get(ORG_ECLIPSE_JDT_LAUNCHING_PROJECT_ATTR);

              try {
                ILaunchConfigurationType type = launchConfiguration
                    .getType();
                String identifier = type.getIdentifier();
                if (identifier
                    .equals(COM_GOOGLE_GDT_ECLIPSE_SUITE_WEBAPP)) {
                  p.getDocument().addDocumentListener(
                      new IDocumentListener() {

                        public void documentChanged(
                            DocumentEvent event) {
                          String mark = "The server is running at ";
                          int indexOf = event
                              .getText().indexOf(
                                  mark);
                          if (indexOf != -1) {
                            String substring = event
                                .getText()
                                .substring(
                                    indexOf
                                        + mark.length());
                            int lastIndexOf = substring
                                .lastIndexOf(':');
                            if (lastIndexOf != -1) {
                              String substring2 = substring
                                  .substring(lastIndexOf + 1);
                              int lastIndexOf2 = substring2
                                  .indexOf('/');
                              if (lastIndexOf2 != -1) {
                                substring2 = substring2
                                    .substring(
                                        0,
                                        lastIndexOf2);
                              }
                             
                              int port = Integer
                                  .parseInt(substring2);
                              knownLaucnhes.put(
                                  project,
                                  port);
                              p.getDocument()
                                  .removeDocumentListener(
                                      this);
                            }
                          }
View Full Code Here

Examples of org.eclipse.ui.console.IOConsole

      dbgpService = DLTKDebugPlugin.getDefault().getDbgpService();

      IScriptDebugTarget target = new ScriptDebugTarget(
              "org.apache.uima.ruta.ide.debug.rutaModel", dbgpService, "hello", launch,
              null);
      IOConsole cs = new IOConsole("aa", null);
      ScriptStreamProxy proxy = new ScriptStreamProxy(cs);
      target.setStreamProxy(proxy);
      launch.addDebugTarget(target);
      final ISourceLocator sourceLocator = launch.getSourceLocator();
      final RutaSourceLookupDirector l = new RutaSourceLookupDirector();
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.