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 * @author Martin Kollar Created on 20.11.2005
21 *
22 */
23 public class EditTextRequest extends Request {
24 /***
25 * Source, keeper where editing starts.
26 */
27 private ITextPieceKeeper source;
28
29 /***
30 * @see RequestConstants
31 *
32 * @param source
33 * ITextPieceKeeper on that text editing starts
34 */
35 public EditTextRequest(ITextPieceKeeper source) {
36 super(RequestConstants.EDIT_TEXT_REQUEST);
37 this.source = source;
38 }
39
40 /***
41 * @return ITextPieceKeeper on that text editing started
42 */
43 public ITextPieceKeeper getSource() {
44 return this.source;
45 }
46 }