Package org.eclipse.wst.xsl.ui.internal.contentoutline
public class JFaceNodeAdapter extends java.lang.ObjectAdapts a DOM node to a JFace viewer.
Field Summary | |
package-private static java.lang.Class | ADAPTER_KEY |
package-private org.eclipse.wst.xsl.ui.internal.contentoutline.JFaceNodeAdapterFactory | fAdapterFactory |
package-private org.eclipse.wst.xsl.ui.internal.contentoutline.RefreshStructureJob | fRefreshJob |
Constructor Summary |
JFaceNodeAdapter(org.eclipse.wst.xsl.ui.internal.contentoutline.JFaceNodeAdapterFactory adapterFactory) |
Method Summary | |
protected Image | createImage(java.lang.Object object) |
protected Image | createXMLImageDescriptor(java.lang.String imageResourceName) |
public java.lang.Object[] | getChildren(java.lang.Object object) |
public java.lang.Object[] | getElements(java.lang.Object node) Returns an enumeration with the elements belonging to the passed element. These are the top level items in a list, tree, table, etc... |
public Image | getLabelImage(java.lang.Object node) Fetches the label image specific to this object instance. |
public java.lang.String | getLabelText(java.lang.Object node) Fetches the label text specific to this object instance. |
public java.lang.Object | getParent(java.lang.Object object) |
protected ImageDescriptor | getXSLImage(org.w3c.dom.Element node) |
public boolean | hasChildren(java.lang.Object object) |
public boolean | isAdapterForType(java.lang.Object type) Allowing the INodeAdapter to compare itself against the type allows it to return true in more than one case. |
public void | notifyChanged(INodeNotifier notifier
,
int eventType
,
java.lang.Object changedFeature
,
java.lang.Object oldValue
,
java.lang.Object newValue
,
int pos) Called by the object being adapter (the notifier) when something has changed. |
Field Detail |
package-private static java.lang.Class ADAPTER_KEY
package-private org.eclipse.wst.xsl.ui.internal.contentoutline.JFaceNodeAdapterFactory fAdapterFactory
package-private org.eclipse.wst.xsl.ui.internal.contentoutline.RefreshStructureJob fRefreshJob
Constructor Detail |
public JFaceNodeAdapter(org.eclipse.wst.xsl.ui.internal.contentoutline.JFaceNodeAdapterFactory adapterFactory)
Methods Detail |
protected Image createImage(java.lang.Object object)
object
Image
protected Image createXMLImageDescriptor(java.lang.String imageResourceName)
imageResourceName
Image
public java.lang.Object[] getChildren(java.lang.Object object)
object
java.lang.Object[]
public java.lang.Object[] getElements(java.lang.Object node)
Returns an enumeration with the elements belonging to the passed element. These are the top level items in a list, tree, table, etc...
node
java.lang.Object[]
public Image getLabelImage(java.lang.Object node)
Fetches the label image specific to this object instance.
node
- DOM Node
Image
- Image for the label.
public java.lang.String getLabelText(java.lang.Object node)
Fetches the label text specific to this object instance.
node
java.lang.String
- Node Name for the Label
public java.lang.Object getParent(java.lang.Object object)
object
java.lang.Object
protected ImageDescriptor getXSLImage(org.w3c.dom.Element node)
node
ImageDescriptor
public boolean hasChildren(java.lang.Object object)
object
boolean
public boolean isAdapterForType(java.lang.Object type)
Allowing the INodeAdapter to compare itself against the type allows it to return true in more than one case.
type
boolean
public void notifyChanged(INodeNotifier notifier
,
int eventType
,
java.lang.Object changedFeature
,
java.lang.Object oldValue
,
java.lang.Object newValue
,
int pos)
Called by the object being adapter (the notifier) when something has changed.
notifier
eventType
changedFeature
oldValue
newValue
pos