|
|
|
@ -4,6 +4,7 @@ import java.util.ArrayList;
|
|
|
|
|
import java.util.Date; |
|
|
|
|
import java.util.HashMap; |
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.Map; |
|
|
|
|
import java.util.logging.Level; |
|
|
|
|
import java.util.logging.Logger; |
|
|
|
|
|
|
|
|
@ -358,7 +359,7 @@ public class AppController implements SubscriberInterface {
|
|
|
|
|
file = getGridSelectedItem(); |
|
|
|
|
|
|
|
|
|
if(file!=null) { |
|
|
|
|
showDetails(file); |
|
|
|
|
showDetails(file,AppControllerExplorer.mapOfAllowedMimeTypesForPreview); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
@ -446,7 +447,7 @@ public class AppController implements SubscriberInterface {
|
|
|
|
|
|
|
|
|
|
//showing item details if east panel is visible
|
|
|
|
|
if(getMainPanel().getEastPanel().isVisible()) { |
|
|
|
|
showDetails(event.getSourceFile()); |
|
|
|
|
showDetails(event.getSourceFile(),AppControllerExplorer.mapOfAllowedMimeTypesForPreview); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}else{ //IS MULTISELECTION
|
|
|
|
@ -2300,7 +2301,7 @@ public class AppController implements SubscriberInterface {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void showDetails(FileModel fileModel) { |
|
|
|
|
public void showDetails(FileModel fileModel, Map<String,List<String>> mapAllowedMimeTypesForPreview) { |
|
|
|
|
GWT.log("show details for: "+fileModel.getName()); |
|
|
|
|
final ContentPanel eastPanel = this.getMainPanel().getEastPanel(); |
|
|
|
|
eastPanel.removeAll(); |
|
|
|
@ -2314,7 +2315,7 @@ public class AppController implements SubscriberInterface {
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
ScrollPanel panel = new ScrollPanel(); |
|
|
|
|
DialogGetInfoBootstrap dlg = new DialogGetInfoBootstrap(fileModel, onCloseCommand); |
|
|
|
|
DialogGetInfoBootstrap dlg = new DialogGetInfoBootstrap(fileModel, onCloseCommand, mapAllowedMimeTypesForPreview); |
|
|
|
|
panel.add(dlg); |
|
|
|
|
eastPanel.add(panel); |
|
|
|
|
eastPanel.setVisible(true); |
|
|
|
|