|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
fable.framework.navigator.views.SampleNavigatorView
public class SampleNavigatorView
Field Summary | |
---|---|
static SampleController |
controller
This singleton is the model controller. |
static java.lang.String |
ID
|
static java.lang.String |
INITIAL_DIR_DATA
|
static SampleNavigatorView |
view
Uniq instance of this view SampleNavigatorView . |
Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
---|
PROP_TITLE |
Constructor Summary | |
---|---|
SampleNavigatorView()
|
Method Summary | |
---|---|
void |
addDirectory(java.lang.String directory)
This function is called when a directory is selected. |
void |
addFiles(java.lang.String[] files,
java.lang.String directory)
REPLACE FILEANDDIRECTORYDIALOG |
void |
addPropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener listener)
19 sept. |
void |
clearFiles()
clear the table of files to process |
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
|
void |
dispose()
|
Sample |
getCurrentSample()
|
static SampleNavigatorView |
getDefault()
return default processing view |
java.lang.String |
getExperimentName()
|
java.lang.String |
getFilter()
|
static java.lang.String |
getInitialDirectory()
|
org.eclipse.core.runtime.jobs.Job |
getJob()
|
java.lang.String |
getSampleName()
|
java.util.Vector<java.lang.Integer> |
getSelectedFilesIndex()
Get the list of selected files in the sample navigator's file table and return the indices corresponding to their position in the vector of FabioFiles. |
java.util.Vector<FabioFile> |
getSortedfiles()
|
void |
initSampleFilteredFiles(Sample sample)
This method init fabio filtered peaks file in Sample object. |
static void |
loadInitialDirectory()
restore the initial directory from the directory.xml memento store |
java.io.File[] |
loadSample(java.lang.String dir)
23 oct. |
void |
propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
To show required fields when a property change in another view (for instance, launched when preprocessor is launched without any files) |
void |
removePropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener listener)
19 sept. |
static void |
saveInitialDirectory()
save the initial directory in the directory.xml memento store |
void |
setExperimentAndSampleName(java.lang.String directory)
|
void |
setExperimentName(java.lang.String experimentName)
|
void |
setFilter(java.lang.String filter)
|
void |
setFocus()
|
static void |
setInitialDirectory(java.lang.String _initialDirectory)
|
void |
setSampleName(java.lang.String sampleName)
|
void |
setSelectedFiles(java.lang.String[] newFiles)
update the list of selected files to display |
void |
updateDirectory()
This function update a directory if new files have been added. |
Methods inherited from class org.eclipse.ui.part.ViewPart |
---|
getViewSite, init, init, saveState, setInitializationData |
Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
---|
addPartPropertyListener, addPropertyListener, getAdapter, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, showBusy |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
---|
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Field Detail |
---|
public static final java.lang.String ID
public static final java.lang.String INITIAL_DIR_DATA
public static SampleNavigatorView view
SampleNavigatorView
.
public static SampleController controller
Constructor Detail |
---|
public SampleNavigatorView()
Method Detail |
---|
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
createPartControl
in interface org.eclipse.ui.IWorkbenchPart
createPartControl
in class org.eclipse.ui.part.WorkbenchPart
public java.util.Vector<java.lang.Integer> getSelectedFilesIndex()
public static SampleNavigatorView getDefault()
public void setFocus()
setFocus
in interface org.eclipse.ui.IWorkbenchPart
setFocus
in class org.eclipse.ui.part.WorkbenchPart
public void setSelectedFiles(java.lang.String[] newFiles)
String
- [] newFiles - list of selected filespublic void addPropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener listener)
listener
- public void removePropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener listener)
listener
- public void clearFiles()
public java.io.File[] loadSample(java.lang.String dir)
dir
- public java.lang.String getExperimentName()
public void setExperimentName(java.lang.String experimentName)
public java.lang.String getSampleName()
public void setSampleName(java.lang.String sampleName)
public void setExperimentAndSampleName(java.lang.String directory)
public void addFiles(java.lang.String[] files, java.lang.String directory)
public void updateDirectory()
public void addDirectory(java.lang.String directory)
It gets all files with the type set in preferences to fill left table. If a filter exists and if the user has checked "set filter for all samples" a filter on the name is set.
directory
- public void dispose()
dispose
in interface org.eclipse.ui.IWorkbenchPart
dispose
in class org.eclipse.ui.part.WorkbenchPart
public static java.lang.String getInitialDirectory()
public static void setInitialDirectory(java.lang.String _initialDirectory)
public static void loadInitialDirectory()
public static void saveInitialDirectory()
public void propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
propertyChange
in interface org.eclipse.jface.util.IPropertyChangeListener
event
- public Sample getCurrentSample()
public org.eclipse.core.runtime.jobs.Job getJob()
public java.lang.String getFilter()
public void setFilter(java.lang.String filter)
public void initSampleFilteredFiles(Sample sample)
public java.util.Vector<FabioFile> getSortedfiles()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |