X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=plugins%2Forg.argeo.slc.client.ui.dist%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fclient%2Fui%2Fdist%2Feditors%2FArtifactsBrowserPage.java;fp=plugins%2Forg.argeo.slc.client.ui.dist%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fclient%2Fui%2Fdist%2Feditors%2FArtifactsBrowserPage.java;h=9f44f1611eef1dc5c8ffd75cb057f7fc4a551033;hb=9df777e4120393be73dab723eb3189b1ec216965;hp=f8979dea8a4b10276e4dda971766ac2861f66460;hpb=bd06b3358f8c754765fcb222ac3b2273d0d56c37;p=gpl%2Fargeo-slc.git diff --git a/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/editors/ArtifactsBrowserPage.java b/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/editors/ArtifactsBrowserPage.java index f8979dea8..9f44f1611 100644 --- a/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/editors/ArtifactsBrowserPage.java +++ b/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/editors/ArtifactsBrowserPage.java @@ -20,13 +20,9 @@ import java.text.SimpleDateFormat; import javax.jcr.Node; import javax.jcr.Property; -import javax.jcr.PropertyType; import javax.jcr.RepositoryException; import javax.jcr.Session; -import javax.jcr.Value; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; import org.argeo.ArgeoException; import org.argeo.jcr.JcrUtils; import org.argeo.slc.client.ui.dist.DistConstants; @@ -62,8 +58,8 @@ import org.eclipse.ui.forms.widgets.ScrolledForm; public class ArtifactsBrowserPage extends FormPage implements DistConstants, RepoConstants { final static String PAGE_ID = "artifactsBrowserPage"; - private final static Log log = LogFactory - .getLog(ArtifactsBrowserPage.class); + // private final static Log log = LogFactory + // .getLog(ArtifactsBrowserPage.class); /* DEPENDENCY INJECTION */ private Session jcrSession; @@ -264,23 +260,23 @@ public class ArtifactsBrowserPage extends FormPage implements DistConstants, return null; } - private String formatValueAsString(Value value) { - // TODO enhance this method - try { - String strValue; - - if (value.getType() == PropertyType.BINARY) - strValue = ""; - else if (value.getType() == PropertyType.DATE) - strValue = timeFormatter.format(value.getDate().getTime()); - else - strValue = value.getString(); - return strValue; - } catch (RepositoryException e) { - throw new ArgeoException( - "unexpected error while formatting value", e); - } - } + // private String formatValueAsString(Value value) { + // // TODO enhance this method + // try { + // String strValue; + // + // if (value.getType() == PropertyType.BINARY) + // strValue = ""; + // else if (value.getType() == PropertyType.DATE) + // strValue = timeFormatter.format(value.getDate().getTime()); + // else + // strValue = value.getString(); + // return strValue; + // } catch (RepositoryException e) { + // throw new ArgeoException( + // "unexpected error while formatting value", e); + // } + // } } private class ArtifactTreeSelectionListener implements