|
1 | | -/*BEGIN_COPYRIGHT_BLOCK |
2 | | - * |
3 | | - * This file is a part of DrJava. Current versions of this project are available |
4 | | - * at http://sourceforge.net/projects/drjava |
5 | | - * |
6 | | - * Copyright (C) 2001-2008 JavaPLT group at Rice University (drjava@rice.edu) |
7 | | - * |
8 | | - * DrJava is free software; you can redistribute it and/or modify |
9 | | - * it under the terms of the GNU General Public License as published by |
10 | | - * the Free Software Foundation; either version 2 of the License, or |
11 | | - * (at your option) any later version. |
12 | | - * |
13 | | - * DrJava is distributed in the hope that it will be useful, |
14 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 | | - * GNU General Public License for more details. |
17 | | - * |
18 | | - * You should have received a copy of the GNU General Public License |
19 | | - * along with this program; if not, write to the Free Software |
20 | | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 | | - * or see http://www.gnu.org/licenses/gpl.html |
22 | | - * |
23 | | - * In addition, as a special exception, the JavaPLT group at Rice University |
24 | | - * (drjava@rice.edu) gives permission to link the code of DrJava with |
25 | | - * the classes in the gj.util package, even if they are provided in binary-only |
26 | | - * form, and distribute linked combinations including the DrJava and the |
27 | | - * gj.util package. You must obey the GNU General Public License in all |
28 | | - * respects for all of the code used other than these classes in the gj.util |
29 | | - * package: Dictionary, HashtableEntry, ValueEnumerator, Enumeration, |
30 | | - * KeyEnumerator, Vector, Hashtable, Stack, VectorEnumerator. |
31 | | - * |
32 | | - * If you modify this file, you may extend this exception to your version of the |
33 | | - * file, but you are not obligated to do so. If you do not wish to |
34 | | - * do so, delete this exception statement from your version. (However, the |
35 | | - * present version of DrJava depends on these classes, so you'd want to |
36 | | - * remove the dependency first!) |
37 | | - * |
38 | | - END_COPYRIGHT_BLOCK*/ |
| 1 | +/*BEGIN_COPYRIGHT_BLOCK* |
| 2 | +
|
| 3 | +DrJava Eclipse Plug-in BSD License |
| 4 | +
|
| 5 | +Copyright (c) 2007-2008 JavaPLT group at Rice University |
| 6 | +All rights reserved. |
| 7 | +
|
| 8 | +Developed by: Java Programming Languages Team |
| 9 | + Rice University |
| 10 | + http://www.cs.rice.edu/~javaplt/ |
| 11 | +
|
| 12 | +Redistribution and use in source and binary forms, with or without modification, are permitted |
| 13 | +provided that the following conditions are met: |
| 14 | +
|
| 15 | + - Redistributions of source code must retain the above copyright notice, this list of conditions |
| 16 | + and the following disclaimer. |
| 17 | + - Redistributions in binary form must reproduce the above copyright notice, this list of |
| 18 | + conditions and the following disclaimer in the documentation and/or other materials provided |
| 19 | + with the distribution. |
| 20 | + - Neither the name of DrJava, the JavaPLT group, Rice University, nor the names of software |
| 21 | + contributors may be used to endorse or promote products derived from this software without |
| 22 | + specific prior written permission. |
| 23 | +
|
| 24 | +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR |
| 25 | +IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND |
| 26 | +FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND |
| 27 | +CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| 28 | +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 29 | +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER |
| 30 | +IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
| 31 | +OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 32 | +
|
| 33 | +*END_COPYRIGHT_BLOCK*/ |
39 | 34 |
|
40 | 35 | package edu.rice.cs.drjava.plugins.eclipse; |
41 | 36 |
|
|
51 | 46 | /** |
52 | 47 | * A preference page that allows the user to customize settings for |
53 | 48 | * the DrJava Plug-in for Eclipse. |
| 49 | + * |
| 50 | + * How to add a preference to the plug-in:<ul> |
| 51 | + * <li>Add a constant to DrJavaConstants</li> |
| 52 | + * <li>In DrJavaPreferencePage, add a field in createFieldEditors()</li> |
| 53 | + * <li>Add a default value to EclipsePlugin</li> |
| 54 | + * <li>Add an IPropertyChangeListener to the PreferenceStore |
| 55 | + * ({@code EclipsePlugin.getDefault().getPreferenceStore()})</li> |
| 56 | + * <li>Specifically, in InteractionsController:<ul> |
| 57 | + * <li>Add a variable to remember preference</li> |
| 58 | + * <li>Make action dependent on variable</li> |
| 59 | + * <li>Add a line to _updatePreferences</li> |
| 60 | + * </li> |
| 61 | + * </ul> |
| 62 | + * |
54 | 63 | * @version $Id$ |
55 | 64 | */ |
56 | 65 | public class DrJavaPreferencePage extends FieldEditorPreferencePage |
|
0 commit comments