当前位置: 首页>>代码示例>>Java>>正文


Java ILaunchManager.addLaunchListener方法代码示例

本文整理汇总了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();
}
 
开发者ID:fabioz,项目名称:Pydev,代码行数:29,代码来源:PyUnitServer.java

示例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);
}
 
开发者ID:UBPL,项目名称:jive,代码行数:15,代码来源:ThreadColorManager.java

示例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);
    }
}
 
开发者ID:fabioz,项目名称:Pydev,代码行数:36,代码来源:BaseDebugView.java


注:本文中的org.eclipse.debug.core.ILaunchManager.addLaunchListener方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。