Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.text.edits
Interface ISourceModifier


public interface ISourceModifier

A source modifier can be used to modify the source of a move or copy edit before it gets inserted at the target position. This is useful if the text to be copied has to be modified before it is inserted without changing the original source.

Since:
3.0

Method Summary
  ISourceModifier copy ()
          Creates a copy of this source modifier object.
  ReplaceEdit[] getModifications ( String source)
          Returns the modification to be done to the passed string in form of replace edits.
 

Method Detail

getModifications


ReplaceEdit[] getModifications(
String source)
Returns the modification to be done to the passed string in form of replace edits. The set of returned replace edits must modify disjoint text regions. Violating this requirement will result in a BadLocationException while executing the associated move or copy edit.

The caller of this method is responsible to apply the returned edits to the passed source.

Parameters:
source - the source to be copied or moved
Returns:
an array of ReplaceEdits describing the modifications.

copy


ISourceModifier copy()
Creates a copy of this source modifier object. The copy will be used in a different text edit object. So it should be created in a way that is doesn't conflict with other text edits referring to this source modifier.

Returns:
the copy of the source modifier

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire