/**
 * Exception breakpoint detail pane.
 *
 * @since 3.6
 */
public class ExceptionBreakpointDetailPane extends AbstractDetailPane {

  /** Identifier for this detail pane editor */
  public static final String DETAIL_PANE_EXCEPTION_BREAKPOINT =
      JDIDebugUIPlugin.getUniqueIdentifier() + ".DETAIL_PANE_EXCEPTION_BREAKPOINT"; // $NON-NLS-1$

  public ExceptionBreakpointDetailPane() {
    super(
        BreakpointMessages.ExceptionBreakpointDetailPane_0,
        BreakpointMessages.ExceptionBreakpointDetailPane_0,
        DETAIL_PANE_EXCEPTION_BREAKPOINT);
    addAutosaveProperties(
        new int[] {
          StandardJavaBreakpointEditor.PROP_HIT_COUNT_ENABLED,
          StandardJavaBreakpointEditor.PROP_SUSPEND_POLICY,
          StandardJavaBreakpointEditor.PROP_TRIGGER_POINT,
          ExceptionBreakpointEditor.PROP_CAUGHT,
          ExceptionBreakpointEditor.PROP_UNCAUGHT,
          ExceptionBreakpointEditor.PROP_SUBCLASSES
        });
  }

  /* (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 ExceptionBreakpointEditor();
  }
}