SPARK-1316 Privacy plugin fix for mac os

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@12487 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Holger Bergunde
2011-06-15 14:10:51 +00:00
committed by holger.bergunde
parent 2c2b612185
commit a0d9ebe3c7
2 changed files with 4 additions and 3 deletions

View File

@ -20,6 +20,7 @@
package org.jivesoftware.sparkimpl.plugin.privacy.ui;
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
@ -168,7 +169,7 @@ public class PrivacyAddDialogUI extends JPanel {
* the parent container.
* @return all items chosen in the pick list.
*/
public Collection<PrivacyItem> showRoster(JDialog parent, boolean showGroups) {
public Collection<PrivacyItem> showRoster(Component parent, boolean showGroups) {
_showGroups = showGroups;
// Populate Invite Panel with Available users.

View File

@ -92,6 +92,7 @@ public class PrivacyListTree extends JPanel implements SparkPrivacyListListener
createInfoPanel();
initializeTree();
createCurrentListInfoPanel();
System.out.println("schnauze voll");
}
private void createInfoPanel() {
@ -253,9 +254,8 @@ public class PrivacyListTree extends JPanel implements SparkPrivacyListListener
@Override
public void actionPerformed(ActionEvent e) {
JDialog dlg = new JDialog();
PrivacyAddDialogUI browser = new PrivacyAddDialogUI();
Collection<PrivacyItem> col = browser.showRoster(dlg, node.isContactGroup() ? false : true);
Collection<PrivacyItem> col = browser.showRoster(_comp, node.isContactGroup() ? false : true);
for (PrivacyItem pI : col) {
pI.setOrder(list.getNewItemOrder());