|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsk.uniba.euromath.plugin.views.outline.XMLAccessContentProvider
public class XMLAccessContentProvider
Tree xml node structure content provider. Provided content is tree of outline items. Alows to configure which types of nodes are shown. Has auto refresh.
| Field Summary | |
|---|---|
protected static boolean |
showInternalAttributes
Flag, if internal EM2 attributes should be shown. |
| Constructor Summary | |
|---|---|
XMLAccessContentProvider()
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
addToTree(OutlineItem parent,
Node xmlNode)
|
protected void |
build(Node topDataNode)
|
protected void |
clear()
|
protected OutlineItem |
createItem(Node model)
Creates outline item for node. |
void |
dispose()
|
Object[] |
getChildren(Object parent)
|
Object[] |
getElements(Object parent)
|
protected sk.uniba.euromath.plugin.views.outline.XMLAccessContentProvider.TopLevelOutlineItem |
getInvisibleRoot()
|
OutlineItem |
getItem(Node node)
Returns OutlineItem which displays node or null if outline view don't have outline item which correspond to that node. |
Object |
getParent(Object element)
|
protected Map<Short,Boolean> |
getVisibilityFlagMap()
|
boolean |
hasChildren(Object parent)
|
protected boolean |
hasToBeShown(Node node)
Computes if node should be shown. |
void |
inputChanged(Viewer v,
Object oldInput,
Object newInput)
|
protected boolean |
isAutoRefresh()
|
protected void |
refresh()
Refreshes the content. |
protected void |
setAutoRefresh(boolean autoRefresh)
|
void |
setShowType(short nodeType,
boolean show)
Sets visibility to nodes of type nodeType. |
void |
showAll()
Sets visibility of all nodes types to true and refreshes content if auto refresh is on. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static boolean showInternalAttributes
| Constructor Detail |
|---|
public XMLAccessContentProvider()
| Method Detail |
|---|
protected void addToTree(OutlineItem parent,
Node xmlNode)
parent - xmlNode - protected void build(Node topDataNode)
topDataNode - protected void clear()
protected OutlineItem createItem(Node model)
model - node
public void dispose()
dispose in interface IContentProviderpublic Object[] getChildren(Object parent)
getChildren in interface ITreeContentProviderpublic Object[] getElements(Object parent)
getElements in interface IStructuredContentProviderpublic OutlineItem getItem(Node node)
node - which is displayed in outline by some outline item
public Object getParent(Object element)
getParent in interface ITreeContentProviderpublic boolean hasChildren(Object parent)
hasChildren in interface ITreeContentProviderprotected boolean hasToBeShown(Node node)
node - the node
protected Map<Short,Boolean> getVisibilityFlagMap()
public void inputChanged(Viewer v,
Object oldInput,
Object newInput)
inputChanged in interface IContentProviderprotected void refresh()
public void setShowType(short nodeType,
boolean show)
nodeType - type of nodeshow - specifies if to showprotected boolean isAutoRefresh()
protected void setAutoRefresh(boolean autoRefresh)
autoRefresh - The autoRefresh to set.public void showAll()
protected sk.uniba.euromath.plugin.views.outline.XMLAccessContentProvider.TopLevelOutlineItem getInvisibleRoot()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||