Package org.eclipse.php.internal.debug.core.sourcelookup

Examples of org.eclipse.php.internal.debug.core.sourcelookup.PHPSourceLookupDirector


  private void createLaunch(DBGpSession session) throws CoreException {
    boolean stopAtFirstLine = PHPProjectPreferences
        .getStopAtFirstLine(null);
    DBGpTarget target = null;
    PathMapper mapper = null;
    PHPSourceLookupDirector srcLocator = new PHPSourceLookupDirector();
    srcLocator.setSourcePathComputer(DebugPlugin
        .getDefault()
        .getLaunchManager()
        .getSourcePathComputer(
            "org.eclipse.php.debug.core.sourcePathComputer.php")); //$NON-NLS-1$
    ILaunchConfigurationType type = null;
    ILaunchManager lm = DebugPlugin.getDefault().getLaunchManager();

    if (session.getSessionId() == null) {
      // web launch
      type = lm
          .getLaunchConfigurationType(IPHPDebugConstants.PHPServerLaunchType);
    } else {
      // cli launch
      type = lm
          .getLaunchConfigurationType(IPHPDebugConstants.PHPEXELaunchType);
    }

    ILaunchConfiguration launchConfig = type.newInstance(null,
        PHPDebugCoreMessages.XDebugMessage_remoteSessionTitle);
    srcLocator.initializeDefaults(launchConfig);
    srcLocator.initializeParticipants();
    ILaunch remoteLaunch = new Launch(launchConfig,
        ILaunchManager.DEBUG_MODE, srcLocator);
    boolean multiSession = XDebugPreferenceMgr.useMultiSession();

    if (session.getSessionId() == null && !multiSession) {
View Full Code Here


      if (pe != null) {
        Object container = pe.getContainer();
        if (container != null && container instanceof IResource) {
          IResource res = (IResource) container;
          IProject prj = res.getProject();
          PHPSourceLookupDirector dir = (PHPSourceLookupDirector) getLaunch()
              .getSourceLocator();
          // ISourceContainer[] containers = new ISourceContainer[]
          // {new ProjectSourceContainer(prj, false)};
          ISourceContainer[] containers = new ISourceContainer[] { new PHPCompositeSourceContainer(
              prj, null) };
          dir.setSourceContainers(containers);
        }
      } else {
        // either no file was found, or the user pressed the stop
        // debugger
        if (isTerminated() == false) {
View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.debug.core.sourcelookup.PHPSourceLookupDirector

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.