本文整理汇总了Java中org.eclipse.debug.core.ILaunchManager.addLaunchListener方法的典型用法代码示例。如果您正苦于以下问题:Java ILaunchManager.addLaunchListener方法的具体用法?Java ILaunchManager.addLaunchListener怎么用?Java ILaunchManager.addLaunchListener使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.debug.core.ILaunchManager
的用法示例。
在下文中一共展示了ILaunchManager.addLaunchListener方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: PyUnitServer
import org.eclipse.debug.core.ILaunchManager; //导入方法依赖的package包/类
/**
* As we need to be able to relaunch, we store the configuration and launch here (although the relaunch won't be
* actually done in this class, this is the place to get information on it).
*
* @param config used to get the configuration of the launch.
* @param launch the actual launch
* @throws IOException
*/
public PyUnitServer(PythonRunnerConfig config, ILaunch launch) throws IOException {
initializeDispatches();
port = SocketUtil.findUnusedLocalPorts(1)[0];
this.webServer = new WebServer(port);
XmlRpcServer serverToHandleRawInput = this.webServer.getXmlRpcServer();
serverToHandleRawInput.setHandlerMapping(new XmlRpcHandlerMapping() {
@Override
public XmlRpcHandler getHandler(String handlerName) throws XmlRpcNoSuchHandlerException, XmlRpcException {
return handler;
}
});
this.webServer.start();
ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
launchManager.addLaunchListener(this.launchListener);
this.launch = launch;
this.configuration = config.getLaunchConfiguration();
}
示例2: ThreadColorManager
import org.eclipse.debug.core.ILaunchManager; //导入方法依赖的package包/类
ThreadColorManager()
{
updateList = new LinkedList<IThreadColorListener>();
threadColors = new ArrayList<Color>();
targetToThreadColorsMap = new HashMap<IJiveDebugTarget, TargetThreadColors>();
final IPreferenceStore store = PreferencesPlugin.getDefault().getPreferenceStore();
store.addPropertyChangeListener(this);
final ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();
for (final ILaunch launch : manager.getLaunches())
{
launchChanged(launch);
}
manager.addLaunchListener(this);
}
示例3: createPartControl
import org.eclipse.debug.core.ILaunchManager; //导入方法依赖的package包/类
@Override
public void createPartControl(Composite parent) {
IViewSite viewSite = getViewSite();
if (viewSite != null) {
configureToolBar(viewSite);
}
parent.setLayout(new GridLayout(1, true));
viewer = new TreeViewer(parent);
provider = createContentProvider();
viewer.setContentProvider(provider);
viewer.setLabelProvider(new PyDebugModelPresentation(false));
GridDataFactory.fillDefaults().grab(true, true).applyTo(viewer.getTree());
MenuManager menuManager = new MenuManager();
Menu menu = menuManager.createContextMenu(viewer.getTree());
viewer.getTree().setMenu(menu);
IWorkbenchPartSite site = getSite();
site.registerContextMenu(menuManager, viewer);
site.setSelectionProvider(viewer);
this.parent = parent;
listener = createListener();
if (listener != null) {
DebugPlugin plugin = DebugPlugin.getDefault();
ILaunchManager launchManager = plugin.getLaunchManager();
launchManager.addLaunchListener(listener);
plugin.addDebugEventListener(listener);
}
}