cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Adding Menu Buttons in J-Link - Solution

uavron
1-Visitor

Adding Menu Buttons in J-Link - Solution

Hi,

After quite a lot of effort, eventually the whole problem turned out to be a
real stupid thing - something I suspected from the very beginning.
Reminder: The issue was double trouble.
- I ran into problems in placing a button for a second, stand -alone j-link
application relative to the first one.
- I had a weird problem, when clicking on the button of one application
actually ran the other one.

With the help of Mary Mitchell the first problem was solved. Setting the
Config option "cmdmgr_trail_output" to "no" exposed the real names of the
buttons on existing ProE menus and allowed to set the buttons I wanted to
the correct place
The second problem of "cross linking" was found by Stephanie from PTC
support. The source of the strange behavior was my mistake of compiling the
different J-Link programs using the "Default Package" option of Netbeans.
Actually, every program should be in its own package, otherwise classes and
methods of the same name from different programs might get mixed on the
"first come first served" basis. In my case it was the MenuButtonListener
class that was activated from program number 1 when clicking on button 2.
Setting each program in its unique package solved the problem.

My thanks to all those who invested their effort to help me, especially
Mary, Bjarn and Stephanie.

Uriel Avron
Harmonic Systems Ltd.

This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
0 REPLIES 0
Announcements
NEW Creo+ Topics: PTC Control Center and Creo+ Portal


Top Tags