Revision 702 org.gvsig.scripting/trunk/org.gvsig.scripting/org.gvsig.scripting.swing/org.gvsig.scripting.swing.impl/src/main/java/org/gvsig/scripting/swing/impl/composer/JNewScriptModel.java
JNewScriptModel.java | ||
---|---|---|
1 | 1 |
package org.gvsig.scripting.swing.impl.composer; |
2 | 2 |
|
3 | 3 |
import java.io.File; |
4 |
import javax.swing.tree.TreePath; |
|
4 | 5 |
|
5 | 6 |
import org.gvsig.scripting.ScriptingFolder; |
6 | 7 |
import org.gvsig.scripting.ScriptingManager; |
... | ... | |
19 | 20 |
private String version; |
20 | 21 |
private int action; |
21 | 22 |
private ScriptingManager manager; |
23 |
private TreePath initialSelectedPath = null; |
|
22 | 24 |
|
23 | 25 |
public JNewScriptModel(ScriptingManager manager){ |
24 | 26 |
this.manager = manager; |
... | ... | |
87 | 89 |
public int getAction() { |
88 | 90 |
return action; |
89 | 91 |
} |
92 |
|
|
93 |
void setSelectionPath(TreePath path) { |
|
94 |
this.initialSelectedPath = path; |
|
95 |
} |
|
96 |
|
|
97 |
TreePath getSelectionPath() { |
|
98 |
return this.initialSelectedPath; |
|
99 |
} |
|
90 | 100 |
|
91 | 101 |
} |
Also available in: Unified diff