[jitsi-dev] ChatContactRightButtonMenu.java control flow


#1

Hi,

Jitsi is an interesting piece of software and specially after reading a
chapter on it in the open source architectures book, I felt like digging
into it. Surely looks like a bit modern architecture with OSGi felix at the
heart. Being fairly a new diver, I am experiencing a learning curve here,
can someone rescue?

Using Jitsi, I join a jabber chat room as admin, I revoke voice by right
clicking over one of the particpants and click "revoke voice".

1.I am just trying to locate the code that actually contains all the real
action of revoking voice on that specific user.That would probably contain
instructions to contact the jabber server and request to revoke voice on the
specific user. Where is this piece of code located.

Can someone explain how things happen when the setMnemonic is called?

$JITSI\src\net\java\sip\communicator\impl\gui\main\chat\ChatContactRightButtonMenu.java

this.revokeVoiceItem.setMnemonic(
            GuiActivator.getResources().getI18nMnemonic(
            "service.gui.REVOKE_VOICE"));

Would really appreciate a prompt resposne.

Adnan


#2

Hey

Can someone explain how things happen when the setMnemonic is called?

The actionPerformed-handler of the menu item handles the event and delegates it to the chat room (Line 436). In the end it's a call to the Jabber-library.

Ingo