01: /*******************************************************************************
02: * Copyright (c) 2000, 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.ui.texteditor;
11:
12: /**
13: * Extension interface for {@link org.eclipse.ui.texteditor.IElementStateListener}.
14: * It adds
15: * <ul>
16: * <li> state validation notification
17: * <li>a notion of session, i.e. a notification about an upcoming element change and error handling.
18: * </ul>
19: * @since 2.0
20: */
21: public interface IElementStateListenerExtension {
22:
23: /**
24: * Notifies that the state validation of the given element has changed.
25: *
26: * @param element the element
27: * @param isStateValidated the flag indicating whether state validation is done
28: */
29: void elementStateValidationChanged(Object element,
30: boolean isStateValidated);
31:
32: /**
33: * Notifies that the given element is currently being changed. This method may
34: * be sent from a non-ui thread.
35: *
36: * @param element the element
37: */
38: void elementStateChanging(Object element);
39:
40: /**
41: * Notifies that changing the given element has failed.
42: *
43: * @param element the element
44: */
45: void elementStateChangeFailed(Object element);
46: }
|