| /******************************************************************************* |
| * 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.edit.domain.EditingDomain; |
| |
| public interface IModelResource { |
| public IObservableList getRoot(); |
| public boolean isSaveable(); |
| public IStatus save(); |
| public EditingDomain getEditingDomain(); |
| public boolean isDirty(); |
| |
| public void addModelListener(ModelListener listener); |
| public void removeModelListener(ModelListener listener); |
| |
| public interface ModelListener { |
| public void dirtyChanged(); |
| public void commandStackChanged(); |
| } |
| } |