1 /* 2 * Copyright 1999-2006 Faculty of Mathematics, Physics and Informatics, Comenius 3 * University, Bratislava. This file is protected by the Mozilla Public License 4 * version 1.1 (the License); you may not use this file except in compliance 5 * with the License. You may obtain a copy of the License at 6 * http://euromath2.sourceforge.net/license.html Unless required by applicable 7 * law or agreed to in writing, software distributed under the License is 8 * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 9 * KIND, either express or implied. See the License for the specific language 10 * governing permissions and limitations under the License. 11 */ 12 package sk.uniba.euromath.editor.xmlEditor; 13 14 import org.eclipse.gef.EditDomain; 15 16 /*** 17 * XML editor specific EditDomain. 18 * @author Tomáš Studva 19 * 7.2.2006 20 */ 21 public class XMLEditDomain extends EditDomain { 22 23 /*** 24 * XMLEditor instance. 25 */ 26 private final XMLEditor xmlEditor; 27 28 /*** 29 * Contructor. 30 * @param xmlEditor instance 31 */ 32 public XMLEditDomain(XMLEditor xmlEditor) { 33 super(); 34 this.xmlEditor = xmlEditor; 35 } 36 37 /*** 38 * Returns XMLEditor instance 39 * @return the XMLEditor 40 */ 41 public XMLEditor getXMLEditor() { 42 return this.xmlEditor; 43 } 44 }