/*******************************************************************************
* Copyright © 2008, 2013 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.edt.ide.ui.internal.editor.folding;
import org.eclipse.edt.ide.ui.editor.IFoldingPreferenceBlock;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Label;
class EmptyFoldingPreferenceBlock implements IFoldingPreferenceBlock {
/*
* @see org.eclipse.edt.ide.ui.editor.folding.IFoldingPreferenceBlock#createControl(org.eclipse.swt.widgets.Group)
*/
public Control createControl(Composite composite) {
Composite inner= new Composite(composite, SWT.NONE);
inner.setLayout(new GridLayout(3, false));
Label label= new Label(inner, SWT.CENTER);
GridData gd= new GridData(GridData.FILL_BOTH);
gd.widthHint= 30;
label.setLayoutData(gd);
label= new Label(inner, SWT.CENTER);
label.setText(FoldingMessages.EmptyEGLFoldingPreferenceBlock_emptyCaption);
gd= new GridData(GridData.CENTER);
label.setLayoutData(gd);
label= new Label(inner, SWT.CENTER);
gd= new GridData(GridData.FILL_BOTH);
gd.widthHint= 30;
label.setLayoutData(gd);
return inner;
}
/*
* @see org.eclipse.edt.ide.ui.editor.folding.IFoldingPreferenceBlock#initialize()
*/
public void initialize() {
}
/*
* @see org.eclipse.edt.ide.ui.editor.folding.IFoldingPreferenceBlock#performOk()
*/
public void performOk() {
}
/*
* @see org.eclipse.edt.ide.ui.editor.folding.IFoldingPreferenceBlock#performDefaults()
*/
public void performDefaults() {
}
/*
* @see org.eclipse.edt.ide.ui.editor.folding.IFoldingPreferenceBlock#dispose()
*/
public void dispose() {
}
}