1 11 package org.eclipse.pde.internal.ui.preferences; 12 13 import org.eclipse.core.runtime.Platform; 14 import org.eclipse.jface.preference.IPreferenceNode; 15 import org.eclipse.jface.preference.IPreferencePage; 16 import org.eclipse.pde.internal.ui.PDEPlugin; 17 import org.eclipse.swt.graphics.Image; 18 19 public class TargetPlatformPreferenceNode implements IPreferenceNode { 20 protected TargetPlatformPreferencePage fPage; 21 22 25 public void add(IPreferenceNode node) { 26 } 27 28 31 public void createPage() { 32 fPage = new TargetPlatformPreferencePage(getIndex()); 33 } 34 35 protected int getIndex() { 36 return TargetPlatformPreferencePage.PLUGINS_INDEX; 37 } 38 39 42 public void disposeResources() { 43 if (fPage!=null) fPage.dispose(); 44 fPage = null; 45 } 46 47 50 public IPreferenceNode findSubNode(String id) { 51 return null; 52 } 53 54 57 public String getId() { 58 return "org.eclipse.pde.ui.TargetPlatformPreferencePage"; } 60 61 64 public Image getLabelImage() { 65 return null; 66 } 67 68 71 public String getLabelText() { 72 return Platform.getResourceString(PDEPlugin.getDefault().getBundle(), "%preferences.target.name"); } 74 75 78 public IPreferencePage getPage() { 79 return fPage; 80 } 81 82 85 public IPreferenceNode[] getSubNodes() { 86 return new IPreferenceNode [0]; 87 } 88 89 92 public IPreferenceNode remove(String id) { 93 return null; 94 } 95 96 99 public boolean remove(IPreferenceNode node) { 100 return false; 101 } 102 } 103 | Popular Tags |