From afa089fedd62a29826d57cc34293ad5e0e6a4efd Mon Sep 17 00:00:00 2001
From: Violette Roche-Montane <violette.roche-montane@forgerock.com>
Date: Wed, 26 Mar 2014 13:15:01 +0000
Subject: [PATCH] Replaced OperatingSystem class by its SDK class.
---
opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/ui/components/CustomTree.java | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/ui/components/CustomTree.java b/opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/ui/components/CustomTree.java
index 6ac6cba..b750d5e 100644
--- a/opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/ui/components/CustomTree.java
+++ b/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;
--
Gitblit v1.10.0