Examples of DebugStepFilter


Examples of org.eclipse.php.internal.debug.core.preferences.stepFilters.DebugStepFilter

   * @see ITableLabelProvider#getColumnText(Object, int)
   */
  public String getColumnText(Object object, int column) {
    String text = ""; //$NON-NLS-1$
    if (column == 0) {
      DebugStepFilter filter = (DebugStepFilter) object;
      text = filter.getPath();
      if (filter.isReadOnly()) {
        text += PHPDebugUIMessages.FilterLabelProvider_readOnly;
      }
      return text;
    }
    return ""; //$NON-NLS-1$
View Full Code Here

Examples of org.eclipse.php.internal.debug.core.preferences.stepFilters.DebugStepFilter

  /**
   * @see ILabelProvider#getText(Object)
   */
  public String getText(Object element) {
    String text = ""; //$NON-NLS-1$
    DebugStepFilter filter = (DebugStepFilter) element;
    text = filter.getPath();
    if (filter.isReadOnly()) {
      text += PHPDebugUIMessages.FilterLabelProvider_readOnly;
    }
    return text;
  }
View Full Code Here

Examples of org.eclipse.php.internal.debug.core.preferences.stepFilters.DebugStepFilter

  /**
   * @see ITableLabelProvider#getColumnImage(Object, int)
   */
  public Image getColumnImage(Object object, int column) {
    DebugStepFilter filter = (DebugStepFilter) object;
    switch (filter.getType()) {
    case IStepFilterTypes.PHP_PROJECT:
      return PHPPluginImages.get(PHPPluginImages.IMG_OBJS_PHP_PROJECT);
    case IStepFilterTypes.PHP_PROJECT_FOLDER:
      return PHPPluginImages.get(PHPPluginImages.IMG_OBJS_PHP_FOLDER);
    case IStepFilterTypes.PHP_PROJECT_FILE:
View Full Code Here

Examples of org.eclipse.php.internal.debug.core.preferences.stepFilters.DebugStepFilter

*
* @author yaronm
*/
public class FilterViewerComparator extends WorkbenchViewerComparator {
  public int compare(Viewer viewer, Object e1, Object e2) {
    DebugStepFilter f1 = (DebugStepFilter) e1;
    DebugStepFilter f2 = (DebugStepFilter) e2;

    if ((f1.getType() == IStepFilterTypes.PHP_PROJECT)
        && (f2.getType() != (IStepFilterTypes.PHP_PROJECT))) {
      return 1;
    }

    if ((f1.getType() != IStepFilterTypes.PHP_PROJECT)
        && (f2.getType() == IStepFilterTypes.PHP_PROJECT)) {
      return 1;
    }

    ILabelProvider lprov = (ILabelProvider) ((ContentViewer) viewer)
        .getLabelProvider();
View Full Code Here

Examples of org.eclipse.php.internal.debug.core.preferences.stepFilters.DebugStepFilter

  }

  static DebugStepFilter showCreateStepFilterDialog(Shell parent,
      DebugStepFilter[] existingFilters) {
    CreateStepFilterDialog createStepFilterDialog = new CreateStepFilterDialog(
        parent, new DebugStepFilter(IStepFilterTypes.PATH_PATTERN,
            true, false, ""), existingFilters); //$NON-NLS-1$
    createStepFilterDialog.create();
    createStepFilterDialog.open();

    return createStepFilterDialog.filter;
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.