]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.graphfile/src/org/simantics/graphfile/hack/SystemProject.java
(refs #7358) Initial 4.7 update commit
[simantics/platform.git] / bundles / org.simantics.graphfile / src / org / simantics / graphfile / hack / SystemProject.java
index 102fe3a5d7f0e4ec34b8bd7bf39c07ae2bd97490..70420996141649b5630f84f856089b41ec0c2114 100644 (file)
-/*******************************************************************************\r
- * Copyright (c) 2013 Association for Decentralized Information Management\r
- * in Industry THTH ry.\r
- * All rights reserved. This program and the accompanying materials\r
- * are made available under the terms of the Eclipse Public License v1.0\r
- * which accompanies this distribution, and is available at\r
- * http://www.eclipse.org/legal/epl-v10.html\r
- *\r
- * Contributors:\r
- *     VTT Technical Research Centre of Finland - initial API and implementation\r
- *******************************************************************************/\r
-package org.simantics.graphfile.hack;\r
-\r
-import java.net.URI;\r
-import java.util.Map;\r
-\r
-import org.eclipse.core.resources.FileInfoMatcherDescription;\r
-import org.eclipse.core.resources.IBuildConfiguration;\r
-import org.eclipse.core.resources.IContainer;\r
-import org.eclipse.core.resources.IFile;\r
-import org.eclipse.core.resources.IFolder;\r
-import org.eclipse.core.resources.IMarker;\r
-import org.eclipse.core.resources.IPathVariableManager;\r
-import org.eclipse.core.resources.IProject;\r
-import org.eclipse.core.resources.IProjectDescription;\r
-import org.eclipse.core.resources.IProjectNature;\r
-import org.eclipse.core.resources.IResource;\r
-import org.eclipse.core.resources.IResourceFilterDescription;\r
-import org.eclipse.core.resources.IResourceProxy;\r
-import org.eclipse.core.resources.IResourceProxyVisitor;\r
-import org.eclipse.core.resources.IResourceVisitor;\r
-import org.eclipse.core.resources.IWorkspace;\r
-import org.eclipse.core.resources.ResourceAttributes;\r
-import org.eclipse.core.runtime.CoreException;\r
-import org.eclipse.core.runtime.IPath;\r
-import org.eclipse.core.runtime.IPluginDescriptor;\r
-import org.eclipse.core.runtime.IProgressMonitor;\r
-import org.eclipse.core.runtime.Path;\r
-import org.eclipse.core.runtime.QualifiedName;\r
-import org.eclipse.core.runtime.content.IContentTypeMatcher;\r
-import org.eclipse.core.runtime.jobs.ISchedulingRule;\r
-\r
-@SuppressWarnings("deprecation")\r
-public class SystemProject implements IProject{\r
-\r
-       private SystemProject(){};\r
-       private static SystemProject INSTANCE;\r
-       \r
-       public static SystemProject getDefault() {\r
-               if (INSTANCE == null)\r
-                       INSTANCE = new SystemProject();\r
-               return INSTANCE;\r
-       }\r
-       \r
-       @Override\r
-       public boolean exists(IPath path) {\r
-               // TODO Auto-generated method stub\r
-               return false;\r
-       }\r
-\r
-       @Override\r
-       public IResource findMember(String name) {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public IResource findMember(String name, boolean includePhantoms) {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public IResource findMember(IPath path) {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public IResource findMember(IPath path, boolean includePhantoms) {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public String getDefaultCharset() throws CoreException {\r
-               return "UTF-8";\r
-       }\r
-\r
-       @Override\r
-       public String getDefaultCharset(boolean checkImplicit) throws CoreException {\r
-               return "UTF-8";\r
-       }\r
-\r
-       @Override\r
-       public IFile getFile(IPath path) {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public IFolder getFolder(IPath path) {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public IResource[] members() throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public IResource[] members(boolean includePhantoms) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public IResource[] members(int memberFlags) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public IFile[] findDeletedMembersWithHistory(int depth,\r
-                       IProgressMonitor monitor) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public void setDefaultCharset(String charset) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public void setDefaultCharset(String charset, IProgressMonitor monitor)\r
-                       throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public IResourceFilterDescription createFilter(int type,\r
-                       FileInfoMatcherDescription matcherDescription, int updateFlags,\r
-                       IProgressMonitor monitor) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public IResourceFilterDescription[] getFilters() throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public void accept(IResourceProxyVisitor visitor, int memberFlags)\r
-                       throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public void accept(IResourceVisitor visitor) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public void accept(IResourceVisitor visitor, int depth,\r
-                       boolean includePhantoms) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public void accept(IResourceVisitor visitor, int depth, int memberFlags)\r
-                       throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-       \r
-       @Override\r
-       public void accept(IResourceProxyVisitor visitor, int depth, int memberFlags) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public void clearHistory(IProgressMonitor monitor) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public void copy(IPath destination, boolean force, IProgressMonitor monitor)\r
-                       throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public void copy(IPath destination, int updateFlags,\r
-                       IProgressMonitor monitor) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public void copy(IProjectDescription description, boolean force,\r
-                       IProgressMonitor monitor) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public void copy(IProjectDescription description, int updateFlags,\r
-                       IProgressMonitor monitor) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public IMarker createMarker(String type) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public IResourceProxy createProxy() {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public void delete(boolean force, IProgressMonitor monitor)\r
-                       throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public void delete(int updateFlags, IProgressMonitor monitor)\r
-                       throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public void deleteMarkers(String type, boolean includeSubtypes, int depth)\r
-                       throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public boolean exists() {\r
-               // TODO Auto-generated method stub\r
-               return false;\r
-       }\r
-\r
-       @Override\r
-       public IMarker findMarker(long id) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public IMarker[] findMarkers(String type, boolean includeSubtypes, int depth)\r
-                       throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public int findMaxProblemSeverity(String type, boolean includeSubtypes,\r
-                       int depth) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               return 0;\r
-       }\r
-\r
-       @Override\r
-       public String getFileExtension() {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public IPath getFullPath() {\r
-               return new Path("");\r
-       }\r
-\r
-       @Override\r
-       public long getLocalTimeStamp() {\r
-               // TODO Auto-generated method stub\r
-               return 0;\r
-       }\r
-\r
-       @Override\r
-       public IPath getLocation() {\r
-               return new Path("");\r
-       }\r
-\r
-       @Override\r
-       public URI getLocationURI() {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public IMarker getMarker(long id) {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public long getModificationStamp() {\r
-               // TODO Auto-generated method stub\r
-               return 0;\r
-       }\r
-\r
-       @Override\r
-       public String getName() {\r
-               return "SystemProject";\r
-       }\r
-\r
-       @Override\r
-       public IPathVariableManager getPathVariableManager() {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public IContainer getParent() {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @SuppressWarnings({ "rawtypes", "unchecked" })\r
-       @Override\r
-       public Map getPersistentProperties() throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public String getPersistentProperty(QualifiedName key) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public IProject getProject() {\r
-               return this;\r
-       }\r
-\r
-       @Override\r
-       public IPath getProjectRelativePath() {\r
-               return new Path("");\r
-       }\r
-\r
-       @Override\r
-       public IPath getRawLocation() {\r
-               return new Path("");\r
-       }\r
-\r
-       @Override\r
-       public URI getRawLocationURI() {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public ResourceAttributes getResourceAttributes() {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @SuppressWarnings({ "unchecked", "rawtypes" })\r
-       @Override\r
-       public Map getSessionProperties() throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public Object getSessionProperty(QualifiedName key) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public int getType() {\r
-               return IProject.PROJECT;\r
-       }\r
-\r
-       @Override\r
-       public IWorkspace getWorkspace() {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public boolean isAccessible() {\r
-               // TODO Auto-generated method stub\r
-               return false;\r
-       }\r
-\r
-       @Override\r
-       public boolean isDerived() {\r
-               // TODO Auto-generated method stub\r
-               return false;\r
-       }\r
-\r
-       @Override\r
-       public boolean isDerived(int options) {\r
-               // TODO Auto-generated method stub\r
-               return false;\r
-       }\r
-\r
-       @Override\r
-       public boolean isHidden() {\r
-               // TODO Auto-generated method stub\r
-               return false;\r
-       }\r
-\r
-       @Override\r
-       public boolean isHidden(int options) {\r
-               // TODO Auto-generated method stub\r
-               return false;\r
-       }\r
-\r
-       @Override\r
-       public boolean isLinked() {\r
-               // TODO Auto-generated method stub\r
-               return false;\r
-       }\r
-\r
-       @Override\r
-       public boolean isVirtual() {\r
-               // TODO Auto-generated method stub\r
-               return false;\r
-       }\r
-\r
-       @Override\r
-       public boolean isLinked(int options) {\r
-               // TODO Auto-generated method stub\r
-               return false;\r
-       }\r
-\r
-       @Override\r
-       public boolean isLocal(int depth) {\r
-               // TODO Auto-generated method stub\r
-               return false;\r
-       }\r
-\r
-       @Override\r
-       public boolean isPhantom() {\r
-               // TODO Auto-generated method stub\r
-               return false;\r
-       }\r
-\r
-       @Override\r
-       public boolean isReadOnly() {\r
-               // TODO Auto-generated method stub\r
-               return true;\r
-       }\r
-\r
-       @Override\r
-       public boolean isSynchronized(int depth) {\r
-               // TODO Auto-generated method stub\r
-               return true;\r
-       }\r
-\r
-       @Override\r
-       public boolean isTeamPrivateMember() {\r
-               // TODO Auto-generated method stub\r
-               return false;\r
-       }\r
-\r
-       @Override\r
-       public boolean isTeamPrivateMember(int options) {\r
-               // TODO Auto-generated method stub\r
-               return false;\r
-       }\r
-\r
-       @Override\r
-       public void move(IPath destination, boolean force, IProgressMonitor monitor)\r
-                       throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public void move(IPath destination, int updateFlags,\r
-                       IProgressMonitor monitor) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public void move(IProjectDescription description, boolean force,\r
-                       boolean keepHistory, IProgressMonitor monitor) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public void move(IProjectDescription description, int updateFlags,\r
-                       IProgressMonitor monitor) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public void refreshLocal(int depth, IProgressMonitor monitor)\r
-                       throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public void revertModificationStamp(long value) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public void setDerived(boolean isDerived) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public void setDerived(boolean isDerived, IProgressMonitor monitor)\r
-                       throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public void setHidden(boolean isHidden) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public void setLocal(boolean flag, int depth, IProgressMonitor monitor)\r
-                       throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public long setLocalTimeStamp(long value) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               return 0;\r
-       }\r
-\r
-       @Override\r
-       public void setPersistentProperty(QualifiedName key, String value)\r
-                       throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public void setReadOnly(boolean readOnly) {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public void setResourceAttributes(ResourceAttributes attributes)\r
-                       throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public void setSessionProperty(QualifiedName key, Object value)\r
-                       throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public void setTeamPrivateMember(boolean isTeamPrivate)\r
-                       throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public void touch(IProgressMonitor monitor) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public boolean contains(ISchedulingRule rule) {\r
-               if (this.equals(rule))\r
-                       return true;\r
-               return false;\r
-       }\r
-\r
-       @Override\r
-       public boolean isConflicting(ISchedulingRule rule) {\r
-               if (this.equals(rule))\r
-                       return true;\r
-               // TODO Auto-generated method stub\r
-               return false;\r
-       }\r
-\r
-       @SuppressWarnings("rawtypes")\r
-       @Override\r
-       public Object getAdapter(Class adapter) {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @SuppressWarnings("rawtypes")\r
-       @Override\r
-       public void build(int kind, String builderName, Map args,\r
-                       IProgressMonitor monitor) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-       \r
-\r
-       @Override\r
-       public void build(int kind, IProgressMonitor monitor) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public void close(IProgressMonitor monitor) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public void create(IProjectDescription description, IProgressMonitor monitor)\r
-                       throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public void create(IProgressMonitor monitor) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public void create(IProjectDescription description, int updateFlags,\r
-                       IProgressMonitor monitor) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public void delete(boolean deleteContent, boolean force,\r
-                       IProgressMonitor monitor) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public IContentTypeMatcher getContentTypeMatcher() throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public IProjectDescription getDescription() throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public IFile getFile(String name) {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public IFolder getFolder(String name) {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public IProjectNature getNature(String natureId) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public IPath getPluginWorkingLocation(IPluginDescriptor plugin) {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public IPath getWorkingLocation(String id) {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public IProject[] getReferencedProjects() throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public IProject[] getReferencingProjects() {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public boolean hasNature(String natureId) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               return false;\r
-       }\r
-\r
-       @Override\r
-       public boolean isNatureEnabled(String natureId) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               return false;\r
-       }\r
-\r
-       @Override\r
-       public boolean isOpen() {\r
-               // TODO Auto-generated method stub\r
-               return false;\r
-       }\r
-\r
-       @Override\r
-       public void loadSnapshot(int options, URI snapshotLocation,\r
-                       IProgressMonitor monitor) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public void move(IProjectDescription description, boolean force,\r
-                       IProgressMonitor monitor) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public void open(int updateFlags, IProgressMonitor monitor)\r
-                       throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public void open(IProgressMonitor monitor) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public void saveSnapshot(int options, URI snapshotLocation,\r
-                       IProgressMonitor monitor) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public void setDescription(IProjectDescription description,\r
-                       IProgressMonitor monitor) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public void setDescription(IProjectDescription description,\r
-                       int updateFlags, IProgressMonitor monitor) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-       \r
-       \r
-       @Override\r
-       public void build(IBuildConfiguration config, int kind,\r
-                       IProgressMonitor monitor) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-\r
-\r
-       @Override\r
-       public IBuildConfiguration getActiveBuildConfig() throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public IBuildConfiguration getBuildConfig(String configName)\r
-                       throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public IBuildConfiguration[] getBuildConfigs() throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public IBuildConfiguration[] getReferencedBuildConfigs(String configName,\r
-                       boolean includeMissing) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public boolean hasBuildConfig(String configName) throws CoreException {\r
-               // TODO Auto-generated method stub\r
-               return false;\r
-       }\r
-\r
-\r
-}\r
+/*******************************************************************************
+ * Copyright (c) 2013 Association for Decentralized Information Management
+ * in Industry THTH ry.
+ * 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:
+ *     VTT Technical Research Centre of Finland - initial API and implementation
+ *******************************************************************************/
+package org.simantics.graphfile.hack;
+
+import java.net.URI;
+import java.util.Map;
+
+import org.eclipse.core.resources.FileInfoMatcherDescription;
+import org.eclipse.core.resources.IBuildConfiguration;
+import org.eclipse.core.resources.IContainer;
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IFolder;
+import org.eclipse.core.resources.IMarker;
+import org.eclipse.core.resources.IPathVariableManager;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IProjectDescription;
+import org.eclipse.core.resources.IProjectNature;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.IResourceFilterDescription;
+import org.eclipse.core.resources.IResourceProxy;
+import org.eclipse.core.resources.IResourceProxyVisitor;
+import org.eclipse.core.resources.IResourceVisitor;
+import org.eclipse.core.resources.IWorkspace;
+import org.eclipse.core.resources.ResourceAttributes;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IPluginDescriptor;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.core.runtime.QualifiedName;
+import org.eclipse.core.runtime.content.IContentTypeMatcher;
+import org.eclipse.core.runtime.jobs.ISchedulingRule;
+
+@SuppressWarnings("deprecation")
+public class SystemProject implements IProject{
+
+       private SystemProject(){};
+       private static SystemProject INSTANCE;
+       
+       public static SystemProject getDefault() {
+               if (INSTANCE == null)
+                       INSTANCE = new SystemProject();
+               return INSTANCE;
+       }
+       
+       @Override
+       public boolean exists(IPath path) {
+               // TODO Auto-generated method stub
+               return false;
+       }
+
+       @Override
+       public IResource findMember(String name) {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public IResource findMember(String name, boolean includePhantoms) {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public IResource findMember(IPath path) {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public IResource findMember(IPath path, boolean includePhantoms) {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public String getDefaultCharset() throws CoreException {
+               return "UTF-8";
+       }
+
+       @Override
+       public String getDefaultCharset(boolean checkImplicit) throws CoreException {
+               return "UTF-8";
+       }
+
+       @Override
+       public IFile getFile(IPath path) {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public IFolder getFolder(IPath path) {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public IResource[] members() throws CoreException {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public IResource[] members(boolean includePhantoms) throws CoreException {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public IResource[] members(int memberFlags) throws CoreException {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public IFile[] findDeletedMembersWithHistory(int depth,
+                       IProgressMonitor monitor) throws CoreException {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public void setDefaultCharset(String charset) throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public void setDefaultCharset(String charset, IProgressMonitor monitor)
+                       throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public IResourceFilterDescription createFilter(int type,
+                       FileInfoMatcherDescription matcherDescription, int updateFlags,
+                       IProgressMonitor monitor) throws CoreException {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public IResourceFilterDescription[] getFilters() throws CoreException {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public void accept(IResourceProxyVisitor visitor, int memberFlags)
+                       throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public void accept(IResourceVisitor visitor) throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public void accept(IResourceVisitor visitor, int depth,
+                       boolean includePhantoms) throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public void accept(IResourceVisitor visitor, int depth, int memberFlags)
+                       throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+       
+       @Override
+       public void accept(IResourceProxyVisitor visitor, int depth, int memberFlags) throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public void clearHistory(IProgressMonitor monitor) throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public void copy(IPath destination, boolean force, IProgressMonitor monitor)
+                       throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public void copy(IPath destination, int updateFlags,
+                       IProgressMonitor monitor) throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public void copy(IProjectDescription description, boolean force,
+                       IProgressMonitor monitor) throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public void copy(IProjectDescription description, int updateFlags,
+                       IProgressMonitor monitor) throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public IMarker createMarker(String type) throws CoreException {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public IResourceProxy createProxy() {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public void delete(boolean force, IProgressMonitor monitor)
+                       throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public void delete(int updateFlags, IProgressMonitor monitor)
+                       throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public void deleteMarkers(String type, boolean includeSubtypes, int depth)
+                       throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public boolean exists() {
+               // TODO Auto-generated method stub
+               return false;
+       }
+
+       @Override
+       public IMarker findMarker(long id) throws CoreException {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public IMarker[] findMarkers(String type, boolean includeSubtypes, int depth)
+                       throws CoreException {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public int findMaxProblemSeverity(String type, boolean includeSubtypes,
+                       int depth) throws CoreException {
+               // TODO Auto-generated method stub
+               return 0;
+       }
+
+       @Override
+       public String getFileExtension() {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public IPath getFullPath() {
+               return new Path("");
+       }
+
+       @Override
+       public long getLocalTimeStamp() {
+               // TODO Auto-generated method stub
+               return 0;
+       }
+
+       @Override
+       public IPath getLocation() {
+               return new Path("");
+       }
+
+       @Override
+       public URI getLocationURI() {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public IMarker getMarker(long id) {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public long getModificationStamp() {
+               // TODO Auto-generated method stub
+               return 0;
+       }
+
+       @Override
+       public String getName() {
+               return "SystemProject";
+       }
+
+       @Override
+       public IPathVariableManager getPathVariableManager() {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public IContainer getParent() {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @SuppressWarnings({ "rawtypes", "unchecked" })
+       @Override
+       public Map getPersistentProperties() throws CoreException {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public String getPersistentProperty(QualifiedName key) throws CoreException {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public IProject getProject() {
+               return this;
+       }
+
+       @Override
+       public IPath getProjectRelativePath() {
+               return new Path("");
+       }
+
+       @Override
+       public IPath getRawLocation() {
+               return new Path("");
+       }
+
+       @Override
+       public URI getRawLocationURI() {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public ResourceAttributes getResourceAttributes() {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @SuppressWarnings({ "unchecked", "rawtypes" })
+       @Override
+       public Map getSessionProperties() throws CoreException {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public Object getSessionProperty(QualifiedName key) throws CoreException {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public int getType() {
+               return IProject.PROJECT;
+       }
+
+       @Override
+       public IWorkspace getWorkspace() {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public boolean isAccessible() {
+               // TODO Auto-generated method stub
+               return false;
+       }
+
+       @Override
+       public boolean isDerived() {
+               // TODO Auto-generated method stub
+               return false;
+       }
+
+       @Override
+       public boolean isDerived(int options) {
+               // TODO Auto-generated method stub
+               return false;
+       }
+
+       @Override
+       public boolean isHidden() {
+               // TODO Auto-generated method stub
+               return false;
+       }
+
+       @Override
+       public boolean isHidden(int options) {
+               // TODO Auto-generated method stub
+               return false;
+       }
+
+       @Override
+       public boolean isLinked() {
+               // TODO Auto-generated method stub
+               return false;
+       }
+
+       @Override
+       public boolean isVirtual() {
+               // TODO Auto-generated method stub
+               return false;
+       }
+
+       @Override
+       public boolean isLinked(int options) {
+               // TODO Auto-generated method stub
+               return false;
+       }
+
+       @Override
+       public boolean isLocal(int depth) {
+               // TODO Auto-generated method stub
+               return false;
+       }
+
+       @Override
+       public boolean isPhantom() {
+               // TODO Auto-generated method stub
+               return false;
+       }
+
+       @Override
+       public boolean isReadOnly() {
+               // TODO Auto-generated method stub
+               return true;
+       }
+
+       @Override
+       public boolean isSynchronized(int depth) {
+               // TODO Auto-generated method stub
+               return true;
+       }
+
+       @Override
+       public boolean isTeamPrivateMember() {
+               // TODO Auto-generated method stub
+               return false;
+       }
+
+       @Override
+       public boolean isTeamPrivateMember(int options) {
+               // TODO Auto-generated method stub
+               return false;
+       }
+
+       @Override
+       public void move(IPath destination, boolean force, IProgressMonitor monitor)
+                       throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public void move(IPath destination, int updateFlags,
+                       IProgressMonitor monitor) throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public void move(IProjectDescription description, boolean force,
+                       boolean keepHistory, IProgressMonitor monitor) throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public void move(IProjectDescription description, int updateFlags,
+                       IProgressMonitor monitor) throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public void refreshLocal(int depth, IProgressMonitor monitor)
+                       throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public void revertModificationStamp(long value) throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public void setDerived(boolean isDerived) throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public void setDerived(boolean isDerived, IProgressMonitor monitor)
+                       throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public void setHidden(boolean isHidden) throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public void setLocal(boolean flag, int depth, IProgressMonitor monitor)
+                       throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public long setLocalTimeStamp(long value) throws CoreException {
+               // TODO Auto-generated method stub
+               return 0;
+       }
+
+       @Override
+       public void setPersistentProperty(QualifiedName key, String value)
+                       throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public void setReadOnly(boolean readOnly) {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public void setResourceAttributes(ResourceAttributes attributes)
+                       throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public void setSessionProperty(QualifiedName key, Object value)
+                       throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public void setTeamPrivateMember(boolean isTeamPrivate)
+                       throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public void touch(IProgressMonitor monitor) throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public boolean contains(ISchedulingRule rule) {
+               if (this.equals(rule))
+                       return true;
+               return false;
+       }
+
+       @Override
+       public boolean isConflicting(ISchedulingRule rule) {
+               if (this.equals(rule))
+                       return true;
+               // TODO Auto-generated method stub
+               return false;
+       }
+
+       @SuppressWarnings("rawtypes")
+       @Override
+       public Object getAdapter(Class adapter) {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @SuppressWarnings("rawtypes")
+       @Override
+       public void build(int kind, String builderName, Map args,
+                       IProgressMonitor monitor) throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+       
+
+       @Override
+       public void build(int kind, IProgressMonitor monitor) throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public void close(IProgressMonitor monitor) throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public void create(IProjectDescription description, IProgressMonitor monitor)
+                       throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public void create(IProgressMonitor monitor) throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public void create(IProjectDescription description, int updateFlags,
+                       IProgressMonitor monitor) throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public void delete(boolean deleteContent, boolean force,
+                       IProgressMonitor monitor) throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public IContentTypeMatcher getContentTypeMatcher() throws CoreException {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public IProjectDescription getDescription() throws CoreException {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public IFile getFile(String name) {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public IFolder getFolder(String name) {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public IProjectNature getNature(String natureId) throws CoreException {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public IPath getPluginWorkingLocation(IPluginDescriptor plugin) {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public IPath getWorkingLocation(String id) {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public IProject[] getReferencedProjects() throws CoreException {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public IProject[] getReferencingProjects() {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public boolean hasNature(String natureId) throws CoreException {
+               // TODO Auto-generated method stub
+               return false;
+       }
+
+       @Override
+       public boolean isNatureEnabled(String natureId) throws CoreException {
+               // TODO Auto-generated method stub
+               return false;
+       }
+
+       @Override
+       public boolean isOpen() {
+               // TODO Auto-generated method stub
+               return false;
+       }
+
+       @Override
+       public void loadSnapshot(int options, URI snapshotLocation,
+                       IProgressMonitor monitor) throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public void move(IProjectDescription description, boolean force,
+                       IProgressMonitor monitor) throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public void open(int updateFlags, IProgressMonitor monitor)
+                       throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public void open(IProgressMonitor monitor) throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public void saveSnapshot(int options, URI snapshotLocation,
+                       IProgressMonitor monitor) throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public void setDescription(IProjectDescription description,
+                       IProgressMonitor monitor) throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public void setDescription(IProjectDescription description,
+                       int updateFlags, IProgressMonitor monitor) throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+       
+       
+       @Override
+       public void build(IBuildConfiguration config, int kind,
+                       IProgressMonitor monitor) throws CoreException {
+               // TODO Auto-generated method stub
+               
+       }
+
+
+
+       @Override
+       public IBuildConfiguration getActiveBuildConfig() throws CoreException {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public IBuildConfiguration getBuildConfig(String configName)
+                       throws CoreException {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public IBuildConfiguration[] getBuildConfigs() throws CoreException {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public IBuildConfiguration[] getReferencedBuildConfigs(String configName,
+                       boolean includeMissing) throws CoreException {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public boolean hasBuildConfig(String configName) throws CoreException {
+               // TODO Auto-generated method stub
+               return false;
+       }
+
+       @Override
+       public void clearCachedDynamicReferences() {
+               // TODO Auto-generated method stub
+               
+       }
+
+
+}