fable.python.views
Class FableSampleLoaderView

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.ui.part.WorkbenchPart
          extended by org.eclipse.ui.part.ViewPart
              extended by fable.python.views.FableSampleLoaderView
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.ui.IPersistable, org.eclipse.ui.IViewPart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.IWorkbenchPart3, org.eclipse.ui.part.IWorkbenchPartOrientation

public class FableSampleLoaderView
extends org.eclipse.ui.part.ViewPart


Field Summary
static java.lang.String ID
           
 org.eclipse.swt.widgets.Text stextExperiment
           
 org.eclipse.swt.widgets.Text stextSample
           
static FableSampleLoaderView view
           
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
FableSampleLoaderView()
           
 
Method Summary
 void addPropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener listener)
          19 sept.
 void buildSampleName(java.lang.String filePath)
           
 void clearFiles()
          clear the table of files to process
 void createPartControl(org.eclipse.swt.widgets.Composite parent)
           
 void enableGroupExperiment(boolean bEnable)
           
 void fireExperimentInfoChange()
          19 sept.
 void fireSelectedFilesHasChange()
           
static FableSampleLoaderView getDefault()
          return default processing view
 java.lang.String[] 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.
 void setDescription(int number, java.lang.String description)
          set the table description
 void setDescription(int number, java.lang.String description, int backgroundColor)
          set the table description with color
 void setFocus()
           
 void setProcessingFiles(java.lang.String[] newFiles)
          update the list of processed files to display
 void setSelectedFiles(java.lang.String[] newFiles)
          update the list of selected files to display
 
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, dispose, 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, dispose, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Field Detail

ID

public static final java.lang.String ID
See Also:
Constant Field Values

view

public static FableSampleLoaderView view

stextExperiment

public org.eclipse.swt.widgets.Text stextExperiment

stextSample

public org.eclipse.swt.widgets.Text stextSample
Constructor Detail

FableSampleLoaderView

public FableSampleLoaderView()
Method Detail

createPartControl

public void createPartControl(org.eclipse.swt.widgets.Composite parent)
Specified by:
createPartControl in interface org.eclipse.ui.IWorkbenchPart
Specified by:
createPartControl in class org.eclipse.ui.part.WorkbenchPart

getDefault

public static FableSampleLoaderView getDefault()
return default processing view

Returns:
default processing view

setFocus

public void setFocus()
Specified by:
setFocus in interface org.eclipse.ui.IWorkbenchPart
Specified by:
setFocus in class org.eclipse.ui.part.WorkbenchPart

setSelectedFiles

public void setSelectedFiles(java.lang.String[] newFiles)
update the list of selected files to display

Parameters:
String - [] newFiles - list of selected files

setProcessingFiles

public void setProcessingFiles(java.lang.String[] newFiles)
update the list of processed files to display

Parameters:
String - [] newFiles - list of selected files

addPropertyChangeListener

public void addPropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener listener)
19 sept. 07

Parameters:
listener -

removePropertyChangeListener

public void removePropertyChangeListener(org.eclipse.jface.util.IPropertyChangeListener listener)
19 sept. 07

Parameters:
listener -

fireExperimentInfoChange

public void fireExperimentInfoChange()
19 sept. 07


fireSelectedFilesHasChange

public void fireSelectedFilesHasChange()

setDescription

public void setDescription(int number,
                           java.lang.String description,
                           int backgroundColor)
set the table description with color

Parameters:
int - number - number of files to process
String - description - description to display in the first line of the table
int - bkgColor - background color of description (can be used to display state) e.g. SWT.COLOR_RED

setDescription

public void setDescription(int number,
                           java.lang.String description)
set the table description

Parameters:
int - number - number of files to process
String - description - description to display in the first line of the table

clearFiles

public void clearFiles()
clear the table of files to process


enableGroupExperiment

public void enableGroupExperiment(boolean bEnable)

propertyChange

public 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)

Parameters:
event -

loadSample

public java.lang.String[] loadSample(java.lang.String dir)
23 oct. 07

Parameters:
dir -

buildSampleName

public void buildSampleName(java.lang.String filePath)