1 /*******************************************************************************
2 * Copyright (c) 2000, 2003 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Common Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/cpl-v10.html
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11 package net.sourceforge.phpdt.internal.ui.text.folding;
13 import net.sourceforge.phpdt.ui.text.folding.IJavaFoldingPreferenceBlock;
15 import org.eclipse.swt.SWT;
16 import org.eclipse.swt.layout.GridData;
17 import org.eclipse.swt.layout.GridLayout;
18 import org.eclipse.swt.widgets.Composite;
19 import org.eclipse.swt.widgets.Control;
20 import org.eclipse.swt.widgets.Label;
23 * Empty preference block for extensions to the
24 * <code>net.sourceforge.phpdt.ui.javaFoldingStructureProvider</code>
25 * extension point that do not specify their own.
29 class EmptyJavaFoldingPreferenceBlock implements IJavaFoldingPreferenceBlock {
31 * @see net.sourceforge.phpdt.internal.ui.text.folding.IJavaFoldingPreferences#createControl(org.eclipse.swt.widgets.Group)
33 public Control createControl(Composite composite) {
34 Composite inner = new Composite(composite, SWT.NONE);
35 inner.setLayout(new GridLayout(3, false));
37 Label label = new Label(inner, SWT.CENTER);
38 GridData gd = new GridData(GridData.FILL_BOTH);
40 label.setLayoutData(gd);
42 label = new Label(inner, SWT.CENTER);
43 label.setText(FoldingMessages
44 .getString("EmptyJavaFoldingPreferenceBlock.emptyCaption")); //$NON-NLS-1$
45 gd = new GridData(GridData.CENTER);
46 label.setLayoutData(gd);
48 label = new Label(inner, SWT.CENTER);
49 gd = new GridData(GridData.FILL_BOTH);
51 label.setLayoutData(gd);
57 * @see net.sourceforge.phpdt.internal.ui.text.folding.IJavaFoldingPreferenceBlock#initialize()
59 public void initialize() {
63 * @see net.sourceforge.phpdt.internal.ui.text.folding.IJavaFoldingPreferenceBlock#performOk()
65 public void performOk() {
69 * @see net.sourceforge.phpdt.internal.ui.text.folding.IJavaFoldingPreferenceBlock#performDefaults()
71 public void performDefaults() {
75 * @see net.sourceforge.phpdt.internal.ui.text.folding.IJavaFoldingPreferenceBlock#dispose()
77 public void dispose() {