integrated with map of allowed mime-types

task/19600
Francesco Mangiacrapa 4 years ago
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="/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/java"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/> <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="java-output-path" value="/${module}/target/www/WEB-INF/classes"/>
<property name="context-root" value="workspace"/> <property name="context-root" value="workspace"/>
</wb-module> </wb-module>

@ -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);

Loading…
Cancel
Save