View Javadoc

1   /*
2    * $Id: OWLLibraryEditorPageZero.java,v 1.2 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.wizards;
10  
11  import org.eclipse.swt.widgets.Composite;
12  
13  /***
14   * This class is almost identical to its parent.  The only difference is 
15   * that the parent does not accept as valid input the name of a library 
16   * which already exists, wheras this page does. 
17   * 
18   * @author aperezlo
19   */
20  public class OWLLibraryEditorPageZero extends OWLLibraryBuilderPageZero
21  {
22     /*
23      *  (non-Javadoc)
24      * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
25      */
26     public void createControl(Composite parent)
27     {
28        super.createControl(parent);
29        _nameText.setEnabled(false);
30     }
31     
32     /*
33      *  (non-Javadoc)
34      * @see com.bbn.swede.ui.wizards.OWLLibraryBuilderPageZero#updatePageCompletion()
35      */
36     protected void updatePageCompletion()
37     {
38        setPageComplete((_libraryName.length() > 0));
39     }
40  }