inital plugin from webtools project
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.monitor.ui / src / net / sourceforge / phpdt / monitor / ui / internal / view / IViewerManager.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.view;
12
13 import java.util.List;
14
15 import net.sourceforge.phpdt.monitor.core.IContentFilter;
16 import net.sourceforge.phpdt.monitor.core.IRequest;
17
18 import org.eclipse.core.runtime.IConfigurationElement;
19
20 /**
21  * Manager interface for TCP/IP request and response message viewers
22  */
23 public interface IViewerManager {
24         /**
25          * Displays the HTTP header viewers if they are hidden.
26          * If the viewers are not hidden, do nothing.
27          */
28         //public void showHeader();
29         
30         /**
31          * Hides the HTTP header viewers if they are showing.
32          * If the viewers are already hidden, do nothing.
33          */
34         //public void hideHeader();
35         
36         /**
37          * Set whether or not to show HTTP header details
38          * @param b boolean
39          */
40         public void setDisplayHeaderInfo(boolean b);
41         
42         /**
43          * Returns whether or not HTTP header details is showing
44          * @return boolean
45          */
46         public boolean getDisplayHeaderInfo();
47         
48         /**
49          * Show the TCP/IP request message in a parent Composite
50          * @param rr org.eclipse.tcpip.monitor.internal.RequestResponse
51          * @param parent org.eclipse.swt.widgets.Composite
52          */
53         public void setRequest(IRequest rr);
54         
55         /**
56          * Returns an array of the available TCP/IP request viewer ids
57          * @return java.lang.String[]
58          */
59         public List getRequestViewers();
60         
61         /**
62          * Returns an array of the available TCP/IP response viewer ids
63          * @return java.lang.String[]
64          */
65         public List getResponseViewers();
66         
67         /**
68          * Set the TCP/IP request message viewer
69          * @param id java.lang.String
70          */
71         public void setRequestViewer(IConfigurationElement element);
72         
73         /**
74          * Set the TCP/IP response message viewer
75          * @param id java.lang.String
76          */
77         public void setResponseViewer(IConfigurationElement element);
78         
79         public void addFilter(IContentFilter filter);
80         
81         public void removeFilter(IContentFilter filter);
82 }