iSeries Remote Systems
v6.0.0

com.ibm.etools.iseries.editor
Class ISeriesEditorCobolILEModelFactory

java.lang.Object
  extended bycom.ibm.etools.iseries.editor.ISeriesEditorCobolILEModelFactory

public class ISeriesEditorCobolILEModelFactory
extends Object

TIP: While not particularly useful in this instance, adapters are an easy way to get polymorphic behaviour from unrelated objects in the desktop. For example, a particular adapter could be added to files, folders, and other ISV-defined objects to give them common behaviour. Adapters are also a convenient way to centralize domain logic that would otherwise be scattered among various views and dialogs.


Field Summary
protected  com.ibm.lpex.core.LpexView _view
           
static String Copyright
           
 
Method Summary
protected  void addSections(AdaptableList list, ISeriesEditorCobolILEMarkElement element)
          Adds all mark elements to the list for the subtree rooted at the given mark element.
 AdaptableList getContentOutline(IAdaptable e)
          Returns the content outline for the given COBOL file.
static ISeriesEditorCobolILEModelFactory getInstance()
          Returns the singleton COBOL adapter.
 com.ibm.lpex.core.LpexView getLpexView()
           
 AdaptableList getSections(IFile file)
          Returns a list of all sections in this COBOL file.
 void setLpexView(com.ibm.lpex.core.LpexView view)
           
 
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

_view

protected com.ibm.lpex.core.LpexView _view
Method Detail

addSections

protected void addSections(AdaptableList list,
                           ISeriesEditorCobolILEMarkElement element)
Adds all mark elements to the list for the subtree rooted at the given mark element.


getContentOutline

public AdaptableList getContentOutline(IAdaptable e)
Returns the content outline for the given COBOL file.

Parameters:
e - the element for which to return the content outline
Returns:
the content outline for the argument

getInstance

public static ISeriesEditorCobolILEModelFactory getInstance()
Returns the singleton COBOL adapter.


getSections

public AdaptableList getSections(IFile file)
Returns a list of all sections in this COBOL file.

Returns:
A list containing headings and subheadings

setLpexView

public void setLpexView(com.ibm.lpex.core.LpexView view)

getLpexView

public com.ibm.lpex.core.LpexView getLpexView()

iSeries Remote Systems
v6.0.0

Copyright © 2005 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.