blob: 6de0fd399a07e791c5c51ea9ba226e896f586f38 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.wst.jsdt.debug.internal.ui.breakpoints.details;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.wst.jsdt.debug.internal.ui.JavaScriptDebugUIPlugin;
import org.eclipse.wst.jsdt.debug.internal.ui.breakpoints.Messages;
import org.eclipse.wst.jsdt.debug.internal.ui.breakpoints.editors.AbstractJavaScriptBreakpointEditor;
import org.eclipse.wst.jsdt.debug.internal.ui.breakpoints.editors.CompositeBreakpointEditor;
import org.eclipse.wst.jsdt.debug.internal.ui.breakpoints.editors.FunctionBreakpointEditor;
import org.eclipse.wst.jsdt.debug.internal.ui.breakpoints.editors.JavaScriptBreakpointConditionEditor;
import org.eclipse.wst.jsdt.debug.internal.ui.breakpoints.editors.StandardJavaScriptBreakpointEditor;
/**
* Watchpoint detail pane. Suspend on access or modification.
*
* @since 1.0
*/
public class FunctionBreakpointDetailPane extends AbstractDetailPane {
/**
* Identifier for this detail pane editor
*/
public static final String PANE_ID = JavaScriptDebugUIPlugin.PLUGIN_ID + ".function_breakpoint_detail_pane"; //$NON-NLS-1$
/**
* Constructor
*/
public FunctionBreakpointDetailPane() {
super(Messages.breakpoint_settings, Messages.breakpoint_settings, PANE_ID);
addAutosaveProperties(new int[]{
StandardJavaScriptBreakpointEditor.PROP_HIT_COUNT_ENABLED,
StandardJavaScriptBreakpointEditor.PROP_SUSPEND_POLICY,
FunctionBreakpointEditor.PROP_ENTRY,
FunctionBreakpointEditor.PROP_EXIT,
JavaScriptBreakpointConditionEditor.PROP_CONDITION_ENABLED,
JavaScriptBreakpointConditionEditor.PROP_CONDITION_SUSPEND_POLICY
});
}
/* (non-Javadoc)
* @see org.eclipse.wst.jsdt.debug.internal.ui.breakpoints.details.AbstractDetailPane#createEditor(org.eclipse.swt.widgets.Composite)
*/
protected AbstractJavaScriptBreakpointEditor createEditor(Composite parent) {
return new CompositeBreakpointEditor(new AbstractJavaScriptBreakpointEditor[]
{new FunctionBreakpointEditor(), new JavaScriptBreakpointConditionEditor()});
}
}