blob: 0960b27c8b12abab09afbfb8a9872f73f5961f77 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009, 2016 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jdt.internal.debug.ui.breakpoints;
import org.eclipse.jdt.debug.ui.breakpoints.JavaBreakpointConditionEditor;
import org.eclipse.jdt.internal.debug.ui.JDIDebugUIPlugin;
import org.eclipse.swt.widgets.Composite;
/**
* Watchpoint detail pane. Suspend on access or modification.
*
* @since 3.6
*/
public class MethodBreakpointDetailPane extends AbstractDetailPane {
/**
* Identifier for this detail pane editor
*/
public static final String DETAIL_PANE_METHOD_BREAKPOINT = JDIDebugUIPlugin.getUniqueIdentifier() + ".DETAIL_PANE_METHOD_BREAKPOINT"; //$NON-NLS-1$
public MethodBreakpointDetailPane() {
super(BreakpointMessages.StandardBreakpointDetailPane_0, BreakpointMessages.StandardBreakpointDetailPane_0, DETAIL_PANE_METHOD_BREAKPOINT);
addAutosaveProperties(new int[]{
StandardJavaBreakpointEditor.PROP_HIT_COUNT_ENABLED,
StandardJavaBreakpointEditor.PROP_SUSPEND_POLICY,
StandardJavaBreakpointEditor.PROP_TRIGGER_POINT,
MethodBreakpointEditor.PROP_ENTRY,
MethodBreakpointEditor.PROP_EXIT,
JavaBreakpointConditionEditor.PROP_CONDITION_ENABLED,
JavaBreakpointConditionEditor.PROP_CONDITION_SUSPEND_POLICY
});
}
/* (non-Javadoc)
* @see org.eclipse.jdt.internal.debug.ui.breakpoints.AbstractDetailPane#createEditor(org.eclipse.swt.widgets.Composite)
*/
@Override
protected AbstractJavaBreakpointEditor createEditor(Composite parent) {
return new CompositeBreakpointEditor(new AbstractJavaBreakpointEditor[]
{new MethodBreakpointEditor(), new JavaBreakpointConditionEditor(null)});
}
}