Examples of PHPExeInfo


Examples of org.eclipse.php.internal.debug.core.PHPExeUtil.PHPExeInfo

    this.loadDefaultINI = loadDefaultINI;
    detectFromPHPExe();
  }

  protected void detectFromPHPExe() {
    PHPExeInfo phpInfo;
    try {
      phpInfo = PHPExeUtil.getPHPInfo(executable, false);
    } catch (PHPExeException e) {
      PHPDebugPlugin
          .logErrorMessage("Could not detect PHP executable info during PHP exe item creation: " //$NON-NLS-1$
              + e.getMessage());
      return;
    }
    if (name == null)
      name = phpInfo.getName();
    if (sapiType == null)
      sapiType = phpInfo.getSapiType();
    if (detectedConfig == null)
      detectedConfig = phpInfo.getSystemINIFile();
    if (version == null)
      version = phpInfo.getVersion();
  }
View Full Code Here

Examples of org.eclipse.php.internal.debug.core.PHPExeUtil.PHPExeInfo

        dialog.setText(PHPDebugUIMessages.addPHPexeDialog_pickPHPRootDialog_message);
        String newPath = dialog.open();
        if (newPath != null) {
          fPHPExePath.setText(newPath);
          File executable = new File(newPath);
          PHPExeInfo phpExecInfo = getPHPInfo(executable);
          if (phpExecInfo != null) {
            if (fPHPexeName.getText().isEmpty()
                && phpExecInfo.getName() != null)
              fPHPexeName.setTextWithoutUpdate(phpExecInfo
                  .getName());
            if (phpExecInfo.getSapiType() != null)
              fSapiTypes.setText(phpExecInfo.getSapiType());
          }
        }
        updateItem();
      }
    });
View Full Code Here

Examples of org.eclipse.php.internal.debug.core.PHPExeUtil.PHPExeInfo

    if (!phpExeItem.getExecutable().exists()) {
      setMessage(PHPDebugUIMessages.addPHPexeDialog_locationNotExists,
          IMessageProvider.ERROR);
      return;
    }
    PHPExeInfo phpExecInfo = getPHPInfo(phpExeItem.getExecutable());
    if (phpExecInfo == null) {
      setMessage(PHPDebugUIMessages.PHPExeCompositeFragment_13,
          IMessageProvider.ERROR);
      return;
    }
    // Check whether the name already exists:
    if (existingItems != null) {
      for (PHPexeItem item : existingItems) {
        if (!item.getName().equals(initialName)
            && item.getName().equals(phpExeItem.getName())) {
          setMessage(
              PHPDebugUIMessages.addPHPexeDialog_duplicateName,
              IMessageProvider.ERROR);
          return;
        }
      }
    }
    // Check if SAPI type is provided
    if (phpExeItem.getSapiType().isEmpty()) {
      setMessage(PHPDebugUIMessages.PHPExeCompositeFragment_15,
          IMessageProvider.ERROR);
      return;
    }
    if (phpExecInfo.getSapiType() != null
        && !phpExeItem.getSapiType().equals(phpExecInfo.getSapiType())) {
      setMessage(MessageFormat.format(
          PHPDebugUIMessages.addPHPexeDialog_wrongSAPItype,
          phpExecInfo.getSapiType()), IMessageProvider.ERROR);
      return;
    }
    // Check INI file location
    if (phpExeItem.getINILocation() != null) {
      String iniLocationName = phpExeItem.getINILocation().getPath();
View Full Code Here

Examples of org.eclipse.php.internal.debug.core.PHPExeUtil.PHPExeInfo

    phpExeItem.setName(fPHPexeName.getText());
    phpExeItem.setDebuggerID(debuggersIds.get(fDebuggers
        .getSelectionIndex()));
    phpExeItem.setINILocation(new File(fPHPIni.getText()));
    phpExeItem.setSapiType(fSapiTypes.getText());
    PHPExeInfo phpExeInfo = getPHPInfo(phpExeItem.getExecutable());
    if (phpExeInfo != null)
      phpExeItem.setVersion(phpExeInfo.getVersion());
    // Validate all
    validate();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.