Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.xtext.glue/src/org/eclipse/papyrus/infra/gmfdiag/xtext/glue/concurrency/SimpleDirtyResource.java')
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.xtext.glue/src/org/eclipse/papyrus/infra/gmfdiag/xtext/glue/concurrency/SimpleDirtyResource.java65
1 files changed, 0 insertions, 65 deletions
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.xtext.glue/src/org/eclipse/papyrus/infra/gmfdiag/xtext/glue/concurrency/SimpleDirtyResource.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.xtext.glue/src/org/eclipse/papyrus/infra/gmfdiag/xtext/glue/concurrency/SimpleDirtyResource.java
deleted file mode 100644
index 1108a6dbf91..00000000000
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.xtext.glue/src/org/eclipse/papyrus/infra/gmfdiag/xtext/glue/concurrency/SimpleDirtyResource.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 itemis AG (http://www.itemis.eu) 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
- *******************************************************************************/
-package org.eclipse.papyrus.infra.gmfdiag.xtext.glue.concurrency;
-
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.xtext.resource.IResourceDescription;
-import org.eclipse.xtext.resource.IResourceDescription.Manager;
-import org.eclipse.xtext.resource.IResourceServiceProvider;
-import org.eclipse.xtext.resource.XtextResource;
-import org.eclipse.xtext.ui.editor.IDirtyResource;
-
-/**
- * An implementation of {@link IDirtyResource} for resources without an underlying document.
- *
- * @author koehnlein - Initial contribution and API
- */
-public class SimpleDirtyResource implements IDirtyResource {
-
- private XtextResource resource;
-
- private Manager resourceDescriptionManager;
-
- /**
- * This element comes from the XText/GMF integration example, and was not originally documented.
- * @param resource
- * @param resourceServiceProvider
- */
- public SimpleDirtyResource(XtextResource resource, IResourceServiceProvider resourceServiceProvider) {
- this.resource = resource;
- this.resourceDescriptionManager = resourceServiceProvider.getResourceDescriptionManager();
- }
-
- public String getContents() {
- return resource.getSerializer().serialize(resource.getContents().get(0));
- }
-
- public String getActualContents() {
- return getContents();
- }
-
- public IResourceDescription getDescription() {
- return resourceDescriptionManager.getResourceDescription(resource);
- }
-
- public URI getURI() {
- return resource.getURI();
- }
-
- /**
- * This element comes from the XText/GMF integration example, and was not originally documented.
- * @return Resource
- */
- public Resource getResource() {
- return resource;
- }
-
-
-
-}

Back to the top