Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.edit.views
Class ISeriesEditorListingViewer

java.lang.Object
  extended by Viewer
      extended by com.ibm.etools.iseries.edit.views.ISeriesEditorListingViewer

public class ISeriesEditorListingViewer
extends Viewer


Nested Class Summary
 class ISeriesEditorListingViewer.FileDateComparator
          Inner class that compares dates for sorting
 class ISeriesEditorListingViewer.FileInfo
          Inner class to hold file properties.
 
Field Summary
protected  ISeriesEditorListingAction _actionDeleteAllListings
           
protected  ISeriesEditorListingAction _actionDeleteListing
           
protected static Comparator _comparatorFileDate
           
protected  Composite _compositeClient
           
protected  Composite _compositeParent
           
protected  Table _tableListings
           
protected  Text _textListingContent
           
protected  TreeSet _treeSetFiles
           
static String copyright
           
 
Constructor Summary
ISeriesEditorListingViewer(ISeriesEditorListingAction actionDeleteListing, ISeriesEditorListingAction actionDeleteAllListings)
          Constructor.
 
Method Summary
protected  Control createControl(Composite compositeParent)
          Method declared on Viewer.
 void deleteAllListings()
          Deletes all files.
 void deleteSelectedListing()
          Deletes the currently selected file.
protected  void fillTable()
          Fills the table widget with listing file information: Date, time, and name.
protected  void fillTextContent(ISeriesEditorListingViewer.FileInfo info)
          Fills the text area with content from the given file.
 Control getControl()
          Method declared on Viewer.
 Object getInput()
          Method declared on Viewer.
protected  TreeSet getListings()
          Returns the set of listing files in the listings directory
protected  ISeriesEditorListingViewer.FileInfo getSelectedFile()
          Returns the currently selected file.
 ISelection getSelection()
          Method declared on Viewer.
 void refresh()
          Method declared on Viewer.
 void setInput(Object newInput)
          Method declared on Viewer.
 void setSelection(ISelection selection, boolean reveal)
          Method declared on Viewer.
 void widgetDefaultSelected(SelectionEvent e)
          Sent when default selection occurs in the control.
 void widgetSelected(SelectionEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values

_comparatorFileDate

protected static Comparator _comparatorFileDate

_compositeClient

protected Composite _compositeClient

_compositeParent

protected Composite _compositeParent

_tableListings

protected Table _tableListings

_textListingContent

protected Text _textListingContent

_treeSetFiles

protected TreeSet _treeSetFiles

_actionDeleteListing

protected ISeriesEditorListingAction _actionDeleteListing

_actionDeleteAllListings

protected ISeriesEditorListingAction _actionDeleteAllListings
Constructor Detail

ISeriesEditorListingViewer

public ISeriesEditorListingViewer(ISeriesEditorListingAction actionDeleteListing,
                                  ISeriesEditorListingAction actionDeleteAllListings)
Constructor.

Method Detail

createControl

protected Control createControl(Composite compositeParent)
Method declared on Viewer. Create the controls for this view.


deleteAllListings

public void deleteAllListings()
Deletes all files.


deleteSelectedListing

public void deleteSelectedListing()
Deletes the currently selected file.


fillTable

protected void fillTable()
Fills the table widget with listing file information: Date, time, and name.


fillTextContent

protected void fillTextContent(ISeriesEditorListingViewer.FileInfo info)
Fills the text area with content from the given file.


getControl

public Control getControl()
Method declared on Viewer. Returns the primary control associated with this viewer.


getInput

public Object getInput()
Method declared on Viewer.


getListings

protected TreeSet getListings()
Returns the set of listing files in the listings directory


getSelectedFile

protected ISeriesEditorListingViewer.FileInfo getSelectedFile()
Returns the currently selected file.


getSelection

public ISelection getSelection()
Method declared on Viewer.


refresh

public void refresh()
Method declared on Viewer. Refreshes this viewer completely, getting new contents for the input from the content provider.


setInput

public void setInput(Object newInput)
Method declared on Viewer.


setSelection

public void setSelection(ISelection selection,
                         boolean reveal)
Method declared on Viewer.


widgetDefaultSelected

public void widgetDefaultSelected(SelectionEvent e)
Sent when default selection occurs in the control.


widgetSelected

public void widgetSelected(SelectionEvent e)

Rational Developer for Power Systems Software
V7.6

Copyright 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.