01: /*******************************************************************************
02: * Copyright (c) 2003, 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.pde.internal.ui.editor.context;
11:
12: import org.eclipse.core.resources.IFile;
13:
14: public interface IInputContextListener {
15: /**
16: * Informs the listener that a new context has been added.
17: * This should result in a new source tab.
18: * @param context
19: */
20: void contextAdded(InputContext context);
21:
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: /**
30: * Informs the listener that a monitored file has
31: * been added.
32: * @param monitoredFile the file we were monitoring
33: */
34: void monitoredFileAdded(IFile monitoredFile);
35:
36: /**
37: * Informs the listener that a monitored file has
38: * been removed.
39: * @param monitoredFile
40: * @return <code>true</code> if it is OK to remove
41: * the associated context, <code>false</code> otherwise.
42: */
43: boolean monitoredFileRemoved(IFile monitoredFile);
44: }
|