1 11 package org.eclipse.pde.internal.ui.launcher; 12 13 import org.eclipse.jdt.internal.debug.ui.jres.JREsPreferencePage; 14 import org.eclipse.jface.preference.IPreferenceNode; 15 import org.eclipse.jface.preference.IPreferencePage; 16 import org.eclipse.pde.internal.ui.PDEUIMessages; 17 import org.eclipse.swt.graphics.Image; 18 19 public class InstalledJREsPreferenceNode implements IPreferenceNode { 20 21 private JREsPreferencePage page; 22 23 26 public void add(IPreferenceNode node) { 27 } 28 29 32 public void createPage() { 33 page = new JREsPreferencePage(); 34 } 35 36 39 public void disposeResources() { 40 if (page != null) 41 page.dispose(); 42 page = null; 43 } 44 45 48 public IPreferenceNode findSubNode(String id) { 49 return null; 50 } 51 52 55 public String getId() { 56 return "org.eclipse.jdt.debug.ui.preferences.VMPreferencePage"; } 58 59 62 public Image getLabelImage() { 63 return null; 64 } 65 66 69 public String getLabelText() { 70 return PDEUIMessages.BasicLauncherTab_jrePreferencePage; } 72 73 76 public IPreferencePage getPage() { 77 return page; 78 } 79 80 83 public IPreferenceNode[] getSubNodes() { 84 return new IPreferenceNode[0]; 85 } 86 87 90 public IPreferenceNode remove(String id) { 91 return null; 92 } 93 94 97 public boolean remove(IPreferenceNode node) { 98 return false; 99 } 100 101 } 102 | Popular Tags |