You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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");
}
}
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
Used below convention...
katalon-studio-platform/com.katalon.platform/src/main/java/com/katalon/platform/api/extension/ToolItemDescription.java
Line 44 in 01df58a
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.
The text was updated successfully, but these errors were encountered: