Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Schwarz2012-04-03 01:06:38 -0400
committerUwe Stieber2012-04-03 01:06:38 -0400
commit8b3ada439679338d3c181de460e2c1a38013feec (patch)
tree253dac4c446dab0ca65ebdd1c50e3b0e06a845ec /target_explorer/plugins/org.eclipse.tcf.te.runtime.persistence/src/org/eclipse/tcf/te/runtime/persistence
parentc9c3d2e02340618caa2631dc3382245f47196038 (diff)
downloadorg.eclipse.tcf-8b3ada439679338d3c181de460e2c1a38013feec.tar.gz
org.eclipse.tcf-8b3ada439679338d3c181de460e2c1a38013feec.tar.xz
org.eclipse.tcf-8b3ada439679338d3c181de460e2c1a38013feec.zip
Target Explorer: FIX persistence delegate contribution
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.runtime.persistence/src/org/eclipse/tcf/te/runtime/persistence')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.runtime.persistence/src/org/eclipse/tcf/te/runtime/persistence/interfaces/IURIPersistenceService.java4
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.runtime.persistence/src/org/eclipse/tcf/te/runtime/persistence/services/URIPersistenceService.java4
2 files changed, 4 insertions, 4 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.persistence/src/org/eclipse/tcf/te/runtime/persistence/interfaces/IURIPersistenceService.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime.persistence/src/org/eclipse/tcf/te/runtime/persistence/interfaces/IURIPersistenceService.java
index fdcb6c77e..585c75d38 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.runtime.persistence/src/org/eclipse/tcf/te/runtime/persistence/interfaces/IURIPersistenceService.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.persistence/src/org/eclipse/tcf/te/runtime/persistence/interfaces/IURIPersistenceService.java
@@ -36,12 +36,12 @@ public interface IURIPersistenceService extends IService {
* If the given URI is <code>null</code>, it will be determined by adapting the context
* to a {@link IPersistableURIProvider}. In this case the context must not be <code>null</code>.
*
- * @param uri The URI. Must not be <code>null</code>.
* @param context The context object or <code>null</code>.
+ * @param uri The URI. Must not be <code>null</code>.
*
* @throws IOException - if the operation fails
*/
- public Object read(URI uri, Object context) throws IOException;
+ public Object read(Object context, URI uri) throws IOException;
/**
* Deletes the persistence storage for the given context object via a persistence delegate.
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.persistence/src/org/eclipse/tcf/te/runtime/persistence/services/URIPersistenceService.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime.persistence/src/org/eclipse/tcf/te/runtime/persistence/services/URIPersistenceService.java
index 41942ce5f..439ef0756 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.runtime.persistence/src/org/eclipse/tcf/te/runtime/persistence/services/URIPersistenceService.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.persistence/src/org/eclipse/tcf/te/runtime/persistence/services/URIPersistenceService.java
@@ -47,10 +47,10 @@ public class URIPersistenceService extends AbstractService implements IURIPersis
}
/* (non-Javadoc)
- * @see org.eclipse.tcf.te.runtime.persistence.interfaces.IURIPersistenceService#read(java.net.URI, java.lang.Object)
+ * @see org.eclipse.tcf.te.runtime.persistence.interfaces.IURIPersistenceService#read(java.lang.Object, java.net.URI)
*/
@Override
- public Object read(URI uri, Object context) throws IOException {
+ public Object read(Object context, URI uri) throws IOException {
Assert.isNotNull(context);
uri = uri != null ? uri : getURI(context);

Back to the top