integrated with map of allowed mime-types
This commit is contained in:
parent
ce3a4d67f3
commit
ae774feca6
|
@ -5,9 +5,6 @@
|
|||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/target/generated-sources/gwt"/>
|
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
|
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
|
||||
<dependent-module archiveName="storagehub-client-wrapper-1.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/storagehub-client-wrapper/storagehub-client-wrapper">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<property name="java-output-path" value="/${module}/target/www/WEB-INF/classes"/>
|
||||
<property name="context-root" value="workspace"/>
|
||||
</wb-module>
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue