view
Class RemoveGenome

java.lang.Object
  extended by org.eclipse.swt.widgets.Dialog
      extended by view.RemoveGenome

public class RemoveGenome
extends org.eclipse.swt.widgets.Dialog

Title: Bioinformatics Project

Description: Genomes Comparacent

Copyright: Copyright (c) 2005-2006

RemoveGenome class opens a new shell, suspending the existing one, it displays a combo presenting genomes names in the input directory so a user can choose one and deletes it.

Version:
1.0
Author:
Shadi Ibrahem.

Field Summary
private  org.eclipse.swt.widgets.Combo combo
          A combo box including genome names.
protected  IDataHandler controller_
          Magic controller.
private  boolean isCancelButton
          True if the operation has been canceled that way, no changes in the data base is needed.
private  java.util.ResourceBundle message
          Internationalization.
private  org.eclipse.swt.widgets.Shell parent
          DataView shell, in order to take control of the view.
private  org.eclipse.swt.widgets.Shell shell
          OptionDialog shell, in order to view data in a seperate window.
 
Constructor Summary
RemoveGenome(org.eclipse.swt.widgets.Shell par, IDataHandler controller, java.lang.String[] genomes)
          C'tor, builds the main view, constructs combo and the label.
 
Method Summary
 boolean isOperationCanceled()
          Indicates wether the operation has been canceled or not.
 void open()
          Views the RemoveGenome new shell, and initiates it with combo and the apporpriate text/buttons.
 
Methods inherited from class org.eclipse.swt.widgets.Dialog
checkSubclass, getParent, getStyle, getText, setText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

controller_

protected IDataHandler controller_
Magic controller.


shell

private org.eclipse.swt.widgets.Shell shell
OptionDialog shell, in order to view data in a seperate window.


parent

private org.eclipse.swt.widgets.Shell parent
DataView shell, in order to take control of the view.


isCancelButton

private boolean isCancelButton
True if the operation has been canceled that way, no changes in the data base is needed.


combo

private org.eclipse.swt.widgets.Combo combo
A combo box including genome names.


message

private java.util.ResourceBundle message
Internationalization.

Constructor Detail

RemoveGenome

public RemoveGenome(org.eclipse.swt.widgets.Shell par,
                    IDataHandler controller,
                    java.lang.String[] genomes)
C'tor, builds the main view, constructs combo and the label.

Parameters:
par - Shell: Dataview shell.
controller - IDataHandler: Magic controller.
genomes - String[]: a set of genomes names passed from DataView.
Method Detail

open

public void open()
Views the RemoveGenome new shell, and initiates it with combo and the apporpriate text/buttons.


isOperationCanceled

public boolean isOperationCanceled()
Indicates wether the operation has been canceled or not.

Returns:
True if the operation has been canceled