org.eclipse.emf.emfstore.internal.client.provider
Class ProjectSpaceFileURIHandler

java.lang.Object
  extended by org.eclipse.emf.ecore.resource.impl.URIHandlerImpl
      extended by org.eclipse.emf.ecore.resource.impl.FileURIHandlerImpl
          extended by org.eclipse.emf.emfstore.internal.client.provider.ProjectSpaceFileURIHandler
All Implemented Interfaces:
org.eclipse.emf.ecore.resource.URIHandler

public class ProjectSpaceFileURIHandler
extends org.eclipse.emf.ecore.resource.impl.FileURIHandlerImpl

Handler for projectspace file URIs. Adds functionality for successfully deleting temp folders.

Author:
jfaltermeier

Field Summary
 
Fields inherited from interface org.eclipse.emf.ecore.resource.URIHandler
DEFAULT_HANDLERS
 
Constructor Summary
ProjectSpaceFileURIHandler(HashSet<String> extensions)
          Constructor for ProjectSpaceFileURIHandler.
 
Method Summary
 boolean canHandle(org.eclipse.emf.common.util.URI uri)
           
 void delete(org.eclipse.emf.common.util.URI uri, Map<?,?> options)
           
 
Methods inherited from class org.eclipse.emf.ecore.resource.impl.FileURIHandlerImpl
createInputStream, createOutputStream, exists, getAttributes, setAttributes
 
Methods inherited from class org.eclipse.emf.ecore.resource.impl.URIHandlerImpl
contentDescription
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectSpaceFileURIHandler

public ProjectSpaceFileURIHandler(HashSet<String> extensions)
Constructor for ProjectSpaceFileURIHandler.

Parameters:
extensions - set of all file extensions this handler should handle.
Method Detail

canHandle

public boolean canHandle(org.eclipse.emf.common.util.URI uri)
Specified by:
canHandle in interface org.eclipse.emf.ecore.resource.URIHandler
Overrides:
canHandle in class org.eclipse.emf.ecore.resource.impl.FileURIHandlerImpl

delete

public void delete(org.eclipse.emf.common.util.URI uri,
                   Map<?,?> options)
            throws IOException
Specified by:
delete in interface org.eclipse.emf.ecore.resource.URIHandler
Overrides:
delete in class org.eclipse.emf.ecore.resource.impl.FileURIHandlerImpl
Throws:
IOException


Copyright © 2015. All Rights Reserved.