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 forFormStandardCommand
commands.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 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 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
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 benull
commandName
- the command name, can benull
- Returns:
- picture, never
null
-
-