AnsweredAssumed Answered

about the right-click menu of contactitem

Question asked by leshem on Apr 19, 2011
Latest reply on May 2, 2011 by leshem

I develop a plugin to simulate the "cantact" tab.

In the plugin class "ExamplePluginNew.java",here is the initialize() method:

 

public void initialize() {

        System.out.println("Welcome To Spark");

       

        EventQueue.invokeLater(new Runnable() {

   @Override

   public void run() {

    //addTabToSpark();

    Organization organization = new Organization();

          organization.initialize();

   }

        });

 

here Class Organization is almost the same as the ContactList.java except the initialize() in  Organization.java:

public void initialize() {

          setBorder(BorderFactory.createLineBorder(Color.LIGHT_GRAY));

        // Add Contact List
        addContactListToWorkspace();
        buildContactList();
        boolean show = localPreferences.isEmptyGroupsShown();
        showEmptyGroups(show);
       
        // Hide all Offline Users
        showOfflineUsers(localPreferences.isOfflineUsersShown());

        // Add a subscription listener.
        addSubscriptionListener();

}

 

However , after I construct the new tab , the right-click menu of contactitem can not be showed.That is to say ,the showpop() method is not called.

Can somebody help me? I don't know why. The attachment is the Organization.java and ExamplePluginNew.java. Thank you very much.

Outcomes