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

Examples of org.eclipse.php.internal.debug.core.preferences.PHPexes


  public void setDefaults(final ILaunchConfigurationWorkingCopy configuration) {
    try {
      String executableLocation = configuration.getAttribute(
          IPHPDebugConstants.ATTR_EXECUTABLE_LOCATION, ""); //$NON-NLS-1$
      if (executableLocation.equals("")) { //$NON-NLS-1$
        PHPexes phpExes = PHPexes.getInstance();
        final PHPexeItem phpExeItem = phpExes
            .getDefaultItem(PHPDebugPlugin.getCurrentDebuggerId());
        if (phpExeItem == null)
          return;
        executableLocation = phpExeItem.getExecutable().toString();
        configuration.setAttribute(
View Full Code Here


          PHPDebugCorePreferenceNames.PHP_DEBUGGER_ID,
          PHPDebugPlugin.getCurrentDebuggerId());
    } catch (final CoreException ce) {
      Logger.log(Logger.ERROR, "Error reading configuration", ce); //$NON-NLS-1$
    }
    final PHPexes exes = PHPexes.getInstance();
    PHPexeItem phpexe;
    if (location != null && location.length() > 0) {
      phpexe = exes.getItemForFile(location, iniPath);
    } else {
      phpexe = exes.getDefaultItem(PHPDebugPlugin.getCurrentDebuggerId());
    }
    // Check that this debugger still exists. If not, take the defaults.
    if (!PHPDebuggersRegistry.getDebuggersIds().contains(debuggerID)) {
      debuggerID = PHPDebugPlugin.getCurrentDebuggerId();
      phpexe = exes.getDefaultItem(debuggerID);
    }

    if (!DebuggerCommunicationDaemon.ZEND_DEBUGGER_ID.equals(debuggerID)) {
      setEnableDebugInfoOption(false);
    }
View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.debug.core.preferences.PHPexes

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.