org.eclipse.xtext.xtext.launcher
Class GenerateArtifactsLaunchShortcut

java.lang.Object
  extended by org.eclipse.xtext.xtext.launcher.GenerateArtifactsLaunchShortcut
All Implemented Interfaces:
org.eclipse.debug.ui.ILaunchShortcut

public class GenerateArtifactsLaunchShortcut
extends java.lang.Object
implements org.eclipse.debug.ui.ILaunchShortcut

Author:
Peter Friese - Initial contribution and API

Constructor Summary
GenerateArtifactsLaunchShortcut()
           
 
Method Summary
 void launch(org.eclipse.ui.IEditorPart editor, java.lang.String mode)
          Locates a launchable entity in the given active editor, and launches an application in the specified mode.
 void launch(org.eclipse.jface.viewers.ISelection selection, java.lang.String mode)
          Locates a launchable entity in the given selection and launches an application in the specified mode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenerateArtifactsLaunchShortcut

public GenerateArtifactsLaunchShortcut()
Method Detail

launch

public void launch(org.eclipse.jface.viewers.ISelection selection,
                   java.lang.String mode)
Description copied from interface: org.eclipse.debug.ui.ILaunchShortcut
Locates a launchable entity in the given selection and launches an application in the specified mode. This launch configuration shortcut is responsible for progress reporting as well as error handling, in the event that a launchable entity cannot be found, or launching fails.

Specified by:
launch in interface org.eclipse.debug.ui.ILaunchShortcut
Parameters:
selection - workbench selection
mode - one of the launch modes defined by the launch manager
See Also:
ILaunchManager

launch

public void launch(org.eclipse.ui.IEditorPart editor,
                   java.lang.String mode)
Description copied from interface: org.eclipse.debug.ui.ILaunchShortcut
Locates a launchable entity in the given active editor, and launches an application in the specified mode. This launch configuration shortcut is responsible for progress reporting as well as error handling, in the event that a launchable entity cannot be found, or launching fails.

Specified by:
launch in interface org.eclipse.debug.ui.ILaunchShortcut
Parameters:
editor - the active editor in the workbench
mode - one of the launch modes defined by the launch manager
See Also:
ILaunchManager