1 26 27 package org.nightlabs.editor2d.viewer.preferences; 28 29 import org.eclipse.jface.preference.PreferencePage; 30 import org.eclipse.swt.SWT; 31 import org.eclipse.swt.layout.GridData; 32 import org.eclipse.swt.widgets.Composite; 33 import org.eclipse.swt.widgets.Control; 34 import org.eclipse.swt.widgets.Label; 35 import org.eclipse.ui.IWorkbench; 36 import org.eclipse.ui.IWorkbenchPreferencePage; 37 38 import org.nightlabs.editor2d.viewer.ViewerPlugin; 39 40 public class ViewerPreferencePage 41 extends PreferencePage 42 implements IWorkbenchPreferencePage 43 { 44 45 protected Control createContents(Composite parent) { 46 Label l = new Label(parent, SWT.NONE); 47 l.setText(ViewerPlugin.getResourceString("preferences.label.welcome")); 48 l.setLayoutData(new GridData(GridData.FILL_BOTH)); 49 return null; 50 } 51 52 public void init(IWorkbench workbench) { 53 noDefaultAndApplyButton(); 54 } 55 56 } 57 | Popular Tags |