blob: 0aead91e4dd9283700e0286f0fff78576d4f6871 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2010 BestSolution.at and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Tom Schindl <tom.schindl@bestsolution.at> - initial API and implementation
******************************************************************************/
package org.eclipse.e4.tools.emf.ui.common;
import org.eclipse.core.databinding.observable.list.IObservableList;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.edit.domain.EditingDomain;
public interface IModelResource {
public IObservableList getRoot();
public boolean isSaveable();
public IStatus save();
public EditingDomain getEditingDomain();
public boolean isDirty();
public void replaceRoot(EObject eobject);
public void addModelListener(ModelListener listener);
public void removeModelListener(ModelListener listener);
public interface ModelListener {
public void dirtyChanged();
public void commandStackChanged();
}
}