/*
 * EnsureVisibleEvent.java
 *
 * Copyright (C) 2009-11 by RStudio, Inc.
 *
 * This program is licensed to you under the terms of version 3 of the
 * GNU Affero General Public License. This program is distributed WITHOUT
 * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,
 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the
 * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.
 *
 */
package org.rstudio.core.client.events;

import com.google.gwt.event.shared.GwtEvent;
import org.rstudio.core.client.Debug;

public class EnsureVisibleEvent extends GwtEvent<EnsureVisibleHandler>
{
   public static final Type<EnsureVisibleHandler> TYPE
         = new Type<EnsureVisibleHandler>();

   public EnsureVisibleEvent()
   {
      this(true);
   }

   public EnsureVisibleEvent(boolean activate)
   {
      activate_ = activate;
      Debug.printStackTrace("EnsureVisibleEvent(" + activate + ")");
   }

   public boolean getActivate()
   {
      return activate_;
   }

   @Override
   public Type<EnsureVisibleHandler> getAssociatedType()
   {
      return TYPE;
   }

   @Override
   protected void dispatch(EnsureVisibleHandler handler)
   {
      handler.onEnsureVisible(this);
   }

   private final boolean activate_;
}

@@ -530,46 +530,8 @@
 ent;
-%0Aimport org.rstudio.core.client.Debug;
 %0A%0Apu
@@ -846,77 +846,8 @@
 te;%0A
-      Debug.printStackTrace(%22EnsureVisibleEvent(%22 + activate + %22)%22);%0A
    %7D

Remove debug message