Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.edit.cobol
Class ISeriesEditorCobolILEModelFactory

java.lang.Object
  extended by com.ibm.etools.iseries.edit.cobol.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  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.
 LpexView getLpexView()
           
 AdaptableList getSections(IFile file)
          Returns a list of all sections in this COBOL file.
 void setLpexView(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 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.

Parameters:
e - the element for which to return section heading and subheadings
Returns:
A list containing headings and subheadings

setLpexView

public void setLpexView(LpexView view)

getLpexView

public LpexView getLpexView()

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.