1 11 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 29 public class BuildOptionsPreferenceNode implements IPreferenceNode { 30 31 private BuildOptionsPreferencePage page; 32 33 36 public void add(IPreferenceNode node) { 37 } 38 39 42 public void createPage() { 43 page = new BuildOptionsPreferencePage(); 44 } 45 46 49 public void disposeResources() { 50 if (page!=null) page.dispose(); 51 page = null; 52 } 53 54 57 public IPreferenceNode findSubNode(String id) { 58 return null; 59 } 60 61 64 public String getId() { 65 return "org.eclipse.pde.ui.buildOptionsPreferencePage"; } 67 68 71 public Image getLabelImage() { 72 return null; 73 } 74 75 78 public String getLabelText() { 79 return PDEPlugin.getDefault().getDescriptor().getResourceString("%preferences.buildOptions.name"); } 81 82 85 public IPreferencePage getPage() { 86 return page; 87 } 88 89 92 public IPreferenceNode[] getSubNodes() { 93 return new IPreferenceNode[0]; 94 } 95 96 99 public IPreferenceNode remove(String id) { 100 return null; 101 } 102 103 106 public boolean remove(IPreferenceNode node) { 107 return false; 108 } 109 110 } 111 | Popular Tags |