protected boolean ConditionDialog(PHPConditionalBreakpoint breakpoint) throws CoreException {
    IInputValidator validator =
        new IInputValidator() {
          public String isValid(String value) {
            return value;
          }
        };

    String currentCondition = breakpoint.getCondition();
    boolean enableCondition = breakpoint.isConditionEnabled();
    if (currentCondition.equals("")) // $NON-NLS-1$
    enableCondition = true;

    Shell activeShell = PHPDebugUIPlugin.getActiveWorkbenchShell();
    String title = MessageFormat.format(PHPDebugUIMessages.SetCondition_1, new Object[] {});
    String message = MessageFormat.format(PHPDebugUIMessages.EnterCondition_1, new Object[] {});
    SetConditionDialog dialog =
        new SetConditionDialog(
            activeShell, title, message, currentCondition, enableCondition, validator);
    if (dialog.open() != Window.OK) {
      return false;
    }
    String condition = dialog.getValue();
    enableCondition = dialog.isSetConditionEnabled();
    if (condition.equals("")) // $NON-NLS-1$
    enableCondition = false;
    breakpoint.setConditionWithEnable(enableCondition, condition);
    return true;
  }
 protected IStructuredSelection getCurrentSelection() {
   IWorkbenchPage page = PHPDebugUIPlugin.getActivePage();
   if (page != null) {
     ISelection selection = page.getSelection();
     if (selection instanceof IStructuredSelection) {
       return (IStructuredSelection) selection;
     }
   }
   return null;
 }