KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > ui > preferences > BuildOptionsPreferenceNode


1 /*******************************************************************************
2  * Copyright (c) 2003, 2004 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 /*
12  * Created on Aug 23, 2003
13  *
14  * To change the template for this generated file go to
15  * Window>Preferences>Java>Code Generation>Code and Comments
16  */

17 package org.eclipse.pde.internal.ui.preferences;
18
19 import org.eclipse.jface.preference.*;
20 import org.eclipse.pde.internal.ui.PDEPlugin;
21 import org.eclipse.swt.graphics.Image;
22
23 /**
24  * @author melhem
25  *
26  * To change the template for this generated type comment go to
27  * Window>Preferences>Java>Code Generation>Code and Comments
28  */

29 public class BuildOptionsPreferenceNode implements IPreferenceNode {
30
31     private BuildOptionsPreferencePage page;
32     
33     /* (non-Javadoc)
34      * @see org.eclipse.jface.preference.IPreferenceNode#add(org.eclipse.jface.preference.IPreferenceNode)
35      */

36     public void add(IPreferenceNode node) {
37     }
38
39     /* (non-Javadoc)
40      * @see org.eclipse.jface.preference.IPreferenceNode#createPage()
41      */

42     public void createPage() {
43         page = new BuildOptionsPreferencePage();
44     }
45
46     /* (non-Javadoc)
47      * @see org.eclipse.jface.preference.IPreferenceNode#disposeResources()
48      */

49     public void disposeResources() {
50         if (page!=null) page.dispose();
51         page = null;
52     }
53
54     /* (non-Javadoc)
55      * @see org.eclipse.jface.preference.IPreferenceNode#findSubNode(java.lang.String)
56      */

57     public IPreferenceNode findSubNode(String JavaDoc id) {
58         return null;
59     }
60
61     /* (non-Javadoc)
62      * @see org.eclipse.jface.preference.IPreferenceNode#getId()
63      */

64     public String JavaDoc getId() {
65         return "org.eclipse.pde.ui.buildOptionsPreferencePage"; //$NON-NLS-1$
66
}
67
68     /* (non-Javadoc)
69      * @see org.eclipse.jface.preference.IPreferenceNode#getLabelImage()
70      */

71     public Image getLabelImage() {
72         return null;
73     }
74
75     /* (non-Javadoc)
76      * @see org.eclipse.jface.preference.IPreferenceNode#getLabelText()
77      */

78     public String JavaDoc getLabelText() {
79         return PDEPlugin.getDefault().getDescriptor().getResourceString("%preferences.buildOptions.name"); //$NON-NLS-1$
80
}
81
82     /* (non-Javadoc)
83      * @see org.eclipse.jface.preference.IPreferenceNode#getPage()
84      */

85     public IPreferencePage getPage() {
86         return page;
87     }
88
89     /* (non-Javadoc)
90      * @see org.eclipse.jface.preference.IPreferenceNode#getSubNodes()
91      */

92     public IPreferenceNode[] getSubNodes() {
93         return new IPreferenceNode[0];
94     }
95
96     /* (non-Javadoc)
97      * @see org.eclipse.jface.preference.IPreferenceNode#remove(java.lang.String)
98      */

99     public IPreferenceNode remove(String JavaDoc id) {
100         return null;
101     }
102
103     /* (non-Javadoc)
104      * @see org.eclipse.jface.preference.IPreferenceNode#remove(org.eclipse.jface.preference.IPreferenceNode)
105      */

106     public boolean remove(IPreferenceNode node) {
107         return false;
108     }
109
110 }
111
Popular Tags