Initialize
[sdk/ide/product.git] / org.eclipse.jst.pagedesigner / src / org / eclipse / jst / pagedesigner / actions / single / SelectNodeAction.java
1 /*******************************************************************************\r
2  * Copyright (c) 2001, 2007 Oracle Corporation and others.\r
3  * All rights reserved. This program and the accompanying materials\r
4  * are made available under the terms of the Eclipse Public License v1.0\r
5  * which accompanies this distribution, and is available at\r
6  * http://www.eclipse.org/legal/epl-v10.html\r
7  * \r
8  * Contributors:\r
9  *     Oracle Corporation - initial API and implementation\r
10  *******************************************************************************/\r
11 package org.eclipse.jst.pagedesigner.actions.single;\r
12 \r
13 import org.w3c.dom.Node;\r
14 \r
15 /**\r
16  * An edit part selection action that corresponds to a Node selection\r
17  */\r
18 public abstract class SelectNodeAction extends SelectEditPartAction \r
19 {\r
20     private final Node  _node;\r
21 \r
22     /**\r
23      * @param text\r
24      * @param curNode\r
25      */\r
26     protected SelectNodeAction(String text, Node curNode) {\r
27         super(text);\r
28         _node = curNode;\r
29     }\r
30 \r
31     /**\r
32      * @return the current node\r
33      */\r
34     protected Node getNode() {\r
35         return _node;\r
36     }\r
37 }\r