blob: 8c1fccd9d8269eae44663d14b5a71cd1e2c98057 [file] [log] [blame]
itrimble38bf0b92006-10-30 18:59:16 +00001/*******************************************************************************
2 * Copyright (c) 2006 Sybase, Inc. and others.
3 *
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *
9 * Contributors:
10 * Sybase, Inc. - initial API and implementation
11 *******************************************************************************/
12package org.eclipse.jst.pagedesigner.validation.caret;
13
14import org.eclipse.gef.EditPart;
15
16/**
17 * @author mengbo
18 */
19public interface IMovementMediator extends IPositionMediator {
cbateman42493702007-10-10 00:59:58 +000020 /**
21 * @param target
22 * @return true if mediator allows movment in
23 */
itrimble38bf0b92006-10-30 18:59:16 +000024 public boolean allowsMoveIn(Target target);
25
cbateman42493702007-10-10 00:59:58 +000026 /**
27 * @param target
28 * @return true if mediator allows movement out
29 */
itrimble38bf0b92006-10-30 18:59:16 +000030 public boolean allowsMoveOut(Target target);
31
32 /**
33 * Return a closest parent part which is editable, and it can't moveout.
34 *
35 * @param target
36 * @return if taget part is editable, then returns itself.
37 */
38 public EditPart getConstainedEditableContainer(Target target);
39
40}