/** * Constructs a new launch configuration dialog on the given * parent shell. * * @param shell the parent shell * @param selection the selection used to initialize this dialog, typically the * current workbench selection * @param group launch group */ public LaunchConfigurationPropertiesDialog(Shell shell, ILaunchConfiguration launchConfiguration, LaunchGroupExtension group) { super(shell, group); fLaunchConfiguration = launchConfiguration; DebugPlugin.getDefault().getLaunchManager().addLaunchConfigurationListener(this); }
/** * Creates a new launch history for the given launch group */ public LaunchHistory(ILaunchGroup group) { fGroup = group; ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager(); manager.addLaunchListener(this); manager.addLaunchConfigurationListener(this); fgLaunchHistoryInstances.add(this); }
/** * Constructs a new launch configuration dialog on the given * parent shell. * * @param shell the parent shell * @param selection the selection used to initialize this dialog, typically the * current workbench selection * @param reservednames a set of names of virtual launch configurations that need to be considered * when configuration names are generated * @param group launch group */ public LaunchConfigurationPropertiesDialog(Shell shell, ILaunchConfiguration launchConfiguration, LaunchGroupExtension group, Set<String> reservednames) { super(shell, group); fLaunchConfiguration = launchConfiguration; DebugPlugin.getDefault().getLaunchManager().addLaunchConfigurationListener(this); fReservedNames = reservednames; }
public void addListener() { if (fLaunchConfigurationListener == null) { fLaunchConfigurationListener = new LaunchConfigurationListener(); } DebugPlugin.getDefault().getLaunchManager() .addLaunchConfigurationListener( fLaunchConfigurationListener); }
/** * Sets the launch configuration associated with this source lookup * director. If the given configuration is a working copy, this director * will respond to changes the working copy. If the given configuration * is a persisted launch configuration, this director will respond to changes * in the persisted launch configuration. * * @param configuration launch configuration to associate with this * source lookup director, or <code>null</code> if none */ protected void setLaunchConfiguration(ILaunchConfiguration configuration) { fConfig = configuration; ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager(); launchManager.addLaunchConfigurationListener(this); launchManager.addLaunchListener(this); }
/** * This method is called upon plug-in activation */ public void start(BundleContext context) throws Exception { super.start(context); SQLToolsProfileListenersManager pManager = SQLToolsProfileListenersManager.getInstance(); _toolsLaunchProfileListener = new SQLToolsLaunchProfileListener(); pManager.addProfileListener(_toolsLaunchProfileListener); DebugPlugin.getDefault().getLaunchManager().addLaunchConfigurationListener(LaunchConfigurationParamsHistoryListener.getInstance()); }
/** * Constructs a launch with the specified attributes. * * @param launchConfiguration the configuration that was launched * @param mode the mode of this launch - run or debug (constants * defined by <code>ILaunchManager</code>) * @param locator the source locator to use for this debug session, or * <code>null</code> if not supported */ public Launch(ILaunchConfiguration launchConfiguration, String mode, ISourceLocator locator) { fConfiguration = launchConfiguration; setSourceLocator(locator); fMode = mode; fSuppressChange = false; getLaunchManager().addLaunchListener(this); getLaunchManager().addLaunchConfigurationListener(this); }
public static DefaultExternalLaunchConfigurationManager createAndRegister() { DefaultExternalLaunchConfigurationManager manager = new DefaultExternalLaunchConfigurationManager(); DebugPlugin.getDefault().getLaunchManager().addLaunchConfigurationListener(manager.launchConfigurationListener); CorePlugin.listenerRegistry().addEventListener(manager.launchConfigurationListener); return manager; }
/** * @see org.eclipse.debug.ui.AbstractDebugView#createViewer(org.eclipse.swt.widgets.Composite) */ @Override protected Viewer createViewer(Composite parent) { fTree = new LaunchConfigurationFilteredTree(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL, new PatternFilter(), fLaunchGroup, fFilters); fTree.createViewControl(); getLaunchManager().addLaunchConfigurationListener(this); LaunchConfigurationViewer viewer = fTree.getLaunchConfigurationViewer(); viewer.setLaunchConfigurationView(this); return viewer; }