mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Violette Roche-Montane
26.15.2014 afa089fedd62a29826d57cc34293ad5e0e6a4efd
opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/ui/components/CustomTree.java
@@ -22,10 +22,13 @@
 *
 *
 *      Copyright 2008 Sun Microsystems, Inc.
 *      Portions Copyright 2014 ForgeRock AS
 */
package org.opends.guitools.controlpanel.ui.components;
import static com.forgerock.opendj.util.OperatingSystem.isMacOS;
import java.awt.Graphics;
import java.awt.Insets;
import java.awt.Rectangle;
@@ -42,7 +45,6 @@
import javax.swing.tree.TreePath;
import org.opends.guitools.controlpanel.ui.renderer.TreeCellRenderer;
import org.opends.guitools.controlpanel.util.Utilities;
/**
 * The tree that is used in different places in the Control Panel (schema
@@ -152,7 +154,7 @@
        }
        MouseEvent newEvent = getTranslatedEvent(ev);
        if (Utilities.isMacOS() && ev.isPopupTrigger() &&
        if (isMacOS() && ev.isPopupTrigger() &&
            (ev.getButton() != MouseEvent.BUTTON1))
        {
          MouseEvent baseEvent = ev;