|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
IProjectSetSerializer manages the serializing and deserializing of references to projects. Given a project, it can produce a UTF-8 encoded String which can be stored in a file. Given this String, it can create in the workspace an IProject.
Method Summary | |
IProject[] |
addToWorkspace(String[] referenceStrings,
String filename,
Object context,
IProgressMonitor monitor)
For every String in referenceStrings, create in the workspace a corresponding IProject. |
String[] |
asReference(IProject[] providerProjects,
Object context,
IProgressMonitor monitor)
For every IProject in providerProjects, return an opaque UTF-8 encoded String to act as a reference to that project. |
Method Detail |
public String[] asReference(IProject[] providerProjects, Object context, IProgressMonitor monitor) throws TeamException
providerProjects
- an array of projects that the serializer should create
text references forcontext
- a UI context object. This object will either be a
com.ibm.swt.widgets.Shell or it will be null.monitor
- a progress monitor
TeamException
addToWorkspace(String[] referenceStrings, String filename, Object context, IProgressMonitor monitor)
public IProject[] addToWorkspace(String[] referenceStrings, String filename, Object context, IProgressMonitor monitor) throws TeamException
referenceStrings
- an array of referene strings uniquely identifying the projectsfilename
- the name of the file that the references were read from. This is included
in case the provider needs to deduce relative pathscontext
- a UI context object. This object will either be a
com.ibm.swt.widgets.Shell or it will be null.monitor
- a progress monitor
TeamException
asReference(IProject[] providerProjects, Object context, IProgressMonitor monitor)
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |