1 11 package org.eclipse.core.internal.registry; 12 13 import org.eclipse.core.internal.runtime.InternalPlatform; 14 15 22 23 public abstract class RegistryModelObject { 24 protected String name = null; 26 27 32 public String getName() { 33 return name; 34 } 35 36 41 public void setName(String value) { 42 name = value; 43 } 44 45 51 public String toString() { 52 return this.getClass() + ":" + getName() + "[" + super.toString() + "]"; } 54 55 public Object getAdapter(Class type) { 56 return InternalPlatform.getDefault().getAdapterManager().getAdapter(this, type); 57 } 58 59 62 ExtensionRegistry getRegistry() { 63 return null; 64 } 65 66 70 public void setLocalizedName(String value) { 71 name = value; 72 ((ExtensionRegistry) InternalPlatform.getDefault().getRegistry()).setDirty(true); 73 } 74 } | Popular Tags |