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

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.ltk.core.refactoring
Class TextEditBasedChangeGroup

java.lang.Object
  extended by 
org.eclipse.ltk.core.refactoring.TextEditBasedChangeGroup
Direct Known Subclasses:
TextEditChangeGroup

public class TextEditBasedChangeGroup
extends Object

This class is a wrapper around a TextEditGroup adding support for marking a group as active and inactive.

Note: this class is not intended to be extended by clients.

Since:
3.2
See Also:
TextEditGroup
Restriction:
This class is not intended to be subclassed by clients.

Constructor Summary
TextEditBasedChangeGroup ( TextEditBasedChange change, TextEditGroup group)
          Creates new TextEditBasedChangeGroup for the given TextEditBasedChange and TextEditGroup.
 
Method Summary
  GroupCategorySet getGroupCategorySet ()
          Returns the set of group categories.
  String getName ()
          Returns the groups's name by forwarding the method to the underlying text edit group.
  IRegion getRegion ()
          Returns the region covered by the underlying text edit group.
  TextEditBasedChange getTextEditChange ()
          Returns the text edit change this group belongs to.
  TextEditGroup getTextEditGroup ()
          Returns the underlying text edit group.
  TextEdit[] getTextEdits ()
          Returns the text edits managed by the underlying text edit group.
 boolean isEnabled ()
          Returns whether the group is enabled or not.
 void setEnabled (boolean enabled)
          Marks the group as enabled or disabled.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextEditBasedChangeGroup

public TextEditBasedChangeGroup(
TextEditBasedChange change,
                                
TextEditGroup group)
Creates new TextEditBasedChangeGroup for the given TextEditBasedChange and TextEditGroup.

Parameters:
change - the change owning this text edit change group
group - the underlying text edit group
Method Detail

getTextEditChange

public 
TextEditBasedChange getTextEditChange()
Returns the text edit change this group belongs to.

Returns:
the text edit change this group belongs to

getName

public 
String getName()
Returns the groups's name by forwarding the method to the underlying text edit group.

Returns:
the group's name

getRegion

public 
IRegion getRegion()
Returns the region covered by the underlying text edit group.

Returns:
the region covered by the underlying text edit group

getTextEditGroup

public 
TextEditGroup getTextEditGroup()
Returns the underlying text edit group.

Returns:
the underlying text edit group

getTextEdits

public 
TextEdit[] getTextEdits()
Returns the text edits managed by the underlying text edit group.

Returns:
the text edits managed by the underlying text edit group

isEnabled

public boolean isEnabled()
Returns whether the group is enabled or not.

Returns:
true if the group is marked as enabled; false otherwise

setEnabled

public void setEnabled(boolean enabled)
Marks the group as enabled or disabled. If a group is marked as disabled the text edits managed by the underlying text edit group aren't executed when performing the text change that owns this group.

Parameters:
enabled - true to mark this group as enabled, false to mark it as disabled

getGroupCategorySet

public 
GroupCategorySet getGroupCategorySet()
Returns the set of group categories.

Returns:
the group categories of this change group

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