View Javadoc

1   /*
2    * $Id: SWeDEPreferencesPage.java,v 1.4 2005/05/31 21:57:12 jlerner Exp $
3    *
4    * Copyright (c) 1999-2004, BBN Technologies, LLC.
5    * All rights reserved.
6    * http://www.daml.org/legal/opensource/bbn_license.html
7    */
8    
9   package com.bbn.swede.ui;
10  
11  import org.eclipse.jface.preference.PreferencePage;
12  import org.eclipse.swt.widgets.Composite;
13  import org.eclipse.swt.widgets.Control;
14  import org.eclipse.swt.widgets.Label;
15  import org.eclipse.ui.IWorkbench;
16  import org.eclipse.ui.IWorkbenchPreferencePage;
17  
18  /***
19   * Initial implementation of a page to hold, and to allow for configuration 
20   * of, SWeDE preferences.
21   * 
22   * @author aperezlo
23   */
24  public class SWeDEPreferencesPage extends PreferencePage implements
25     IWorkbenchPreferencePage
26  {
27     private IWorkbench _workbench;
28     
29     /*
30      *  (non-Javadoc)
31      * @see org.eclipse.jface.preference.PreferencePage#createContents(org.eclipse.swt.widgets.Composite)
32      */
33     protected Control createContents(Composite parent)
34     {
35        Composite toReturn = new Composite(parent, parent.getStyle());
36        Label first = new Label(toReturn, toReturn.getStyle());
37        first.setText("");
38        return toReturn;
39     }
40  
41     /*
42      *  (non-Javadoc)
43      * @see org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench)
44      */
45     public void init(IWorkbench workbench)
46     {
47        _workbench = workbench;
48        noDefaultAndApplyButton();
49     }
50  
51  }