Package com._1c.g5.v8.dt.ui.commands
Class FormStandardCommandImages
java.lang.Object
com._1c.g5.v8.dt.ui.commands.FormStandardCommandImages
Provides images for
FormStandardCommand
commands.-
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.swt.graphics.Image
getImage
(IV8Project v8project, IPictureManager pictureManager, FormStandardCommand command, boolean isRtl) Gets an image of command.static org.eclipse.swt.graphics.Image
getImage
(IV8Project v8project, IPictureManager pictureManager, String commandName, boolean isRtl) Gets an image of command specified by name.static org.eclipse.jface.resource.ImageDescriptor
getImageDescriptor
(IV8Project v8project, IPictureManager pictureManager, String commandName, boolean isRtl) Gets an image descriptor of command specified by name.static Picture
getPictureByCommandName
(IV8Project v8project, String commandName) Gets the picture by command namegetPictureName
(String id) Gets the picture name (path) by picture id
-
Method Details
-
getImageDescriptor
public static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(IV8Project v8project, IPictureManager pictureManager, String commandName, boolean isRtl) Gets an image descriptor of command specified by name.- Parameters:
v8project
- the V8 project, cannot benull
pictureManager
- the picture manager, cannot benull
commandName
- the command name, can benull
isRtl
- {code true} if editing project language is RTL-based- Returns:
- the image descriptor or
null
if no matched image found
-
getImage
public static org.eclipse.swt.graphics.Image getImage(IV8Project v8project, IPictureManager pictureManager, String commandName, boolean isRtl) Gets an image of command specified by name.- Parameters:
v8project
- the V8 project, cannot benull
pictureManager
- the picture manager, cannot benull
commandName
- the command name, can benull
isRtl
- {code true} if editing project language is RTL-based- Returns:
- the image or
null
if no matched image found
-
getImage
public static org.eclipse.swt.graphics.Image getImage(IV8Project v8project, IPictureManager pictureManager, FormStandardCommand command, boolean isRtl) Gets an image of command.- Parameters:
v8project
- the V8 project, cannot benull
pictureManager
- the picture manager, cannot benull
command
- the command, cannot benull
isRtl
- {code true} if editing project language is RTL-based- Returns:
- the image or
null
if no matched image found
-
getPictureName
Gets the picture name (path) by picture id- Parameters:
id
- the picture id, cannot benull
- Returns:
- Optional value of the picture name, never
null
-
getPictureByCommandName
Gets the picture by command name- Parameters:
v8project
- the V8 project, cannot benull
commandName
- the command name, can benull
- Returns:
- picture, never
null
-