KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ltk > core > refactoring > TextEditChangeGroup


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.ltk.core.refactoring;
12
13 import org.eclipse.text.edits.TextEditGroup;
14
15 /**
16  * This class is a wrapper around a {@link TextEditGroup TextEditGroup}
17  * adding support for marking a group as active and inactive.
18  * <p>
19  * Note: this class is not intended to be extended by clients.
20  * </p>
21  *
22  * @see TextEditGroup
23  *
24  * @since 3.0
25  */

26 public class TextEditChangeGroup extends TextEditBasedChangeGroup {
27
28     /**
29      * Creates new <code>TextEditChangeGroup</code> for the given <code>
30      * TextChange</code> and <code>TextEditGroup</code>.
31      *
32      * @param change the change owning this text edit change group
33      * @param group the underlying text edit group
34      */

35     public TextEditChangeGroup(TextChange change, TextEditGroup group) {
36         super(change, group);
37     }
38
39     /**
40      * Returns the text change this group belongs to.
41      *
42      * @return the text change this group belongs to
43      */

44     public TextChange getTextChange() {
45         return (TextChange) getTextEditChange();
46     }
47 }
48
Popular Tags