|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.team.ui.synchronize.AbstractSynchronizeScope
org.eclipse.team.ui.synchronize.ResourceScope
A synchronize scope whose roots are a set of resources.
Clients are not expected to subclass this class.
Field Summary |
---|
Fields inherited from interface org.eclipse.team.ui.synchronize.ISynchronizeScope |
---|
NAME, ROOTS |
Constructor Summary | |
---|---|
protected |
ResourceScope(IMemento memento)
Create this scope from it's previously saved state |
|
ResourceScope(IResource[] resources)
Create the resource scope for the given resources |
Method Summary | |
---|---|
void |
dispose()
Dispose of the scope when it is no longer needed. |
String |
getName()
Return the name of the scope |
IResource[] |
getRoots()
Return the root resources that define this scope. |
protected void |
init(IMemento memento)
Method invoked from the constructor which repopulates the fields of this scope |
void |
saveState(IMemento memento)
Persist the state of this scope. |
void |
setResources(IResource[] resources)
Set the resources that define this scope |
Methods inherited from class org.eclipse.team.ui.synchronize.AbstractSynchronizeScope |
---|
addPropertyChangeListener, createScope, firePropertyChangedEvent, fireRootsChanges, removePropertyChangeListener, saveScope |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ResourceScope(IResource[] resources)
resources
- the resources that define this scopeprotected ResourceScope(IMemento memento)
memento
- persisted state that can be restoredMethod Detail |
public void setResources(IResource[] resources)
resources
- the resources that define this scopepublic String getName()
ISynchronizeScope
public IResource[] getRoots()
ISynchronizeScope
null
indicates that the participant should use
its default set of resources.
null
public void dispose()
ISynchronizeScope
dispose
in interface ISynchronizeScope
dispose
in class AbstractSynchronizeScope
public void saveState(IMemento memento)
AbstractSynchronizeScope
saveState
in class AbstractSynchronizeScope
memento
- the memento into which the scope is to be savedprotected void init(IMemento memento)
AbstractSynchronizeScope
init
in class AbstractSynchronizeScope
memento
- the memento into which the scope was previously saved
|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.