diff options
author | david_williams | 2008-10-01 22:56:28 +0000 |
---|---|---|
committer | david_williams | 2008-10-01 22:56:28 +0000 |
commit | 544d1c6d4bc569a0c4c0870004b1550a2b5e0532 (patch) | |
tree | 01d45d26276d701622bc60cf8ab185a1bcc1be4c /plugins/org.eclipse.wst.common.emfworkbench.integration/src/org/eclipse/wst/common/internal/emfworkbench/CompatibilityWorkbenchURIConverterImpl.java | |
parent | b4a4029a3b6d8e66c440b88e7f034c490312951e (diff) | |
download | webtools.common-200810012256.tar.gz webtools.common-200810012256.tar.xz webtools.common-200810012256.zip |
This commit was manufactured by cvs2svn to create tag 'v200810012256'.v200810012256
Diffstat (limited to 'plugins/org.eclipse.wst.common.emfworkbench.integration/src/org/eclipse/wst/common/internal/emfworkbench/CompatibilityWorkbenchURIConverterImpl.java')
-rw-r--r-- | plugins/org.eclipse.wst.common.emfworkbench.integration/src/org/eclipse/wst/common/internal/emfworkbench/CompatibilityWorkbenchURIConverterImpl.java | 90 |
1 files changed, 0 insertions, 90 deletions
diff --git a/plugins/org.eclipse.wst.common.emfworkbench.integration/src/org/eclipse/wst/common/internal/emfworkbench/CompatibilityWorkbenchURIConverterImpl.java b/plugins/org.eclipse.wst.common.emfworkbench.integration/src/org/eclipse/wst/common/internal/emfworkbench/CompatibilityWorkbenchURIConverterImpl.java deleted file mode 100644 index 8ae0cd127..000000000 --- a/plugins/org.eclipse.wst.common.emfworkbench.integration/src/org/eclipse/wst/common/internal/emfworkbench/CompatibilityWorkbenchURIConverterImpl.java +++ /dev/null @@ -1,90 +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 - *******************************************************************************/ -/* - * Created on Mar 4, 2004 - * - * To change the template for this generated file go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -package org.eclipse.wst.common.internal.emfworkbench; - -import org.eclipse.core.resources.IContainer; -import org.eclipse.core.resources.IFile; -import org.eclipse.core.resources.IProject; -import org.eclipse.emf.common.util.URI; -import org.eclipse.jem.util.emf.workbench.ResourceSetWorkbenchSynchronizer; -import org.eclipse.jem.util.emf.workbench.WorkbenchResourceHelperBase; -import org.eclipse.jem.util.emf.workbench.WorkbenchURIConverterImpl; -import org.eclipse.wst.common.internal.emf.resource.CompatibilityURIConverter; - -/** - * @author schacher - * - * To change the template for this generated type comment go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -public class CompatibilityWorkbenchURIConverterImpl extends WorkbenchURIConverterImpl implements CompatibilityURIConverter { - /** - * - */ - public CompatibilityWorkbenchURIConverterImpl() { - super(); - } - - /** - * @param anInputContainer - */ - public CompatibilityWorkbenchURIConverterImpl(IContainer anInputContainer) { - super(anInputContainer); - } - - /** - * @param aContainer - * @param aSynchronizer - */ - public CompatibilityWorkbenchURIConverterImpl(IContainer aContainer, ResourceSetWorkbenchSynchronizer aSynchronizer) { - super(aContainer, aSynchronizer); - } - - /** - * @param anInputContainer - * @param anOutputContainer - */ - public CompatibilityWorkbenchURIConverterImpl(IContainer anInputContainer, IContainer anOutputContainer) { - super(anInputContainer, anOutputContainer); - } - - /** - * @param anInputContainer - * @param anOutputContainer - * @param aSynchronizer - */ - public CompatibilityWorkbenchURIConverterImpl(IContainer anInputContainer, IContainer anOutputContainer, ResourceSetWorkbenchSynchronizer aSynchronizer) { - super(anInputContainer, anOutputContainer, aSynchronizer); - } - - /** - * @see com.ibm.etools.xmi.helpers.CompatibilityURIConverter#deNormalize(URI) - */ - public URI deNormalize(URI uri) { - if (WorkbenchResourceHelperBase.isPlatformResourceURI(uri)) { - IFile aFile = WorkbenchResourceHelper.getPlatformFile(uri); - if (aFile != null) { - IProject fileProject = aFile.getProject(); - //If it is not in the same project then just return the URI as is. - if (resourceSetSynchronizer.getProject() == fileProject) - return getContainerRelativeURI(aFile); - } - } - return uri; - } - -} |