summaryrefslogtreecommitdiff
path: root/scripting/java/org/openoffice/netbeans/modules/office/nodes/ScriptNode.java
diff options
context:
space:
mode:
Diffstat (limited to 'scripting/java/org/openoffice/netbeans/modules/office/nodes/ScriptNode.java')
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/nodes/ScriptNode.java75
1 files changed, 0 insertions, 75 deletions
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/nodes/ScriptNode.java b/scripting/java/org/openoffice/netbeans/modules/office/nodes/ScriptNode.java
index f4f83409d34d..3e95cef8949c 100644
--- a/scripting/java/org/openoffice/netbeans/modules/office/nodes/ScriptNode.java
+++ b/scripting/java/org/openoffice/netbeans/modules/office/nodes/ScriptNode.java
@@ -117,82 +117,7 @@ public class ScriptNode extends AbstractNode {
return value;
}
- /* public void setValue(Object obj) {
- System.out.println("Setting value to: " + obj.toString());
-
- if ((value instanceof String) != true)
- throw new IllegalArgumentException(name +
- " property must be of type String");
-
- value = obj.toString();
- if (name.equals(LOGICAL_NAME)) {
- sn.setName(value);
- sn.setDisplayName(value.substring(value.lastIndexOf(".") + 1));
- sn.setShortDescription(value);
- }
- } */
}
- /* public boolean canRename() {
- return true;
- }
-
- public void setName(String nue) {
- // Update visible name, fire property changes:
- super.setName(nue);
- } */
-
- /*
- public boolean canDestroy() {
- return true;
- }
- public void destroy() throws IOException {
- // Actually remove the node itself and fire property changes:
- super.destroy();
- // perform additional actions, i.e. delete underlying object
- } */
-
- // Handle copying and cutting specially:
- /*
- public boolean canCopy() {
- return true;
- }
- public boolean canCut() {
- return true;
- }
- public Transferable clipboardCopy() {
- // Add to, do not replace, the default node copy flavor:
- ExTransferable et = ExTransferable.create(super.clipboardCopy());
- et.put(new ExTransferable.Single(DataFlavor.stringFlavor) {
- protected Object getData() {
- return ScriptNode.this.getDisplayName();
- }
- });
- return et;
- }
- public Transferable clipboardCut() {
- // Add to, do not replace, the default node cut flavor:
- ExTransferable et = ExTransferable.create(super.clipboardCut());
- // This is not so useful because this node will not be destroyed afterwards
- // (it is up to the paste type to decide whether to remove the "original",
- // and it is not safe to assume that getData will only be called once):
- et.put(new ExTransferable.Single(DataFlavor.stringFlavor) {
- protected Object getData() {
- return ScriptNode.this.getDisplayName();
- }
- });
- return et;
- }
- */
-
- // Permit user to customize whole node at once (instead of per-property):
- /*
- public boolean hasCustomizer() {
- return true;
- }
- public Component getCustomizer() {
- return new MyCustomizingPanel(this);
- }
- */
}