KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > ui > editor > context > IInputContextListener


1 /*******************************************************************************
2  * Copyright (c) 2003, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.pde.internal.ui.editor.context;
12
13 import org.eclipse.core.resources.IFile;
14
15 public interface IInputContextListener {
16 /**
17  * Informs the listener that a new context has been added.
18  * This should result in a new source tab.
19  * @param context
20  */

21     void contextAdded(InputContext context);
22 /**
23  * Informs the listener that the context has been removed.
24  * This should result in removing the source tab.
25  * @param context
26  */

27     void contextRemoved(InputContext context);
28 /**
29  * Informs the listener that a monitored file has
30  * been added.
31  * @param monitoredFile the file we were monitoring
32  */

33     void monitoredFileAdded(IFile monitoredFile);
34 /**
35  * Informs the listener that a monitored file has
36  * been removed.
37  * @param monitoredFile
38  * @return <code>true</code> if it is OK to remove
39  * the associated context, <code>false</code> otherwise.
40  */

41     boolean monitoredFileRemoved(IFile monitoredFile);
42 }
43
Popular Tags