Package com._1c.g5.v8.dt.ui.commands
Class FormStandardCommandImages
- java.lang.Object
-
- com._1c.g5.v8.dt.ui.commands.FormStandardCommandImages
-
public final class FormStandardCommandImages extends Object
Provides images forFormStandardCommandcommands.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 namestatic Optional<String>getPictureName(String id)Gets the picture name (path) by picture id
-
-
-
Method Detail
-
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
public static Optional<String> getPictureName(String id)
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
public static Picture getPictureByCommandName(IV8Project v8project, String commandName)
Gets the picture by command name- Parameters:
v8project- the V8 project, cannot benullcommandName- the command name, can benull- Returns:
- picture, never
null
-
-