Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2011 itemis AG (http://www.itemis.eu) 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 /
 
 package org.eclipse.xtext.ui.refactoring.ui;
 
import  org.eclipse.jface.preference.BooleanFieldEditor;
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.Group;

Author(s):
Jan Koehnlein - Initial contribution and API
	protected void createFieldEditors() {
		Composite parent = getFieldEditorParent();
		Group refactoringGroup = new Group(parent, SWT.SHADOW_IN);
		refactoringGroup.setLayoutData(new GridData(SWT.FILL, SWT.TOP, truefalse));
		refactoringGroup.setText("Refactoring");
		GridLayout layout = new GridLayout(1, false);
		refactoringGroup.setLayout(layout);
		Composite composite = new Composite(refactoringGroup, SWT.NONE);
				"Save all modified resources automatically prior to refactoring"composite));
				"Rename in editor without dialog if possible"composite));
		refactoringGroup.pack();
	}
New to GrepCode? Check out our FAQ X