Debian Codegraph @

plugins/org.eclipse.emf.edit.ui/src/org/eclipse/emf/edit/ui/util/IRevertablePart.java

raw
1 /*
2 * Copyright (c) 2018 Eclipse contributors and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v2.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v20.html
7 */
8 package org.eclipse.emf.edit.ui.util;
9
10
11 import org.eclipse.emf.edit.ui.action.RevertAction;
12 import org.eclipse.ui.ISaveablePart;
13
14
15 /**
16 * A saveable part that can be reverted back to its saved state, discarding any {@link #isDirty() state}.
17 *
18 * @see RevertAction
19 * @since 2.14
20 */
21 public interface IRevertablePart extends ISaveablePart
22 {
23 /**
24 * Reverts the part to its saved state, discarding any {@link #isDirty() dirty} state.
25 */
26 void doRevert();
27 }