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.ImagegetImage(IV8Project v8project, IPictureManager pictureManager, FormStandardCommand command, boolean isRtl) Gets an image of command.static org.eclipse.swt.graphics.ImagegetImage(IV8Project v8project, IPictureManager pictureManager, String commandName, boolean isRtl) Gets an image of command specified by name.static org.eclipse.jface.resource.ImageDescriptorgetImageDescriptor(IV8Project v8project, IPictureManager pictureManager, String commandName, boolean isRtl) Gets an image descriptor of command specified by name.static PicturegetPictureByCommandName(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 benullpictureManager- the picture manager, cannot benullcommandName- the command name, can benullisRtl- {code true} if editing project language is RTL-based- Returns:
- the image descriptor or
nullif 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 benullpictureManager- the picture manager, cannot benullcommandName- the command name, can benullisRtl- {code true} if editing project language is RTL-based- Returns:
- the image or
nullif 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 benullpictureManager- the picture manager, cannot benullcommand- the command, cannot benullisRtl- {code true} if editing project language is RTL-based- Returns:
- the image or
nullif 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 benullcommandName- the command name, can benull- Returns:
- picture, never
null
-