+/*
+ * Copyright (C) 2007-2012 Mathieu Baudier
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package org.argeo.eclipse.ui.jcr;
import java.util.ArrayList;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.argeo.ArgeoException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.swt.widgets.Display;
/** {@link EventListener} which simplifies running actions within the UI thread. */
public abstract class AsyncUiEventListener implements EventListener {
- private final static Log logSuper = LogFactory
- .getLog(AsyncUiEventListener.class);
+// private final static Log logSuper = LogFactory
+// .getLog(AsyncUiEventListener.class);
private final Log logThis = LogFactory.getLog(getClass());
private final Display display;
while (eventIterator.hasNext())
events.add(eventIterator.nextEvent());
- if (logThis.isDebugEnabled())
- logThis.debug("Received " + events.size() + " events");
+ if (logThis.isTraceEnabled())
+ logThis.trace("Received " + events.size() + " events");
try {
if (!willProcessInUiThread(events))