Tabnine Logo
ProcessConsole.getProcess
Code IndexAdd Tabnine to your IDE (free)

How to use
getProcess
method
in
org.eclipse.debug.internal.ui.views.console.ProcessConsole

Best Java code snippets using org.eclipse.debug.internal.ui.views.console.ProcessConsole.getProcess (Showing top 11 results out of 315)

origin: org.eclipse.platform/org.eclipse.ant.ui

public JavacMarkerCreator(TextConsole console, boolean useCustomMessage) {
  fConsole = console;
  fUseCustomMessage = useCustomMessage;
  if (fConsole instanceof ProcessConsole) {
    fProcess = ((ProcessConsole) fConsole).getProcess();
  }
}
origin: org.eclipse.platform/org.eclipse.debug.ui

protected IProcess getProcess() {
  return fConsole != null ? fConsole.getProcess() : null;
}
origin: org.eclipse.platform/org.eclipse.debug.ui

@Override
public void update() {
  IProcess process = fConsole.getProcess();
  setEnabled(process.canTerminate());
}
origin: org.eclipse.platform/org.eclipse.debug.ui

@Override
public void run() {
  IProcess process = fConsole.getProcess();
  List<ITerminate> targets = collectTargets(process);
  targets.add(process);
  DebugCommandService service = DebugCommandService.getService(fWindow);
  service.executeCommand(ITerminateHandler.class, targets.toArray(), null);
}
origin: org.eclipse.platform/org.eclipse.debug.ui

  protected ILaunch getLaunch() {
    if (fConsoleView == null) {
      return fLaunch;
    }
    // else get dynmically, as this action was created via plug-in XML view contribution
    IConsole console = fConsoleView.getConsole();
    if (console instanceof ProcessConsole) {
      ProcessConsole pconsole = (ProcessConsole) console;
      return pconsole.getProcess().getLaunch();
    }
    return null;
  }
}
origin: org.eclipse.platform/org.eclipse.debug.ui

/**
 * Returns the console for the given process, or <code>null</code> if none.
 *
 * @param process
 * @return the console for the given process, or <code>null</code> if none
 */
public IConsole getConsole(IProcess process) {
  IConsoleManager manager = ConsolePlugin.getDefault().getConsoleManager();
  IConsole[] consoles = manager.getConsoles();
  for (int i = 0; i < consoles.length; i++) {
    IConsole console = consoles[i];
    if (console instanceof ProcessConsole) {
      ProcessConsole pc = (ProcessConsole)console;
      if (pc.getProcess().equals(process)) {
        return pc;
      }
    }
  }
  return null;
}
origin: org.eclipse.platform/org.eclipse.debug.ui

/**
 * Notify listeners when name changes.
 *
 * @see org.eclipse.debug.core.IDebugEventSetListener#handleDebugEvents(org.eclipse.debug.core.DebugEvent[])
 */
@Override
public void handleDebugEvents(DebugEvent[] events) {
  for (int i = 0; i < events.length; i++) {
    DebugEvent event = events[i];
    if (event.getSource().equals(getProcess())) {
      if (event.getKind() == DebugEvent.TERMINATE) {
        closeStreams();
        DebugPlugin.getDefault().removeDebugEventListener(this);
      }
      resetName();
    }
  }
}
origin: org.eclipse.platform/org.eclipse.debug.ui

@Override
public void connect(TextConsole console) {
  if (console instanceof ProcessConsole) {
    fConsole = (ProcessConsole)console;
    IConsoleLineTracker[] lineTrackers = DebugUIPlugin.getDefault().getProcessConsoleManager().getLineTrackers(fConsole.getProcess());
    for (int i = 0; i < lineTrackers.length; i++) {
      lineTrackers[i].init(fConsole);
      addConsoleListener(lineTrackers[i]);
    }
    fConsole.addPropertyChangeListener(this);
  }
}
origin: org.eclipse.platform/org.eclipse.debug.ui

IProcess process = getProcess();
ILaunchConfiguration config = process.getLaunch().getLaunchConfiguration();
origin: org.eclipse.platform/org.eclipse.debug.ui

/**
 * Computes and returns the image descriptor for this console.
 *
 * @return an image descriptor for this console or <code>null</code>
 */
protected ImageDescriptor computeImageDescriptor() {
  ILaunchConfiguration configuration = getProcess().getLaunch().getLaunchConfiguration();
  if (configuration != null) {
    ILaunchConfigurationType type;
    try {
      type = configuration.getType();
      return DebugPluginImages.getImageDescriptor(type.getIdentifier());
    } catch (CoreException e) {
      DebugUIPlugin.log(e);
    }
  }
  return null;
}
origin: org.eclipse.platform/org.eclipse.debug.ui

@Override
public void init(IPageBookViewPage page, IConsole console) {
  fPage = page;
  fConsole = (ProcessConsole) console;
  fRemoveTerminated = new ConsoleRemoveLaunchAction(fConsole.getProcess().getLaunch());
  fRemoveAllTerminated = new ConsoleRemoveAllTerminatedAction();
  fTerminate = new ConsoleTerminateAction(page.getSite().getWorkbenchWindow(), fConsole);
  fStdOut = new ShowStandardOutAction();
  fStdErr = new ShowStandardErrorAction();
  fView = (IConsoleView) fPage.getSite().getPage().findView(IConsoleConstants.ID_CONSOLE_VIEW);
  DebugPlugin.getDefault().addDebugEventListener(this);
  DebugUITools.getDebugContextManager().getContextService(fPage.getSite().getWorkbenchWindow()).addDebugContextListener(this);
  // contribute to toolbar
  IActionBars actionBars = fPage.getSite().getActionBars();
  configureToolBar(actionBars.getToolBarManager());
  // create handler and submissions for EOF
  fEOFHandler = new EOFHandler();
}
org.eclipse.debug.internal.ui.views.consoleProcessConsolegetProcess

Popular methods of ProcessConsole

  • <init>
    Constructor
  • addHyperlink
  • addPatternMatchListener
  • addPropertyChangeListener
  • closeStreams
    cleanup method to close all of the open stream to this console
  • computeImageDescriptor
    Computes and returns the image descriptor for this console.
  • computeName
    Computes and returns the current name of this console.
  • connect
  • disposeStreams
    disposes the listeners for each of the stream associated with this console
  • getDocument
  • getEncoding
  • getInputStream
  • getEncoding,
  • getInputStream,
  • getName,
  • getStream,
  • newOutputStream,
  • removePatternMatchListener,
  • removePropertyChangeListener,
  • resetName,
  • setAttribute

Popular in Java

  • Running tasks concurrently on multiple threads
  • getExternalFilesDir (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • setContentView (Activity)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • JPanel (javax.swing)
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now