1
2
3
4
5
6
7
8
9
10
11
12 package sk.uniba.euromath.editor.textEditor.requests.editTextRequests;
13
14 import org.eclipse.gef.Request;
15
16 import sk.uniba.euromath.editor.textEditor.ITextPieceKeeper;
17 import sk.uniba.euromath.editor.textEditor.requests.RequestConstants;
18
19 /***
20 * TODO Kollar naco je destination + okomentovat
21 * @author Martin Kollar Created on 20.11.2005
22 *
23 */
24 public class EditTextRequest extends Request {
25
26 private ITextPieceKeeper source;
27
28 private ITextPieceKeeper destination;
29
30 /***
31 * @see RequestConstants
32 *
33 * @param source
34 * ITextPieceKeeper on that text editing starts
35 */
36 public EditTextRequest(ITextPieceKeeper source) {
37 super(RequestConstants.EDIT_TEXT_REQUEST);
38 this.source = source;
39 setDestination(source);
40 }
41
42 /***
43 * @return ITextPieceKeeper on that text editing started
44 */
45 public ITextPieceKeeper getSource() {
46 return this.source;
47 }
48
49 public ITextPieceKeeper getDestination() {
50 return this.destination;
51 }
52
53 public void setDestination(ITextPieceKeeper destination) {
54 this.destination = destination;
55 }
56
57 }