1
/*******************************************************************************
2
* Copyright (c) 2000, 2006 QNX Software Systems and others.
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* IBM Corporation - initial API and implementation
10
*******************************************************************************/
12
package org.eclipse.cdt.ui.text.folding;
14
import org.eclipse.swt.widgets.Composite;
15
import org.eclipse.swt.widgets.Control;
18
* Contributors to the <code>org.eclipse.cdt.ui.foldingStructureProvider</code> extension point
19
* can specify an implementation of this interface to be displayed on the C/C++ > Editor >
20
* Folding preference page.
22
* Clients may implement this interface.
26
public interface ICFoldingPreferenceBlock {
29
* Creates the control that will be displayed on the C/C++ > Editor > Folding
32
* @param parent the parent composite to which to add the preferences control
33
* @return the control that was added to <code>parent</code>
35
Control createControl(Composite parent);
38
* Called after creating the control. Implementations should load the
39
* preferences values and update the controls accordingly.
44
* Called when the <code>OK</code> button is pressed on the preference
45
* page. Implementations should commit the configured preference settings
46
* into their form of preference storage.
51
* Called when the <code>Defaults</code> button is pressed on the
52
* preference page. Implementation should reset any preference settings to
53
* their default values and adjust the controls accordingly.
55
void performDefaults();
58
* Called when the preference page is being disposed. Implementations should
59
* free any resources they are holding on to.