forked from cnescatlab/i-CodeCNES
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update cnescatlab#32 Correction of imageaccess in preferences
- Loading branch information
Omar Waldmann
committed
Jul 5, 2017
1 parent
b1d7bf0
commit 9987d48
Showing
5 changed files
with
58 additions
and
78 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
fr.cnes.analysis.tools.ui/src/fr/cnes/analysis/tools/ui/images/ImageFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package fr.cnes.analysis.tools.ui.images; | ||
|
||
import fr.cnes.analysis.tools.ui.Activator; | ||
import org.eclipse.jface.resource.ImageDescriptor; | ||
import org.eclipse.swt.graphics.Image; | ||
import org.eclipse.ui.plugin.AbstractUIPlugin; | ||
|
||
public class ImageFactory { | ||
|
||
public static final String ENABLED = "./icons/enabled.png"; | ||
public static final String DISABLED = "./icons/disabled.png"; | ||
public static final String ERROR_VERY_SMALL = "./icons/logo-i-code-rouge-8x8.png"; | ||
public static final String ERROR_SMALL = "./icons/logo-i-code-rouge-16x16.png"; | ||
public static final String ERROR_MEDIUM = "./icons/logo-i-code-rouge-32x32.png"; | ||
public static final String ERROR_BIG = "./icons/logo-i-code-rouge-45x45.png"; | ||
public static final String INFO_VERY_SMALL = "./icons/logo-i-code-bleue-8x8.png"; | ||
public static final String INFO_SMALL = "./icons/logo-i-code-bleue-16x16.png"; | ||
public static final String INFO_MEDIUM = "./icons/logo-i-code-bleue-32x32.png"; | ||
public static final String INFO_BIG = "./icons/logo-i-code-bleue-45x45.png"; | ||
public static final String WARNING_VERY_SMALL = "./icons/logo-i-code-orange-8x8.png"; | ||
public static final String WARNING_SMALL = "./icons/logo-i-code-orange-16x16.png"; | ||
public static final String WARNING_MEDIUM = "./icons/logo-i-code-orange-32x32.png"; | ||
public static final String WARNING_BIG = "./icons/logo-i-code-orange-45x45.png"; | ||
|
||
public static ImageDescriptor getDescriptor(String pImageLocation) { | ||
return AbstractUIPlugin.imageDescriptorFromPlugin(Activator.PLUGIN_ID, pImageLocation); | ||
} | ||
|
||
public static Image getImage(String pImageLocation) { | ||
return AbstractUIPlugin.imageDescriptorFromPlugin(Activator.PLUGIN_ID, pImageLocation) | ||
.createImage(); | ||
} | ||
} |
58 changes: 0 additions & 58 deletions
58
fr.cnes.analysis.tools.ui/src/fr/cnes/analysis/tools/ui/images/ImageService.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters