|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.contribution.visualiser.interfaces.simpleImpl.SimpleContentProvider
org.eclipse.contribution.visualiser.interfaces.simpleImpl.FileContentProvider
Example content provider that lets the superclass SimpleContentProvider do all the grunt work. This provider just loads the data from a file, parsing it and making suitable calls to the superclass to keep track of the groups and members. The important features are 1) initialise() is called by the org.eclipse.contribution.visualiser when it starts up and discovers a content provider, typically allowing the provider to 'get ready' - in this case that means loading a file and building up the group/member list. 2) addGroup() is called to define a new group to the SimpleContentProvider 3) members are not added directly to the simple content provider - they are simply added to the group, the SimpleContentProvider then finds them when it traverses the groups it knows about.
Constructor Summary | |
FileContentProvider()
|
Method Summary | |
java.lang.String |
getEmptyMessage()
Return message to display when visualiser is empty |
void |
initialise()
Initialise the provider - reads in the information from a file |
static void |
loadVisContents(java.lang.String filename)
Loads the information for a visualisation from a file. |
static void |
log(int msgType,
java.lang.String msg,
java.lang.Exception e)
Log the given message |
Methods inherited from class org.eclipse.contribution.visualiser.interfaces.simpleImpl.SimpleContentProvider |
addGroup, getAllGroups, getAllMembers, getAllMembers, numberOfGroupsDefined, processMouseclick |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileContentProvider()
Method Detail |
public void initialise()
initialise
in interface IContentProvider
initialise
in class SimpleContentProvider
IContentProvider.initialise()
public static void log(int msgType, java.lang.String msg, java.lang.Exception e)
msgType
- msg
- e
- public static void loadVisContents(java.lang.String filename)
filename
- public java.lang.String getEmptyMessage()
getEmptyMessage
in interface IContentProvider
getEmptyMessage
in class SimpleContentProvider
IContentProvider.getEmptyMessage()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |