You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by zhukovm <zh...@yandex.ru> on 2015/03/27 09:11:57 UTC

make standalone plugin with new toolbar button

Hi all, i'm trying to make standalone plugin with new toolbar button.
a made prototype, and it works well. 
what i did:
1. created my own action name into  ActionNames class
<http://jmeter.apache.org/api/index.html?org/apache/jmeter/gui/action/ActionNames.html>  
2. edited icons-toolbar.properties file (added new toolbar button
description)
3. edited messages.properties (add button popup)
4. created my own class ***Command.

the problem is, i don't know how to put it into separate jar(except step 4),
without need to rebuild jmeter from sources.

is it possible? are there any other ways to add custom functionality to
jmeter menus | toolbars | hotkeys?




--
View this message in context: http://jmeter.512774.n5.nabble.com/make-standalone-plugin-with-new-toolbar-button-tp5722029.html
Sent from the JMeter - Dev mailing list archive at Nabble.com.

Re: make standalone plugin with new toolbar button

Posted by zhukovm <zh...@yandex.ru>.
found fout the solution by myself:
1. create class
2. create custom icons-toolbar.properties file
with content like 
toolbar=new,templates,open,close,save,save_as_testplan,|,cut,copy,paste,|,expand,collapse,toggle,|,test_start,test_start_notimers,test_stop,test_shutdown,|,test_start_remote_all,test_stop_remote_all,test_shutdown_remote_all,|,test_clear,test_clear_all,|,search,search_reset,zm_action,|,function_helper,help

zm_action=Rename JMeter
steps,ZM_ACTION,org/apache/jmeter/gui/images/zm_rename.png

3. edit Jmeter.properties file and set:
jmeter.toolbar.icons=org/apache/jmeter/gui/icons/zm-icons-toolbar.properties
#it's file from p.2 

that's all, hope this'll help someone.



--
View this message in context: http://jmeter.512774.n5.nabble.com/make-standalone-plugin-with-new-toolbar-button-tp5722029p5722034.html
Sent from the JMeter - Dev mailing list archive at Nabble.com.