Questions related to usage of AggreGate SDK, Driver Development Kit, Plugin SDK, Agent SDK and APIs for Java, .NET, C/C++, Android, Tibbo BASIC etc.
by sbannikov/croc_ru » Fri Aug 19, 2016 6:43 pm
I've a simple plugin in which I try to add custom action to one context. It's working fine, but I wonder how can I add custom icon to this action. I've found method setIconId but I have no idea how to use it. Please help me with this issue
- Code: Select all
@Override
public void install(ServerContext context) throws ContextException, PluginException {
if (context.getType().equalsIgnoreCase("model") && context.getName().equalsIgnoreCase("model1"))
{
ServerActionDefinition ad = new ServerActionDefinition("Action", "Run my action", MyAction.class);
context.addActionDefinition(ad);
}
}
-
sbannikov/croc_ru
-
- Posts: 2
- Joined: Fri Aug 19, 2016 6:38 pm
-
Return to Development and Integration
Users browsing this forum: No registered users and 0 guests