inital plugin from webtools project
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.monitor.ui / src / net / sourceforge / phpdt / monitor / ui / internal / RequestListener.java
1 /**********************************************************************
2  * Copyright (c) 2003 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  *
8  * Contributors:
9  *    IBM - Initial API and implementation
10  **********************************************************************/
11 package net.sourceforge.phpdt.monitor.ui.internal;
12
13 import net.sourceforge.phpdt.monitor.core.IRequest;
14 import net.sourceforge.phpdt.monitor.core.IRequestListener;
15 import net.sourceforge.phpdt.monitor.ui.internal.view.MonitorView;
16
17 /**
18  * Open the monitor view if there is new activity.
19  */
20 public class RequestListener implements IRequestListener {
21         public void requestAdded(IRequest rr) {
22                 if (MonitorUIPlugin.getShowOnActivityPreference()) {
23                         MonitorView.open(rr);
24                 }
25         }
26
27         public void requestChanged(IRequest rr) { }
28
29         public void requestRemoved(IRequest rr) { }
30 }