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;h=9f44f1611eef1dc5c8ffd75cb057f7fc4a551033;hb=dc95cc0fdc36c88e778cdfd52d443d0a0b8d926c;hp=f10a32e190f5d0b75c832e6cb4b25819841707bb;hpb=3c8e43e258464f8efe44c80f2a4f5c3080f28d4f;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 f10a32e19..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 @@ -1,5 +1,5 @@ /* - * Copyright (C) 2007-2012 Mathieu Baudier + * Copyright (C) 2007-2012 Argeo GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -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; @@ -137,7 +133,7 @@ public class ArtifactsBrowserPage extends FormPage implements DistConstants, viewer.setContentProvider(new ArtifactsTreeContentProvider()); viewer.setLabelProvider(new ArtifactLabelProvider()); viewer.addSelectionChangedListener(new ArtifactTreeSelectionListener()); - viewer.addDoubleClickListener(new GenericDoubleClickListener(viewer)); + viewer.addDoubleClickListener(new GenericDoubleClickListener()); viewer.setInput(rootNode); return viewer; @@ -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