projects
/
lgpl
/
argeo-commons.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove 32 bits SWT.
[lgpl/argeo-commons.git]
/
org.argeo.cms.ui.workbench
/
src
/
org
/
argeo
/
cms
/
ui
/
workbench
/
internal
/
jcr
/
parts
/
GenericNodeEditorInput.java
diff --git
a/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/jcr/parts/GenericNodeEditorInput.java
b/org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/jcr/parts/GenericNodeEditorInput.java
index c87127b89ad46ade7f075718d2998eade164a720..43866945c0c7a4c56a1dadda8587b1f304d2f62b 100644
(file)
--- a/
org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/jcr/parts/GenericNodeEditorInput.java
+++ b/
org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/internal/jcr/parts/GenericNodeEditorInput.java
@@
-23,15
+23,12
@@
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IPersistableElement;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IPersistableElement;
-/**
- * An editor input based the JCR node object.
- * */
-
+/** Editor input for {@link Node} editors */
public class GenericNodeEditorInput implements IEditorInput {
private final Node currentNode;
public class GenericNodeEditorInput implements IEditorInput {
private final Node currentNode;
- //
cache key properties at creation time to avoid Exception at recoring time
- // when the session has been closed
+ //
Caches key properties at creation time to avoid Exception at recovering
+ //
time
when the session has been closed
private String path;
private String uid;
private String name;
private String path;
private String uid;
private String name;
@@
-43,9
+40,7
@@
public class GenericNodeEditorInput implements IEditorInput {
uid = currentNode.getIdentifier();
path = currentNode.getPath();
} catch (RepositoryException re) {
uid = currentNode.getIdentifier();
path = currentNode.getPath();
} catch (RepositoryException re) {
- throw new EclipseUiException(
- "unexpected error while getting node key values at creation time",
- re);
+ throw new EclipseUiException("Cannot cache the key properties for " + currentNode, re);
}
}
}
}
@@
-53,6
+48,7
@@
public class GenericNodeEditorInput implements IEditorInput {
return currentNode;
}
return currentNode;
}
+ @SuppressWarnings("unchecked")
public Object getAdapter(@SuppressWarnings("rawtypes") Class adapter) {
return null;
}
public Object getAdapter(@SuppressWarnings("rawtypes") Class adapter) {
return null;
}
@@
-86,11
+82,11
@@
public class GenericNodeEditorInput implements IEditorInput {
}
/**
}
/**
- *
e
quals method based on UID that is unique within a workspace and path of
+ *
E
quals method based on UID that is unique within a workspace and path of
* the node, thus 2 shared node that have same UID as defined in the spec
* the node, thus 2 shared node that have same UID as defined in the spec
- * but 2 different path
e
s will open two distinct editors.
+ * but 2 different paths will open two distinct editors.
*
*
- * TODO enhance this method to support multi
repository and multi
workspace
+ * TODO enhance this method to support multi
repository and multi
workspace
* environments
*/
public boolean equals(Object obj) {
* environments
*/
public boolean equals(Object obj) {