Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Attributes

de.fraunhofer.isst.axbench.editors.axlmultipage.axleditor.AXLReconcilingStrategy Class Reference

This class handles the reconciling strategy for the folding. More...

List of all members.

Public Member Functions

 AXLReconcilingStrategy ()
int findEndOfATag (int currentpos, int length) throws BadLocationException
 searches for the end tag.
void findStartOfRelevantsTag (int startpos, int length) throws BadLocationException
 find possible start tags.
AXLEditor getEditor ()
void initialReconcile ()
void reconcile (DirtyRegion dirtyRegion, IRegion subRegion)
void reconcile (IRegion partition)
void setDocument (IDocument document)
void setEditor (AXLEditor editor)
void setProgressMonitor (IProgressMonitor monitor)

Protected Member Functions

void calculatePositions ()
 start method for calculating the folding.
void emitPosition (int startOffset, int length)
 adds the position(offset,length) to the arraylist.

Protected Attributes

AXLEditor editor
ArrayList< Position > fPositions = null
 holds the calculated positions

Static Protected Attributes

static final int COMMENT_START_TAG = '*'
 TODO.
static final int END_TAG = '}'
static final int START_TAG = '{'

Private Attributes

IDocument fDocument

Detailed Description

This class handles the reconciling strategy for the folding.

Author:
skaegebein
Version:
0.8.0
Since:
0.8.0

Constructor & Destructor Documentation

de.fraunhofer.isst.axbench.editors.axlmultipage.axleditor.AXLReconcilingStrategy.AXLReconcilingStrategy (  ) 

Member Function Documentation

void de.fraunhofer.isst.axbench.editors.axlmultipage.axleditor.AXLReconcilingStrategy.calculatePositions (  )  [protected]

start method for calculating the folding.

void de.fraunhofer.isst.axbench.editors.axlmultipage.axleditor.AXLReconcilingStrategy.emitPosition ( int  startOffset,
int  length 
) [protected]

adds the position(offset,length) to the arraylist.

Parameters:
startOffset 
length 
int de.fraunhofer.isst.axbench.editors.axlmultipage.axleditor.AXLReconcilingStrategy.findEndOfATag ( int  currentpos,
int  length 
) throws BadLocationException

searches for the end tag.

Parameters:
currentpos 
Returns:
Exceptions:
BadLocationException 
void de.fraunhofer.isst.axbench.editors.axlmultipage.axleditor.AXLReconcilingStrategy.findStartOfRelevantsTag ( int  startpos,
int  length 
) throws BadLocationException

find possible start tags.

Parameters:
startpos 
length 
Exceptions:
BadLocationException 
AXLEditor de.fraunhofer.isst.axbench.editors.axlmultipage.axleditor.AXLReconcilingStrategy.getEditor (  ) 
Returns:
Returns the editor.
void de.fraunhofer.isst.axbench.editors.axlmultipage.axleditor.AXLReconcilingStrategy.initialReconcile (  ) 
void de.fraunhofer.isst.axbench.editors.axlmultipage.axleditor.AXLReconcilingStrategy.reconcile ( DirtyRegion  dirtyRegion,
IRegion  subRegion 
)
void de.fraunhofer.isst.axbench.editors.axlmultipage.axleditor.AXLReconcilingStrategy.reconcile ( IRegion  partition  ) 
void de.fraunhofer.isst.axbench.editors.axlmultipage.axleditor.AXLReconcilingStrategy.setDocument ( IDocument  document  ) 
void de.fraunhofer.isst.axbench.editors.axlmultipage.axleditor.AXLReconcilingStrategy.setEditor ( AXLEditor  editor  ) 
void de.fraunhofer.isst.axbench.editors.axlmultipage.axleditor.AXLReconcilingStrategy.setProgressMonitor ( IProgressMonitor  monitor  ) 

Member Data Documentation

TODO.

holds the calculated positions