COSMOS ${releaseVersion} resource-modeling Project
Internal API Specification

org.eclipse.cosmos.rm.smlif.internal.editor
Class SMLIFTextPage.FindReplaceTarget

java.lang.Object
  extended by org.eclipse.cosmos.rm.smlif.internal.editor.SMLIFTextPage.FindReplaceTarget
All Implemented Interfaces:
org.eclipse.jface.text.IFindReplaceTarget
Enclosing class:
SMLIFTextPage

public static class SMLIFTextPage.FindReplaceTarget
extends java.lang.Object
implements org.eclipse.jface.text.IFindReplaceTarget

The Macro find/replace targe. This class is used to provide a target to the find/replace dialog.


Constructor Summary
SMLIFTextPage.FindReplaceTarget(org.eclipse.swt.custom.StyledText input)
           
 
Method Summary
 boolean canPerformFind()
           
 int findAndSelect(int widgetOffset, java.lang.String findString, boolean searchForward, boolean caseSensitive, boolean wholeWord)
           
 org.eclipse.swt.graphics.Point getSelection()
           
 java.lang.String getSelectionText()
           
 boolean isEditable()
           
 void replaceSelection(java.lang.String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SMLIFTextPage.FindReplaceTarget

public SMLIFTextPage.FindReplaceTarget(org.eclipse.swt.custom.StyledText input)
Method Detail

canPerformFind

public boolean canPerformFind()
Specified by:
canPerformFind in interface org.eclipse.jface.text.IFindReplaceTarget

findAndSelect

public int findAndSelect(int widgetOffset,
                         java.lang.String findString,
                         boolean searchForward,
                         boolean caseSensitive,
                         boolean wholeWord)
Specified by:
findAndSelect in interface org.eclipse.jface.text.IFindReplaceTarget

getSelection

public org.eclipse.swt.graphics.Point getSelection()
Specified by:
getSelection in interface org.eclipse.jface.text.IFindReplaceTarget

getSelectionText

public java.lang.String getSelectionText()
Specified by:
getSelectionText in interface org.eclipse.jface.text.IFindReplaceTarget

isEditable

public boolean isEditable()
Specified by:
isEditable in interface org.eclipse.jface.text.IFindReplaceTarget

replaceSelection

public void replaceSelection(java.lang.String text)
Specified by:
replaceSelection in interface org.eclipse.jface.text.IFindReplaceTarget

COSMOS ${releaseVersion} resource-modeling Project
Internal API Specification