ch.elexis.commands.sourceprovider
Class PatientSelectionStatus
java.lang.Object
org.eclipse.ui.AbstractSourceProvider
ch.elexis.commands.sourceprovider.PatientSelectionStatus
- All Implemented Interfaces:
- org.eclipse.ui.ISourceProvider
public class PatientSelectionStatus
- extends org.eclipse.ui.AbstractSourceProvider
This class provides a sourceProvider for Eclipse command evaluation. It can be used to check
whether a Patient is currently selected in the system. According to this command contributions
can be toggled on/off.
The value is set within the ElexisEventDispatcher
class.
Field Summary |
static java.lang.String |
FALSE
|
static java.lang.String |
PATIENTACTIVE
|
static java.lang.String |
TRUE
|
Fields inherited from class org.eclipse.ui.AbstractSourceProvider |
DEBUG |
Methods inherited from class org.eclipse.ui.AbstractSourceProvider |
addSourceProviderListener, fireSourceChanged, fireSourceChanged, initialize, logDebuggingInfo, removeSourceProviderListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PATIENTACTIVE
public static final java.lang.String PATIENTACTIVE
- See Also:
- Constant Field Values
TRUE
public static final java.lang.String TRUE
- See Also:
- Constant Field Values
FALSE
public static final java.lang.String FALSE
- See Also:
- Constant Field Values
PatientSelectionStatus
public PatientSelectionStatus()
dispose
public void dispose()
getCurrentState
public java.util.Map getCurrentState()
getProvidedSourceNames
public java.lang.String[] getProvidedSourceNames()
setState
public void setState(boolean state)