diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-11 15:58:09 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-14 10:59:48 +0200 |
commit | ac5954d7c540f34702033d7d951d1d16cb96730a (patch) | |
tree | 310ba9698a10c74662de0714db683f932de32b0c /scripting/java/org/openoffice/netbeans/modules/office | |
parent | remove usage of DOCPTH and CNCSTR (diff) | |
download | core-ac5954d7c540f34702033d7d951d1d16cb96730a.tar.gz core-ac5954d7c540f34702033d7d951d1d16cb96730a.zip |
java: remove commented out code
Change-Id: I05c907a38b562231e968c17f14e09ef80e0a6ed1
Diffstat (limited to 'scripting/java/org/openoffice/netbeans/modules/office')
3 files changed, 1 insertions, 81 deletions
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/filesystem/OpenOfficeDocFileSystem.java b/scripting/java/org/openoffice/netbeans/modules/office/filesystem/OpenOfficeDocFileSystem.java index dac253f470f2..1a73873cb243 100644 --- a/scripting/java/org/openoffice/netbeans/modules/office/filesystem/OpenOfficeDocFileSystem.java +++ b/scripting/java/org/openoffice/netbeans/modules/office/filesystem/OpenOfficeDocFileSystem.java @@ -110,7 +110,6 @@ public class OpenOfficeDocFileSystem attr = defattr; list = defattr; - // transfer = new TransferImpl(); setRefreshTime(REFRESH_OFF); } @@ -1032,9 +1031,7 @@ System.out.println(" exception: " + ioe.getMessage()); public void rename(String name) throws IOException { -// throw new IOException( -// "cannot rename readonly file: " + getName()); // I18N - // BUG: this is the design bug. Cache has to mamage such kind + // BUG: this is the design bug. Cache has to manage such kind // of operation in order to keep the data integrity. this.name = name; } 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); - } - */ } diff --git a/scripting/java/org/openoffice/netbeans/modules/office/wizard/ParcelContentsIterator.java b/scripting/java/org/openoffice/netbeans/modules/office/wizard/ParcelContentsIterator.java index 7fbcd34bfe97..a48ff2d1592f 100644 --- a/scripting/java/org/openoffice/netbeans/modules/office/wizard/ParcelContentsIterator.java +++ b/scripting/java/org/openoffice/netbeans/modules/office/wizard/ParcelContentsIterator.java @@ -62,8 +62,6 @@ public class ParcelContentsIterator implements TemplateWizard.Iterator { protected WizardDescriptor.Panel[] createPanels() { return new WizardDescriptor.Panel[] { - // keep the default 2nd panel: - // wiz.targetChooser(), new ParcelPropertiesPanel(), }; } |