Examples of PHPexeItem


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

   */
  public PHPsComboBlock(boolean titleGrouped) {
    this.isTitled = titleGrouped;
    fDefaultDescriptor = new PHPexeDescriptor() {
      public String getDescription() {
        final PHPexeItem def = exes.getDefaultItem(PHPDebugPlugin
            .getCurrentDebuggerId());
        if (def != null)
          return def.getName()
              + " (" + def.getExecutable().toString() + ")"; //$NON-NLS-1$ //$NON-NLS-2$
        return PHPDebugUIMessages.PHPsComboBlock_2;
      }
    };
  }
View Full Code Here

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

    link.setFont(font);
    link
        .setText(PHPDebugUIMessages.PhpDebugPreferencePage_installedPHPsLink);
    link.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        PHPexeItem selected = getPHPexe();
        new ShowPHPsPreferences().run(null);
        fillWithWorkspacePHPexes();
        if (phpExecutables.contains(selected)) {
          String name = selected.getName()
              + " (" + selected.getExecutable().toString() + ")"; //$NON-NLS-1$ //$NON-NLS-2$
          fExecutablesCombo.select(fExecutablesCombo.indexOf(name));
        }
      }
    });
View Full Code Here

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

    // fill with PHPexes
    final List<PHPexeItem> standins = new ArrayList<PHPexeItem>();
    final PHPexeItem[] types = exes.getAllItems();
    if (types != null) {
      for (int i = 0; i < types.length; i++) {
        final PHPexeItem type = types[i];
        standins.add(type);
      }
    }
    setPHPexes(standins);
  }
View Full Code Here

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

   * Returns the location of the PHP executable that was selected.
   *
   * @return The executable's location.
   */
  public String getSelectedExecutablePath() {
    final PHPexeItem item = getPHPexe();
    if (item != null)
      return item.getExecutable().toString();
    return ""; //$NON-NLS-1$
  }
View Full Code Here

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

   * defined.
   *
   * @return The php ini location.
   */
  public String getSelectedIniPath() {
    final PHPexeItem item = getPHPexe();
    if (item != null) {
      if (item.getINILocation() != null) {
        return item.getINILocation().toString();
      }
    }
    return ""; //$NON-NLS-1$
  }
View Full Code Here

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

   * (non-Javadoc)
   *
   * @see org.eclipse.jface.viewers.ISelectionProvider#getSelection()
   */
  public ISelection getSelection() {
    final PHPexeItem vm = getPHPexe();
    if (vm == null)
      return new StructuredSelection();
    return new StructuredSelection(vm);
  }
View Full Code Here

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

    // now make an array of names
    String[] names = new String[phpExecutables.size()];
    final Iterator<PHPexeItem> iter = phpExecutables.iterator();
    int i = 0;
    while (iter.hasNext()) {
      final PHPexeItem item = iter.next();
      names[i] = item.getName()
          + " (" + item.getExecutable().toString() + ")"; //$NON-NLS-1$ //$NON-NLS-2$
      i++;
    }
    if (names.length == 0) {
      names = new String[] { PHPDebugUIMessages.PhpDebugPreferencePage_noExeDefined };
    }
    fExecutablesCombo.setItems(names);
    PHPexeItem defaultExe = exes.getDefaultItem(getSelectedDebuggerId());
    if (defaultExe != null) {
      String defaultName = defaultExe.getName()
          + " (" + defaultExe.getExecutable().toString() + ")"; //$NON-NLS-1$ //$NON-NLS-2$
      fExecutablesCombo.select(fExecutablesCombo.indexOf(defaultName));
    } else {
      fExecutablesCombo.select(0);
    }
  }
View Full Code Here

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

      }
    }
  }

  private void initDefaultPHP() {
    PHPexeItem realDefault = PHPexes.getInstance().getDefaultItem(
        PHPDebugPlugin.getCurrentDebuggerId());
    if (realDefault != null) {
      PHPexeItem[] phps = fPHPBlock.getPHPs();
      for (PHPexeItem fakePHP : phps) {
        if (fakePHP.equals(realDefault)) {
View Full Code Here

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

    fProfilesViewer
        .addSelectionChangedListener(new ISelectionChangedListener() {
          public void selectionChanged(SelectionChangedEvent event) {
            PHPVersion version = (PHPVersion) ((IStructuredSelection) event
                .getSelection()).getFirstElement();
            PHPexeItem jre = versionToDefaultItem.get(version);
            fJREsViewer.setInput(getCompatibleItems(allItems,
                version));
            if (jre != null) {
              fJREsViewer
                  .setCheckedElements(new Object[] { jre });
View Full Code Here

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

    /**
     * @see org.eclipse.jface.viewers.ILabelProvider#getText(java.lang.Object)
     */
    public String getText(Object element) {
      if (element instanceof PHPexeItem) {
        final PHPexeItem phpExe = (PHPexeItem) element;
        return phpExe.getName();
      }
      return element.toString();
    }
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.