Package gda.rcp.views
Class Browser<T extends Document>
java.lang.Object
gda.rcp.views.Browser<T>
- Type Parameters:
T- the type of objects displayed in the browser
- Direct Known Subclasses:
ScanningAcquisitionBrowserBase
Defines the information necessary to create a
AcquisitionsBrowserCompositeFactory-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidAdds a column to the the TreeViewer contained inAcquisitionsBrowserCompositeFactorygetAcquisitionConfigurationResources(boolean reload) Returns the browser objectsFrom where the browser loads its contentabstract org.eclipse.jface.viewers.ITreeContentProviderFormats the objects in a suitable format for the TreeViewer contained inAcquisitionsBrowserCompositeFactoryabstract org.eclipse.jface.viewers.IDoubleClickListenerAn action executed when the user double click a row in the browserabstract org.eclipse.jface.viewers.ISelectionChangedListenergetISelectionChangedListener(org.eclipse.jface.action.MenuManager contextMenu) An action executed when a row in the browser is selectedprotected AcquisitionConfigurationResource<T> abstract TreeViewerBuilder<AcquisitionConfigurationResource<T>> Generates theTreeViewerBuilderfor theAcquisitionsBrowserCompositeFactorygetType()The browser objects typestatic final StringExtracts the last element from aAcquisitionConfigurationResource.getLocation().protected voidsetSelected(AcquisitionConfigurationResource<T> selected)
-
Constructor Details
-
Browser
-
-
Method Details
-
getAcquisitionConfigurationResources
public List<AcquisitionConfigurationResource<T>> getAcquisitionConfigurationResources(boolean reload) Returns the browser objects- Parameters:
reload- iftruereloads the object fromgetBrowserWorkingDir()- Returns:
- the object displayed in the browser
-
getType
The browser objects type- Returns:
- the browser type configuration
-
getBrowserWorkingDir
From where the browser loads its content- Returns:
- a location
-
getURLLastPathSegment
Extracts the last element from aAcquisitionConfigurationResource.getLocation(). For example forfile://localhost/c$/WINDOWS/clock.avi
returnsclock.avi
- Parameters:
element- the resource from where extract the string- Returns:
- the URL last segment in the URL path
-
getContentProvider
public abstract org.eclipse.jface.viewers.ITreeContentProvider getContentProvider()Formats the objects in a suitable format for the TreeViewer contained inAcquisitionsBrowserCompositeFactory- Returns:
- a tree content provider
-
addColumns
Adds a column to the the TreeViewer contained inAcquisitionsBrowserCompositeFactory- Parameters:
builder-
-
getTreeViewBuilder
Generates theTreeViewerBuilderfor theAcquisitionsBrowserCompositeFactory- Returns:
- a builder
-
getISelectionChangedListener
public abstract org.eclipse.jface.viewers.ISelectionChangedListener getISelectionChangedListener(org.eclipse.jface.action.MenuManager contextMenu) An action executed when a row in the browser is selected- Returns:
- a selection listener
-
getDoubleClickListener
public abstract org.eclipse.jface.viewers.IDoubleClickListener getDoubleClickListener()An action executed when the user double click a row in the browser- Returns:
- a listener
-
setSelected
-
getSelected
-