Class FormStandardCommandImages

    • 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 be null
        pictureManager - the picture manager, cannot be null
        commandName - the command name, can be null
        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 be null
        pictureManager - the picture manager, cannot be null
        commandName - the command name, can be null
        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 be null
        pictureManager - the picture manager, cannot be null
        command - the command, cannot be null
        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 be null
        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 be null
        commandName - the command name, can be null
        Returns:
        picture, never null