view
Class History

java.lang.Object
  extended by view.History

public class History
extends java.lang.Object

Title: Bioinformatics Project

Description: Genomes Comparacent

Copyright: Copyright (c) 2005-2006

History class contains data structure of the history tab, includes history table, parameters tables and listeners for buttons that can be used to run mapping, or showing results of ether mapping/preprocessing phases.

Version:
1.0
Author:
Shadi Ibrahem.

Field Summary
protected  java.lang.String ChosenDir
          The directory name of the Mapping/preprocessing history.
protected  java.lang.String ChosenPart
          A string indicating the sub directories types.
private  org.eclipse.swt.widgets.Combo comboGene1
          Genome combo for filtering the history tables.
private  org.eclipse.swt.widgets.Combo comboGene2
          Genome combo for filtering the history tables.
private  IDataHandler controller_
          Magic controller.
private  org.eclipse.swt.widgets.TabFolder HisTab
          The history tables tab.
protected  boolean isParaVisible
          Indicates wether the parameters tables are visible or not.
private  SWTTable mapHistory
          Mapping history table.
private  org.eclipse.swt.widgets.Composite MapPComp
          The control of the mapping tab item.
private  java.util.ResourceBundle messages
          Internationalization.
private  org.eclipse.swt.widgets.TabItem ParaMapitem
          Preprocessing tab item.
private  SWTTable preHistory
          Pre processing history table.
private  org.eclipse.swt.widgets.Composite PrePComp
          The control of the preprocessing tab item.
protected  SWTTable selectedTable
          A reference to the visible(chosen) table.
private  SWTTable[] table
          Parameters tables.
private  org.eclipse.swt.events.SelectionListener TableListener
          Both history tables listeners.
 
Constructor Summary
History(org.eclipse.swt.widgets.Shell shell, org.eclipse.swt.custom.CTabFolder MainTab, IDataHandler cont, org.eclipse.swt.widgets.Display display)
          C'tor, bulding and viewing the history tab, initiates the tab with the default features (buttons,labels,tables,listeners ..
 
Method Summary
private  void ClearTables()
           
protected  boolean FindNeededFiles(java.lang.String InfoDir)
           
protected  java.lang.String getDirectory(SWTTable Table, int i)
          Constructs a string from the given table lines , this string used as an existing directory name.
private  java.lang.String[] getRowString(java.lang.String dir, java.lang.String part)
          Helper method,used in "setTable" method to extract the a line info from the given directory name.
private  void setMapTable()
          Initiates the mapping parameters tables.
private  void setPreTable()
          Initiates the preprocessing parameters tables.
 void setTable(SWTTable Table, java.lang.String dir, java.lang.String part)
          Initiates the table rows with relevant histroy regarding chosen genomes in the combo boxes, it searchs through the relevant histroy folder for directories with the relevant names.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

controller_

private IDataHandler controller_
Magic controller.


isParaVisible

protected boolean isParaVisible
Indicates wether the parameters tables are visible or not.


comboGene1

private org.eclipse.swt.widgets.Combo comboGene1
Genome combo for filtering the history tables.


comboGene2

private org.eclipse.swt.widgets.Combo comboGene2
Genome combo for filtering the history tables.


preHistory

private SWTTable preHistory
Pre processing history table.


mapHistory

private SWTTable mapHistory
Mapping history table.


TableListener

private org.eclipse.swt.events.SelectionListener TableListener
Both history tables listeners.


selectedTable

protected SWTTable selectedTable
A reference to the visible(chosen) table.


ChosenDir

protected java.lang.String ChosenDir
The directory name of the Mapping/preprocessing history.


ChosenPart

protected java.lang.String ChosenPart
A string indicating the sub directories types.


table

private SWTTable[] table
Parameters tables.


PrePComp

private org.eclipse.swt.widgets.Composite PrePComp
The control of the preprocessing tab item.


MapPComp

private org.eclipse.swt.widgets.Composite MapPComp
The control of the mapping tab item.


ParaMapitem

private org.eclipse.swt.widgets.TabItem ParaMapitem
Preprocessing tab item.


HisTab

private org.eclipse.swt.widgets.TabFolder HisTab
The history tables tab.


messages

private java.util.ResourceBundle messages
Internationalization.

Constructor Detail

History

public History(org.eclipse.swt.widgets.Shell shell,
               org.eclipse.swt.custom.CTabFolder MainTab,
               IDataHandler cont,
               org.eclipse.swt.widgets.Display display)
C'tor, bulding and viewing the history tab, initiates the tab with the default features (buttons,labels,tables,listeners .. etc).

Parameters:
shell - Shell: DataView shell, used for error messages.
MainTab - CTabFolder: DataView main tab, used to put the history tab in it.
cont - IDataHandler: Magic controller.
display - Display: Dataview display, used for running threads asynchroniusly.
Method Detail

FindNeededFiles

protected boolean FindNeededFiles(java.lang.String InfoDir)

getDirectory

protected java.lang.String getDirectory(SWTTable Table,
                                        int i)
Constructs a string from the given table lines , this string used as an existing directory name.

Parameters:
Table - SWTTable: a histroy table.
i - int: the line index in the table.
Returns:
String: the directory name.

setTable

public void setTable(SWTTable Table,
                     java.lang.String dir,
                     java.lang.String part)
Initiates the table rows with relevant histroy regarding chosen genomes in the combo boxes, it searchs through the relevant histroy folder for directories with the relevant names.

Parameters:
Table - SWTTable: the selected histroy table.
dir - String: the relvant history directory.
part - String: the sub directories type.

getRowString

private java.lang.String[] getRowString(java.lang.String dir,
                                        java.lang.String part)
Helper method,used in "setTable" method to extract the a line info from the given directory name.

Parameters:
dir - String: directory name
part - String: the sub directories type.
Returns:
String[]: the line in the table devided into columns.

setPreTable

private void setPreTable()
Initiates the preprocessing parameters tables.


setMapTable

private void setMapTable()
Initiates the mapping parameters tables.


ClearTables

private void ClearTables()