Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icon is not loaded on the toolbar with the provided format via plugin #47

Open
zeeshanyshaikh opened this issue Apr 30, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@zeeshanyshaikh
Copy link

I was trying to show custom image on the toolbar on KS using plugin extensions. Extending "ToolItemDescription" from https://github.com/katalon-studio/katalon-studio-platform/blob/master/com.katalon.platform/src/main/java/com/katalon/platform/api/extension/ToolItemDescription.java

public class MyToolItemExtensionListener implements ToolItemDescription  {

    @Override
    public String toolItemId() {
        return "myToolbarId";
    }

    @Override
    public String name() {
        return "Sample Plugin";
    }

    @Override
    public String iconUrl() {
        return "platform://com.zeeshan.plugin.sample/icons/logo.png";
    }

    @Override
    public void handleEvent() {
        System.out.println("Hello, You have enabled the Plugin");
    }
}

Used below convention...

But this was not rendering any image on the KS UI, only red rectangle was shown.

Changed the line to return "platform:/plugin/com.zeeshan.plugin.sample/icons/logo.png"; and it works.

Please check the convention of Platform URI Point.

@devalex88
Copy link
Contributor

Thank you for this. We will update the Javadoc.

@devalex88 devalex88 added the enhancement New feature or request label Dec 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants