diff options
Diffstat (limited to 'plugins/org.eclipse.wst.common.emfworkbench.integration/src/org/eclipse/wst/common/internal/emfworkbench/integration/EditModelFactory.java')
-rw-r--r-- | plugins/org.eclipse.wst.common.emfworkbench.integration/src/org/eclipse/wst/common/internal/emfworkbench/integration/EditModelFactory.java | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/plugins/org.eclipse.wst.common.emfworkbench.integration/src/org/eclipse/wst/common/internal/emfworkbench/integration/EditModelFactory.java b/plugins/org.eclipse.wst.common.emfworkbench.integration/src/org/eclipse/wst/common/internal/emfworkbench/integration/EditModelFactory.java deleted file mode 100644 index d97bbe447..000000000 --- a/plugins/org.eclipse.wst.common.emfworkbench.integration/src/org/eclipse/wst/common/internal/emfworkbench/integration/EditModelFactory.java +++ /dev/null @@ -1,62 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2003, 2005 IBM Corporation 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.wst.common.internal.emfworkbench.integration; - - -import java.util.Map; - -import org.eclipse.wst.common.internal.emfworkbench.EMFWorkbenchContext; - - -public class EditModelFactory implements IEditModelFactory { - protected boolean loadKnownResourcesAsReadOnly = true; - - public EditModel createEditModelForRead(String editModelID, EMFWorkbenchContext context) { - return createEditModelForRead(editModelID, context, null); - } - - public EditModel createEditModelForWrite(String editModelID, EMFWorkbenchContext context) { - return createEditModelForWrite(editModelID, context, null); - } - - public EditModel createEditModelForRead(String editModelID, EMFWorkbenchContext context, Map params) { - EditModel editModel = new EditModel(editModelID, context, true); - editModel.setAccessAsReadForUnKnownURIs(loadKnownResourcesAsReadOnly); - return editModel; - } - - public EditModel createEditModelForWrite(String editModelID, EMFWorkbenchContext context, Map params) { - EditModel editModel = new EditModel(editModelID, context, false); - editModel.setAccessAsReadForUnKnownURIs(loadKnownResourcesAsReadOnly); - return editModel; - } - - public String getCacheID(String editModelID, Map params) { - return editModelID; - } - - /* - * (non-Javadoc) - * - * @see org.eclipse.wst.common.internal.emfworkbench.integration.IEditModelFactory#setLoadKnownResourcesAsReadOnly(boolean) - */ - public void setLoadKnownResourcesAsReadOnly(boolean value) { - this.loadKnownResourcesAsReadOnly = value; - } - - /** - * @return Returns the loadKnownResourcesAsReadOnly. - */ - protected boolean isLoadKnownResourcesAsReadOnly() { - return loadKnownResourcesAsReadOnly; - } - -} |