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