Fixed shortcut category

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace@132934 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2016-10-07 15:21:41 +00:00
parent c44b40c25d
commit 80695daac2
1 changed files with 5 additions and 5 deletions

View File

@ -88,7 +88,7 @@ public class GxtGridFilterGroupPanel extends LayoutContainer {
ColumnConfig type = new ColumnConfig(FileGridModel.TYPE, FileGridModel.TYPE, 50); ColumnConfig type = new ColumnConfig(FileGridModel.TYPE, FileGridModel.TYPE, 50);
ColumnConfig lastUpdate = new ColumnConfig(FileGridModel.LASTMODIFIED, "Last Update", 100); ColumnConfig lastUpdate = new ColumnConfig(FileGridModel.LASTMODIFIED, "Last Update", 100);
lastUpdate.setDateTimeFormat(DateTimeFormat.getFormat("dd MMM hh:mm aaa yyyy")); lastUpdate.setDateTimeFormat(DateTimeFormat.getFormat("dd MMM hh:mm aaa yyyy"));
ColumnConfig category = new ColumnConfig(FileModel.SHORTCUTCATEGORY, FileModel.SHORTCUTCATEGORY, 100); ColumnConfig category = new ColumnConfig(FileModel.HUMAN_REDABLE_CATEGORY, FileModel.HUMAN_REDABLE_CATEGORY, 100);
ColumnConfig size = new ColumnConfig(FileGridModel.SIZE, FileGridModel.SIZE, 50); ColumnConfig size = new ColumnConfig(FileGridModel.SIZE, FileGridModel.SIZE, 50);
ColumnConfig ownerFullName = new ColumnConfig(FileGridModel.OWNERFULLNAME, FileGridModel.OWNER, 100); ColumnConfig ownerFullName = new ColumnConfig(FileGridModel.OWNERFULLNAME, FileGridModel.OWNER, 100);
@ -116,7 +116,7 @@ public class GxtGridFilterGroupPanel extends LayoutContainer {
view.setEmptyText(FileGridModel.EMPTY); view.setEmptyText(FileGridModel.EMPTY);
if(group){ if(group){
store.groupBy(FileGridModel.SHORTCUTCATEGORY); store.groupBy(FileGridModel.HUMAN_REDABLE_CATEGORY);
groupingEnabled = true; groupingEnabled = true;
} }
@ -278,7 +278,7 @@ public class GxtGridFilterGroupPanel extends LayoutContainer {
if (this.getStore() instanceof GroupingStore) { if (this.getStore() instanceof GroupingStore) {
groupingStore = this.getStore(); groupingStore = this.getStore();
if (groupingStore != null) { if (groupingStore != null) {
groupingStore.groupBy(FileGridModel.SHORTCUTCATEGORY); groupingStore.groupBy(FileGridModel.HUMAN_REDABLE_CATEGORY);
} }
this.groupingEnabled = true; this.groupingEnabled = true;
} }
@ -309,8 +309,8 @@ public class GxtGridFilterGroupPanel extends LayoutContainer {
case DOCUMENT: case DOCUMENT:
case URL_DOCUMENT: case URL_DOCUMENT:
case EXTERNAL_RESOURCE_LINK: case EXTERNAL_RESOURCE_LINK:
AppController.getEventBus().fireEvent(new FileDownloadEvent(target.getIdentifier(), target.getName(), DownloadType.SHOW, (target.isDirectory() || target.isVreFolder()))); AppController.getEventBus().fireEvent(new FileDownloadEvent(target.getIdentifier(), target.getName(), DownloadType.SHOW, target.isDirectory() || target.isVreFolder()));
break; break;
case EXTERNAL_URL: case EXTERNAL_URL:
AppController.getEventBus().fireEvent(new OpenUrlEvent(target)); AppController.getEventBus().fireEvent(new OpenUrlEvent(target));