org.eclipse.cdt.internal.ui.editor.asm
Class AsmTextTools

java.lang.Object
  extended by org.eclipse.cdt.internal.ui.editor.asm.AsmTextTools

public class AsmTextTools
extends java.lang.Object

This type shares all scanners and the color manager between its clients.


Constructor Summary
AsmTextTools()
          Creates a new Asm text tools collection and eagerly creates and initializes all members of this collection.
AsmTextTools(org.eclipse.jface.preference.IPreferenceStore store)
          Creates a new Asm text tools collection and eagerly creates and initializes all members of this collection.
AsmTextTools(org.eclipse.jface.preference.IPreferenceStore store, org.eclipse.core.runtime.Preferences coreStore)
          Creates a new Asm text tools collection and eagerly creates and initializes all members of this collection.
 
Method Summary
 boolean affectsBehavior(org.eclipse.jface.util.PropertyChangeEvent event)
          Determines whether the preference change encoded by the given event changes the behavior of one its contained components.
 void dispose()
          Disposes all members of this tools collection.
 org.eclipse.jface.text.rules.RuleBasedScanner getCodeScanner()
          Gets the code scanner used.
 CColorManager getColorManager()
          Gets the color manager.
 org.eclipse.jface.text.rules.RuleBasedScanner getMultilineCommentScanner()
          Returns a scanner which is configured to scan multiline comments.
 org.eclipse.jface.text.rules.RuleBasedScanner getPreprocessorScanner()
          Returns a scanner which is configured to scan Asm preprocessor directives.
 org.eclipse.jface.text.rules.RuleBasedScanner getSinglelineCommentScanner()
          Returns a scanner which is configured to scan singleline comments.
 org.eclipse.jface.text.rules.RuleBasedScanner getStringScanner()
          Returns a scanner which is configured to scan strings.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsmTextTools

public AsmTextTools(org.eclipse.jface.preference.IPreferenceStore store)
Creates a new Asm text tools collection and eagerly creates and initializes all members of this collection.


AsmTextTools

public AsmTextTools(org.eclipse.jface.preference.IPreferenceStore store,
                    org.eclipse.core.runtime.Preferences coreStore)
Creates a new Asm text tools collection and eagerly creates and initializes all members of this collection.


AsmTextTools

public AsmTextTools()
Creates a new Asm text tools collection and eagerly creates and initializes all members of this collection.

Method Detail

dispose

public void dispose()
Disposes all members of this tools collection.


getColorManager

public CColorManager getColorManager()
Gets the color manager.


getCodeScanner

public org.eclipse.jface.text.rules.RuleBasedScanner getCodeScanner()
Gets the code scanner used.


getMultilineCommentScanner

public org.eclipse.jface.text.rules.RuleBasedScanner getMultilineCommentScanner()
Returns a scanner which is configured to scan multiline comments.

Returns:
a multiline comment scanner

getSinglelineCommentScanner

public org.eclipse.jface.text.rules.RuleBasedScanner getSinglelineCommentScanner()
Returns a scanner which is configured to scan singleline comments.

Returns:
a singleline comment scanner

getStringScanner

public org.eclipse.jface.text.rules.RuleBasedScanner getStringScanner()
Returns a scanner which is configured to scan strings.

Returns:
a string scanner

getPreprocessorScanner

public org.eclipse.jface.text.rules.RuleBasedScanner getPreprocessorScanner()
Returns a scanner which is configured to scan Asm preprocessor directives.

Returns:
an Asm preprocessor directives scanner

affectsBehavior

public boolean affectsBehavior(org.eclipse.jface.util.PropertyChangeEvent event)
Determines whether the preference change encoded by the given event changes the behavior of one its contained components.

Parameters:
event - the event to be investigated
Returns:
true if event causes a behavioral change