getBreakpointManager().setEnabled(breakpoint, true); } catch (CoreException e) { } } }
protected IBreakpointManager getBreakpointManager() { return DebugPlugin.getDefault().getBreakpointManager();
					getBreakpointManager().setEnabled(breakpoint, true);				} catch (CoreException e) {				}			}		}	}	/**	 * @see IAction	 */	public void run() {		run(null);	}	protected int hitCountDialog(IMarker marker) {		String title= DebugUIUtils.getResourceString(DIALOG_TITLE);		String message= DebugUIUtils.getResourceString(DIALOG_MESSAGE);		IInputValidator validator= new IInputValidator() {			int hitCount= -1;			public String isValid(String value) {				try {					hitCount= Integer.valueOf(value).intValue();				} catch (NumberFormatException nfe) {					hitCount= -1;				}				if (hitCount < 0) {					String msg= DebugUIUtils.getResourceString(DIALOG_INVALID);					return msg;				}				//no error				return null;			}		};		int currentHitCount= JDIDebugModel.getHitCount(marker);		String initialValue;		if (currentHitCount > 0) {			initialValue= Integer.toString(currentHitCount);		} else {			initialValue= INITIAL_VALUE;		}		Shell activeShell= JavaPlugin.getActiveWorkbenchWindow().getShell();		InputDialog dialog= new InputDialog(activeShell, title, message, initialValue, validator);		if (dialog.open() != dialog.OK) {			return -1;		}		return Integer.parseInt(dialog.getValue());	}	/**	 * @see IActionDelegate	 */	public void selectionChanged(IAction action, ISelection sel) {		if (sel instanceof IStructuredSelection) {			fCurrentSelection= (IStructuredSelection) sel;			Object[] elements= fCurrentSelection.toArray();			action.setEnabled(elements.length == 1 && isEnabledFor(elements[0]));		}	}	/**	 * @see IViewActionDelegate	 */	public void init(IViewPart view) {	}	protected IStructuredSelection getStructuredSelection() {		return fCurrentSelection;	}	public boolean isEnabledFor(Object element) {		try {			return element instanceof IMarker && ((IMarker) element).isSubtypeOf(IJavaDebugConstants.JAVA_LINE_BREAKPOINT);		} catch (CoreException ce) {			return false;		}	}}