Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2008 itemis AG ( 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 /
 package org.eclipse.xtext.ui.editor.preferences.fields;
import  org.eclipse.jface.preference.FieldEditor;
import  org.eclipse.swt.layout.GridData;
import  org.eclipse.swt.widgets.Composite;
public final class LabelFieldEditor extends FieldEditor {
	public LabelFieldEditor(String labelText, Composite parent) {
	public int getNumberOfControls() {
		return 1;
	protected void doStore() {
	protected void doLoadDefault() {
	protected void doLoad() {
	protected void doFillIntoGrid(Composite parentint numColumns) {
		getLabelControl(parent).setLayoutData(new GridData());
	protected void adjustForNumColumns(int numColumns) {
		GridData gd = (GridData) getLabelControl().getLayoutData();
		gd.horizontalSpan = numColumns;
New to GrepCode? Check out our FAQ X