This commit is contained in:
Massimiliano Assante 2018-05-23 12:52:23 +00:00
parent f04d2bb969
commit 90249b47ee
12 changed files with 67 additions and 7 deletions

View File

@ -18,6 +18,12 @@
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
<attributes> <attributes>
<attribute name="maven.pomderived" value="true"/> <attribute name="maven.pomderived" value="true"/>
</attributes> </attributes>

View File

@ -5,6 +5,11 @@
<projects> <projects>
</projects> </projects>
<buildSpec> <buildSpec>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand> <buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name> <name>org.eclipse.jdt.core.javabuilder</name>
<arguments> <arguments>
@ -15,9 +20,17 @@
<arguments> <arguments>
</arguments> </arguments>
</buildCommand> </buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec> </buildSpec>
<natures> <natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature> <nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature> <nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
</natures> </natures>
</projectDescription> </projectDescription>

View File

@ -1,4 +1,5 @@
eclipse.preferences.version=1 eclipse.preferences.version=1
encoding//src/main/java=UTF-8 encoding//src/main/java=UTF-8
encoding//src/main/resources=UTF-8
encoding//src/test/java=UTF-8 encoding//src/test/java=UTF-8
encoding/<project>=UTF-8 encoding/<project>=UTF-8

View File

@ -1,5 +1,8 @@
eclipse.preferences.version=1 eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.compliance=1.7 org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.source=1.7 org.eclipse.jdt.core.compiler.source=1.7

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="storagehub-icons-library">
<wb-resource deploy-path="/" source-path="/src/main/java"/>
<wb-resource deploy-path="/" source-path="/src/main/resources"/>
</wb-module>
</project-modules>

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<installed facet="java" version="1.7"/>
<installed facet="jst.utility" version="1.0"/>
</faceted-project>

View File

@ -76,6 +76,12 @@ public class IconsManager {
return new MDIcon("movie_creation", "#90caf9"); return new MDIcon("movie_creation", "#90caf9");
if (extension.equals( "html") ||extension.equals( "htm") || extension.equals( "jsp") || extension.equals( "asp") || extension.equals( "php")) if (extension.equals( "html") ||extension.equals( "htm") || extension.equals( "jsp") || extension.equals( "asp") || extension.equals( "php"))
return new MDIcon("web", "#0277bd"); return new MDIcon("web", "#0277bd");
if (extension.equals( "java")
|| extension.equals( "r"))
return new MDIcon("code", "#000"); // black
if (extension.equals( "java")
|| extension.endsWith("xml"))
return new MDIcon("assignment", "#f44336"); //red
if (extension.equals( "rar") if (extension.equals( "rar")
|| extension.equals( "zip") || extension.equals( "zip")
|| extension.equals( "tar") || extension.equals( "tar")

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 B

View File

@ -25,6 +25,20 @@ public class GWTIconsManager {
public static ImageResource getIconVREFolder() { public static ImageResource getIconVREFolder() {
return StorageHubIconResources.INSTANCE.VRE_FOLDER(); return StorageHubIconResources.INSTANCE.VRE_FOLDER();
} }
/**
*
* @return the ImageResource instance related to the VRE Folders
*/
public static ImageResource getIconTypeLink() {
return StorageHubIconResources.INSTANCE.LINK();
}
/**
*
* @return the ImageResource instance related to the VRE Folders
*/
public static ImageResource getXMLTypeLink() {
return StorageHubIconResources.INSTANCE.XML();
}
/** /**
* *
* @param filenameWithExtension * @param filenameWithExtension
@ -70,6 +84,9 @@ public class GWTIconsManager {
return StorageHubIconResources.INSTANCE.MOVIE(); return StorageHubIconResources.INSTANCE.MOVIE();
else if (extension.equals( "html") ||extension.equals( "htm") || extension.equals( "jsp") || extension.equals( "asp") || extension.equals( "php")) else if (extension.equals( "html") ||extension.equals( "htm") || extension.equals( "jsp") || extension.equals( "asp") || extension.equals( "php"))
return StorageHubIconResources.INSTANCE.HTML(); return StorageHubIconResources.INSTANCE.HTML();
else if (extension.equals( "java")
|| extension.equals( "r"))
return StorageHubIconResources.INSTANCE.CODE();
else if (extension.equals( "rar") else if (extension.equals( "rar")
|| extension.equals( "zip") || extension.equals( "zip")
|| extension.equals( "tar") || extension.equals( "tar")

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -29,6 +29,9 @@ public interface StorageHubIconResources extends ClientBundle {
@Source("XLS.png") @Source("XLS.png")
ImageResource XLS(); ImageResource XLS();
@Source("XML.png")
ImageResource XML();
@Source("CSV.png") @Source("CSV.png")
ImageResource CSV(); ImageResource CSV();
@ -38,6 +41,9 @@ public interface StorageHubIconResources extends ClientBundle {
@Source("PDF.png") @Source("PDF.png")
ImageResource PDF(); ImageResource PDF();
@Source("CODE.png")
ImageResource CODE();
@Source("IMAGE.png") @Source("IMAGE.png")
ImageResource IMAGE(); ImageResource IMAGE();
@ -53,11 +59,8 @@ public interface StorageHubIconResources extends ClientBundle {
@Source("ARCHIVE.png") @Source("ARCHIVE.png")
ImageResource ARCHIVE(); ImageResource ARCHIVE();
@Source("external_resource_link.png") @Source("LINK.png")
ImageResource external_resource_link(); ImageResource LINK();
@Source("external_url.png")
ImageResource external_url();
@Source("metadata.png") @Source("metadata.png")
ImageResource metadata(); ImageResource metadata();

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB