Community
Participate
Working Groups
RepositoryAttachment attachment = (RepositoryAttachment) element;
switch (columnIndex) {
case 0:
return " " + attachment.getDescription();
return attachment.getAttributeValue("filename");
case 1:
case 2:
if (attachment.isPatch()) {
return "patch";
} else {
return attachment.getContentType();
}
return attachment.getCreator();
case 3:
case 4:
// TODO should retrieve Date object from IOfflineTaskHandler
return this.AbstractTaskEditor.formatDate(attachment.getDateCreated());
private TableViewer attachmentsTableViewer;
private String[] attachmentsColumns = { "Description", "Type", "Creator", "Created" };
private String[] attachmentsColumns = { "Name", "Description", "Type", "Creator", "Created" };
private int[] attachmentsColumnWidths = { 200, 100, 100, 200 };
private int[] attachmentsColumnWidths = { 150, 200, 100, 100, 200 };
private Composite editorComposite;