KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > texteditor > IDocumentProviderExtension5


1 /*******************************************************************************
2  * Copyright (c) 2005, 2006 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.ui.texteditor;
12
13 import org.eclipse.core.runtime.CoreException;
14
15 /**
16  * Extension interface for {@link org.eclipse.ui.texteditor.IDocumentProvider}.
17  * Extends a document provider with the ability to detect a non-synchronized exception.
18  * <p>
19  * This interface may be implemented by clients.
20  * </p>
21  *
22  * @see org.eclipse.ui.texteditor.IDocumentProvider
23  * @since 3.2
24  */

25 public interface IDocumentProviderExtension5 {
26
27     /**
28      * Tells whether the given core exception is exactly the
29      * exception which is thrown for a non-synchronized element.
30      *
31      * @param element the element
32      * @param ex the core exception
33      * @return <code>true</code> iff the given core exception is exactly the
34      * exception which is thrown for a non-synchronized element
35      */

36     boolean isNotSynchronizedException(Object JavaDoc element, CoreException ex);
37 }
38
Popular Tags