|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 package com.nokia.carbide.internal.cpp.epoc.engine.model; |
|
18 |
|
19 import com.nokia.carbide.internal.api.cpp.epoc.engine.dom.IASTNode; |
|
20 import com.nokia.cpp.internal.api.utils.core.*; |
|
21 |
|
22 public interface IViewAddModification extends IViewModification { |
|
23 /** |
|
24 * Get the parent into which to add the new node(s). References |
|
25 * to an IASTTranslationUnit are aliased to that TU's #getNodes() node |
|
26 * for convenience. |
|
27 * <p> |
|
28 * The parent may be a specific preparser DOM node (usually the |
|
29 * translation unit) in order to add content to a specific file. |
|
30 * |
|
31 * @return language node or preparser node |
|
32 */ |
|
33 IASTNode getParent(); |
|
34 |
|
35 /** Get the nodes between which to add the modification. This may |
|
36 * represent an enclosed addition, an addition before a node, |
|
37 * an addition after a node, or an addition anywhere. |
|
38 * |
|
39 * @return pair of nodes, where the first is the 'before' node, or |
|
40 * null, and the second is the 'after' node, or null. If both are |
|
41 */ |
|
42 Pair<IASTNode, IASTNode> getInsertAnchors(); |
|
43 } |