提交 b6670275 编写于 作者: J jurgen

Project explorer date sort fix.

Teradata config fix

Former-commit-id: 12874623
上级 3ed4e66a
......@@ -131,15 +131,14 @@ public class ProjectExplorerView extends NavigatorViewBase implements DBPProject
}
}));
columnController.addColumn("Modified", "Time the file was last modified", SWT.LEFT, false, false, new TreeColumnViewerLabelProvider(new LabelProvider() {
private SimpleDateFormat sdf = new SimpleDateFormat("yyyy.MM.dd HH:mm");
@Override
public String getText(Object element) {
DBNNode node = (DBNNode) element;
if (node instanceof DBNResource) {
IResource resource = ((DBNResource) node).getResource();
if (resource instanceof IFile) {
return
SimpleDateFormat.getDateTimeInstance(SimpleDateFormat.SHORT, SimpleDateFormat.SHORT)
.format(new Date(resource.getLocation().toFile().lastModified()));
return sdf.format(new Date(resource.getLocation().toFile().lastModified()));
}
}
return "";
......
......@@ -520,6 +520,7 @@
class="com.ncr.teradata.TeraDriver"
sampleURL="jdbc:teradata://{host}/{database}"
defaultPort=""
webURL="https://downloads.teradata.com/download/connectivity/jdbc-driver"
description="Teradata JDBC driver">
<file type="jar" path="drivers/teradata/terajdbc4.jar"/>
<file type="jar" path="drivers/teradata/tdgssconfig.jar"/>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册