import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.Text;
+
+/** Simple UI provider that populates a composite parent given a NIO path */
public class AdvancedFsBrowser {
private final static Log log = LogFactory.getLog(AdvancedFsBrowser.class);
// Some local constants to experiment. should be cleaned
// private final static int THUMBNAIL_WIDTH = 400;
// private Point imageWidth = new Point(250, 0);
-
private final static int COLUMN_WIDTH = 160;
private Path initialPath;
import org.eclipse.jface.viewers.ColumnLabelProvider;
import org.eclipse.swt.graphics.Image;
+/** Basic label provider with icon for NIO file viewers */
public class FileIconNameLabelProvider extends ColumnLabelProvider {
private static final long serialVersionUID = 8187902187946523148L;
import java.util.Arrays;
import java.util.List;
-/** Centralize additionnal utilitary methods to manage Java7 NIO files */
+/** Centralise additional utilitary methods to manage Java7 NIO files */
public class FsUiUtils {
/**
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.Tree;
-/** Draft for some UI upon Java 7 nio files api */
+/** A simple Java 7 nio files browser with a tree */
public class SimpleFsTreeBrowser extends Composite {
private final static Log log = LogFactory.getLog(SimpleFsTreeBrowser.class);
private static final long serialVersionUID = -40347919096946585L;
public void setHeaderLabel(String headerLabel) {
super.setLabel(headerLabel);
}
-}
\ No newline at end of file
+}
protected void setDirection(int direction) {
this.direction = direction;
}
-}
\ No newline at end of file
+}
setDirection(NodeViewerComparator.ASCENDING);
}
}
-}
\ No newline at end of file
+}
public void setNumberFormat(String numberFormatPattern) {
((DecimalFormat) numberFormat).applyPattern(numberFormatPattern);
}
-}
\ No newline at end of file
+}
+ " from row " + element, re);
}
}
-}
\ No newline at end of file
+}
return tvc;
}
-}
\ No newline at end of file
+}
<name>Argeo Commons</name>
<packaging>pom</packaging>
<properties>
- <version.argeo-commons>2.1.62-SNAPSHOT</version.argeo-commons>
+ <version.argeo-commons>2.1.62</version.argeo-commons>
<developmentCycle.argeo-commons>2.1</developmentCycle.argeo-commons>
<developmentCycle.argeo-commons.startDate>2012-12-19</developmentCycle.argeo-commons.startDate>
<version.argeo-distribution>2.1.17</version.argeo-distribution>