Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorustieber2011-08-10 12:11:57 +0000
committerustieber2011-08-10 12:11:57 +0000
commit8c15d37050a125c94cde2bead7d357fa356f233d (patch)
treee88e9d4afcc46830b767d2994fa0fbf090578694
parentcd2f5059561fbc61f7f2ecabaa1b80d3f736b0f4 (diff)
downloadorg.eclipse.tcf-8c15d37050a125c94cde2bead7d357fa356f233d.tar.gz
org.eclipse.tcf-8c15d37050a125c94cde2bead7d357fa356f233d.tar.xz
org.eclipse.tcf-8c15d37050a125c94cde2bead7d357fa356f233d.zip
Target Explorer: Added missing method declaration delete(IPath) to IPersistenceDelegate
-rw-r--r--target_explorer/plugins/org.eclipse.tm.te.core.persistence/src/org/eclipse/tm/te/core/persistence/interfaces/IPersistenceDelegate.java33
1 files changed, 33 insertions, 0 deletions
diff --git a/target_explorer/plugins/org.eclipse.tm.te.core.persistence/src/org/eclipse/tm/te/core/persistence/interfaces/IPersistenceDelegate.java b/target_explorer/plugins/org.eclipse.tm.te.core.persistence/src/org/eclipse/tm/te/core/persistence/interfaces/IPersistenceDelegate.java
index 5263b31fa..ba95d8eec 100644
--- a/target_explorer/plugins/org.eclipse.tm.te.core.persistence/src/org/eclipse/tm/te/core/persistence/interfaces/IPersistenceDelegate.java
+++ b/target_explorer/plugins/org.eclipse.tm.te.core.persistence/src/org/eclipse/tm/te/core/persistence/interfaces/IPersistenceDelegate.java
@@ -27,6 +27,12 @@ public interface IPersistenceDelegate extends IExecutableExtension {
* If the persistence delegate implements a file less storage,
* the <code>&quot;path&quot;</code> parameter might be ignored or
* set to <code>null</code>.
+ * <p>
+ * If the persistence delegate implements a file based storage,
+ * the persistence delegate contributor defines the exact semantic
+ * of the <code>&quot;path&quot;</code> parameter. If and how
+ * relative path information are processed may differ between
+ * the delegate implementations.
*
* @param path The persistence storage path or <code>null</code>.
* @param data The data. Must not be <code>null</code>.
@@ -42,6 +48,12 @@ public interface IPersistenceDelegate extends IExecutableExtension {
* If the persistence delegate implements a file less storage,
* the <code>&quot;path&quot;</code> parameter might be ignored or
* set to <code>null</code>.
+ * <p>
+ * If the persistence delegate implements a file based storage,
+ * the persistence delegate contributor defines the exact semantic
+ * of the <code>&quot;path&quot;</code> parameter. If and how
+ * relative path information are processed may differ between
+ * the delegate implementations.
*
* @param path The persistence storage path or <code>null</code>.
* @return The data.
@@ -49,4 +61,25 @@ public interface IPersistenceDelegate extends IExecutableExtension {
* @throws IOException - if the operation fails
*/
public IPropertiesContainer read(IPath path) throws IOException;
+
+ /**
+ * Deletes the persistence storage given by the <code>&quot;path&quot;</code>
+ * parameter.
+ * <p>
+ * If the persistence delegate implements a file less storage,
+ * the <code>&quot;path&quot;</code> parameter might be ignored or
+ * set to <code>null</code>.
+ * <p>
+ * If the persistence delegate implements a file based storage,
+ * the persistence delegate contributor defines the exact semantic
+ * of the <code>&quot;path&quot;</code> parameter. If and how
+ * relative path information are processed may differ between
+ * the delegate implementations.
+ *
+ * @param path The persistence storage path or <code>null</code>.
+ * @return <code>True</code> if the persistence storage is successfully deleted; <code>false</code> otherwise.
+ *
+ * @throws IOException - if the operation fails
+ */
+ public boolean delete(IPath path) throws IOException;
}

Back to the top