]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.graphfile/src/org/simantics/graphfile/hack/SystemProject.java
f270dd21341488343f16edf7d43a3f49980c6116
[simantics/platform.git] / bundles / org.simantics.graphfile / src / org / simantics / graphfile / hack / SystemProject.java
1 /*******************************************************************************
2  * Copyright (c) 2013 Association for Decentralized Information Management
3  * in Industry THTH ry.
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.graphfile.hack;
13
14 import java.net.URI;
15 import java.util.Map;
16
17 import org.eclipse.core.resources.FileInfoMatcherDescription;
18 import org.eclipse.core.resources.IBuildConfiguration;
19 import org.eclipse.core.resources.IContainer;
20 import org.eclipse.core.resources.IFile;
21 import org.eclipse.core.resources.IFolder;
22 import org.eclipse.core.resources.IMarker;
23 import org.eclipse.core.resources.IPathVariableManager;
24 import org.eclipse.core.resources.IProject;
25 import org.eclipse.core.resources.IProjectNature;
26 import org.eclipse.core.resources.IResource;
27 import org.eclipse.core.resources.IResourceFilterDescription;
28 import org.eclipse.core.resources.IResourceProxy;
29 import org.eclipse.core.resources.IResourceProxyVisitor;
30 import org.eclipse.core.resources.IResourceVisitor;
31 import org.eclipse.core.resources.IWorkspace;
32 import org.eclipse.core.resources.ResourceAttributes;
33 import org.eclipse.core.runtime.CoreException;
34 import org.eclipse.core.runtime.IPath;
35 import org.eclipse.core.runtime.IPluginDescriptor;
36 import org.eclipse.core.runtime.IProgressMonitor;
37 import org.eclipse.core.runtime.Path;
38 import org.eclipse.core.runtime.QualifiedName;
39 import org.eclipse.core.runtime.content.IContentTypeMatcher;
40 import org.eclipse.core.runtime.jobs.ISchedulingRule;
41
42 public class SystemProject implements IProject{
43
44         private SystemProject(){};
45         private static SystemProject INSTANCE;
46         
47         public static SystemProject getDefault() {
48                 if (INSTANCE == null)
49                         INSTANCE = new SystemProject();
50                 return INSTANCE;
51         }
52         
53         @Override
54         public boolean exists(IPath path) {
55                 // TODO Auto-generated method stub
56                 return false;
57         }
58
59         @Override
60         public IResource findMember(String name) {
61                 // TODO Auto-generated method stub
62                 return null;
63         }
64
65         @Override
66         public IResource findMember(String name, boolean includePhantoms) {
67                 // TODO Auto-generated method stub
68                 return null;
69         }
70
71         @Override
72         public IResource findMember(IPath path) {
73                 // TODO Auto-generated method stub
74                 return null;
75         }
76
77         @Override
78         public IResource findMember(IPath path, boolean includePhantoms) {
79                 // TODO Auto-generated method stub
80                 return null;
81         }
82
83         @Override
84         public String getDefaultCharset() throws CoreException {
85                 return "UTF-8";
86         }
87
88         @Override
89         public String getDefaultCharset(boolean checkImplicit) throws CoreException {
90                 return "UTF-8";
91         }
92
93         @Override
94         public IFile getFile(IPath path) {
95                 // TODO Auto-generated method stub
96                 return null;
97         }
98
99         @Override
100         public IFolder getFolder(IPath path) {
101                 // TODO Auto-generated method stub
102                 return null;
103         }
104
105         @Override
106         public IResource[] members() throws CoreException {
107                 // TODO Auto-generated method stub
108                 return null;
109         }
110
111         @Override
112         public IResource[] members(boolean includePhantoms) throws CoreException {
113                 // TODO Auto-generated method stub
114                 return null;
115         }
116
117         @Override
118         public IResource[] members(int memberFlags) throws CoreException {
119                 // TODO Auto-generated method stub
120                 return null;
121         }
122
123         @Override
124         public IFile[] findDeletedMembersWithHistory(int depth,
125                         IProgressMonitor monitor) throws CoreException {
126                 // TODO Auto-generated method stub
127                 return null;
128         }
129
130         @Override
131         public void setDefaultCharset(String charset) throws CoreException {
132                 // TODO Auto-generated method stub
133                 
134         }
135
136         @Override
137         public void setDefaultCharset(String charset, IProgressMonitor monitor)
138                         throws CoreException {
139                 // TODO Auto-generated method stub
140                 
141         }
142
143         @Override
144         public IResourceFilterDescription createFilter(int type,
145                         FileInfoMatcherDescription matcherDescription, int updateFlags,
146                         IProgressMonitor monitor) throws CoreException {
147                 // TODO Auto-generated method stub
148                 return null;
149         }
150
151         @Override
152         public IResourceFilterDescription[] getFilters() throws CoreException {
153                 // TODO Auto-generated method stub
154                 return null;
155         }
156
157         @Override
158         public void accept(IResourceProxyVisitor visitor, int memberFlags)
159                         throws CoreException {
160                 // TODO Auto-generated method stub
161                 
162         }
163
164         @Override
165         public void accept(IResourceVisitor visitor) throws CoreException {
166                 // TODO Auto-generated method stub
167                 
168         }
169
170         @Override
171         public void accept(IResourceVisitor visitor, int depth,
172                         boolean includePhantoms) throws CoreException {
173                 // TODO Auto-generated method stub
174                 
175         }
176
177         @Override
178         public void accept(IResourceVisitor visitor, int depth, int memberFlags)
179                         throws CoreException {
180                 // TODO Auto-generated method stub
181                 
182         }
183         
184         @Override
185         public void accept(IResourceProxyVisitor visitor, int depth, int memberFlags) throws CoreException {
186                 // TODO Auto-generated method stub
187                 
188         }
189
190         @Override
191         public void clearHistory(IProgressMonitor monitor) throws CoreException {
192                 // TODO Auto-generated method stub
193                 
194         }
195
196         @Override
197         public void copy(IPath destination, boolean force, IProgressMonitor monitor)
198                         throws CoreException {
199                 // TODO Auto-generated method stub
200                 
201         }
202
203         @Override
204         public void copy(IPath destination, int updateFlags,
205                         IProgressMonitor monitor) throws CoreException {
206                 // TODO Auto-generated method stub
207                 
208         }
209
210         @Override
211         public void copy(IProjectDescription description, boolean force,
212                         IProgressMonitor monitor) throws CoreException {
213                 // TODO Auto-generated method stub
214                 
215         }
216
217         @Override
218         public void copy(IProjectDescription description, int updateFlags,
219                         IProgressMonitor monitor) throws CoreException {
220                 // TODO Auto-generated method stub
221                 
222         }
223
224         @Override
225         public IMarker createMarker(String type) throws CoreException {
226                 // TODO Auto-generated method stub
227                 return null;
228         }
229
230         @Override
231         public IResourceProxy createProxy() {
232                 // TODO Auto-generated method stub
233                 return null;
234         }
235
236         @Override
237         public void delete(boolean force, IProgressMonitor monitor)
238                         throws CoreException {
239                 // TODO Auto-generated method stub
240                 
241         }
242
243         @Override
244         public void delete(int updateFlags, IProgressMonitor monitor)
245                         throws CoreException {
246                 // TODO Auto-generated method stub
247                 
248         }
249
250         @Override
251         public void deleteMarkers(String type, boolean includeSubtypes, int depth)
252                         throws CoreException {
253                 // TODO Auto-generated method stub
254                 
255         }
256
257         @Override
258         public boolean exists() {
259                 // TODO Auto-generated method stub
260                 return false;
261         }
262
263         @Override
264         public IMarker findMarker(long id) throws CoreException {
265                 // TODO Auto-generated method stub
266                 return null;
267         }
268
269         @Override
270         public IMarker[] findMarkers(String type, boolean includeSubtypes, int depth)
271                         throws CoreException {
272                 // TODO Auto-generated method stub
273                 return null;
274         }
275
276         @Override
277         public int findMaxProblemSeverity(String type, boolean includeSubtypes,
278                         int depth) throws CoreException {
279                 // TODO Auto-generated method stub
280                 return 0;
281         }
282
283         @Override
284         public String getFileExtension() {
285                 // TODO Auto-generated method stub
286                 return null;
287         }
288
289         @Override
290         public IPath getFullPath() {
291                 return new Path("");
292         }
293
294         @Override
295         public long getLocalTimeStamp() {
296                 // TODO Auto-generated method stub
297                 return 0;
298         }
299
300         @Override
301         public IPath getLocation() {
302                 return new Path("");
303         }
304
305         @Override
306         public URI getLocationURI() {
307                 // TODO Auto-generated method stub
308                 return null;
309         }
310
311         @Override
312         public IMarker getMarker(long id) {
313                 // TODO Auto-generated method stub
314                 return null;
315         }
316
317         @Override
318         public long getModificationStamp() {
319                 // TODO Auto-generated method stub
320                 return 0;
321         }
322
323         @Override
324         public String getName() {
325                 return "SystemProject";
326         }
327
328         @Override
329         public IPathVariableManager getPathVariableManager() {
330                 // TODO Auto-generated method stub
331                 return null;
332         }
333
334         @Override
335         public IContainer getParent() {
336                 // TODO Auto-generated method stub
337                 return null;
338         }
339
340         @SuppressWarnings({ "rawtypes", "unchecked" })
341         @Override
342         public Map getPersistentProperties() throws CoreException {
343                 // TODO Auto-generated method stub
344                 return null;
345         }
346
347         @Override
348         public String getPersistentProperty(QualifiedName key) throws CoreException {
349                 // TODO Auto-generated method stub
350                 return null;
351         }
352
353         @Override
354         public IProject getProject() {
355                 return this;
356         }
357
358         @Override
359         public IPath getProjectRelativePath() {
360                 return new Path("");
361         }
362
363         @Override
364         public IPath getRawLocation() {
365                 return new Path("");
366         }
367
368         @Override
369         public URI getRawLocationURI() {
370                 // TODO Auto-generated method stub
371                 return null;
372         }
373
374         @Override
375         public ResourceAttributes getResourceAttributes() {
376                 // TODO Auto-generated method stub
377                 return null;
378         }
379
380         @SuppressWarnings({ "unchecked", "rawtypes" })
381         @Override
382         public Map getSessionProperties() throws CoreException {
383                 // TODO Auto-generated method stub
384                 return null;
385         }
386
387         @Override
388         public Object getSessionProperty(QualifiedName key) throws CoreException {
389                 // TODO Auto-generated method stub
390                 return null;
391         }
392
393         @Override
394         public int getType() {
395                 return IProject.PROJECT;
396         }
397
398         @Override
399         public IWorkspace getWorkspace() {
400                 // TODO Auto-generated method stub
401                 return null;
402         }
403
404         @Override
405         public boolean isAccessible() {
406                 // TODO Auto-generated method stub
407                 return false;
408         }
409
410         @Override
411         public boolean isDerived() {
412                 // TODO Auto-generated method stub
413                 return false;
414         }
415
416         @Override
417         public boolean isDerived(int options) {
418                 // TODO Auto-generated method stub
419                 return false;
420         }
421
422         @Override
423         public boolean isHidden() {
424                 // TODO Auto-generated method stub
425                 return false;
426         }
427
428         @Override
429         public boolean isHidden(int options) {
430                 // TODO Auto-generated method stub
431                 return false;
432         }
433
434         @Override
435         public boolean isLinked() {
436                 // TODO Auto-generated method stub
437                 return false;
438         }
439
440         @Override
441         public boolean isVirtual() {
442                 // TODO Auto-generated method stub
443                 return false;
444         }
445
446         @Override
447         public boolean isLinked(int options) {
448                 // TODO Auto-generated method stub
449                 return false;
450         }
451
452         @Override
453         public boolean isLocal(int depth) {
454                 // TODO Auto-generated method stub
455                 return false;
456         }
457
458         @Override
459         public boolean isPhantom() {
460                 // TODO Auto-generated method stub
461                 return false;
462         }
463
464         @Override
465         public boolean isReadOnly() {
466                 // TODO Auto-generated method stub
467                 return true;
468         }
469
470         @Override
471         public boolean isSynchronized(int depth) {
472                 // TODO Auto-generated method stub
473                 return true;
474         }
475
476         @Override
477         public boolean isTeamPrivateMember() {
478                 // TODO Auto-generated method stub
479                 return false;
480         }
481
482         @Override
483         public boolean isTeamPrivateMember(int options) {
484                 // TODO Auto-generated method stub
485                 return false;
486         }
487
488         @Override
489         public void move(IPath destination, boolean force, IProgressMonitor monitor)
490                         throws CoreException {
491                 // TODO Auto-generated method stub
492                 
493         }
494
495         @Override
496         public void move(IPath destination, int updateFlags,
497                         IProgressMonitor monitor) throws CoreException {
498                 // TODO Auto-generated method stub
499                 
500         }
501
502         @Override
503         public void move(IProjectDescription description, boolean force,
504                         boolean keepHistory, IProgressMonitor monitor) throws CoreException {
505                 // TODO Auto-generated method stub
506                 
507         }
508
509         @Override
510         public void move(IProjectDescription description, int updateFlags,
511                         IProgressMonitor monitor) throws CoreException {
512                 // TODO Auto-generated method stub
513                 
514         }
515
516         @Override
517         public void refreshLocal(int depth, IProgressMonitor monitor)
518                         throws CoreException {
519                 // TODO Auto-generated method stub
520                 
521         }
522
523         @Override
524         public void revertModificationStamp(long value) throws CoreException {
525                 // TODO Auto-generated method stub
526                 
527         }
528
529         @Override
530         public void setDerived(boolean isDerived) throws CoreException {
531                 // TODO Auto-generated method stub
532                 
533         }
534
535         @Override
536         public void setDerived(boolean isDerived, IProgressMonitor monitor)
537                         throws CoreException {
538                 // TODO Auto-generated method stub
539                 
540         }
541
542         @Override
543         public void setHidden(boolean isHidden) throws CoreException {
544                 // TODO Auto-generated method stub
545                 
546         }
547
548         @Override
549         public void setLocal(boolean flag, int depth, IProgressMonitor monitor)
550                         throws CoreException {
551                 // TODO Auto-generated method stub
552                 
553         }
554
555         @Override
556         public long setLocalTimeStamp(long value) throws CoreException {
557                 // TODO Auto-generated method stub
558                 return 0;
559         }
560
561         @Override
562         public void setPersistentProperty(QualifiedName key, String value)
563                         throws CoreException {
564                 // TODO Auto-generated method stub
565                 
566         }
567
568         @Override
569         public void setReadOnly(boolean readOnly) {
570                 // TODO Auto-generated method stub
571                 
572         }
573
574         @Override
575         public void setResourceAttributes(ResourceAttributes attributes)
576                         throws CoreException {
577                 // TODO Auto-generated method stub
578                 
579         }
580
581         @Override
582         public void setSessionProperty(QualifiedName key, Object value)
583                         throws CoreException {
584                 // TODO Auto-generated method stub
585                 
586         }
587
588         @Override
589         public void setTeamPrivateMember(boolean isTeamPrivate)
590                         throws CoreException {
591                 // TODO Auto-generated method stub
592                 
593         }
594
595         @Override
596         public void touch(IProgressMonitor monitor) throws CoreException {
597                 // TODO Auto-generated method stub
598                 
599         }
600
601         @Override
602         public boolean contains(ISchedulingRule rule) {
603                 if (this.equals(rule))
604                         return true;
605                 return false;
606         }
607
608         @Override
609         public boolean isConflicting(ISchedulingRule rule) {
610                 if (this.equals(rule))
611                         return true;
612                 // TODO Auto-generated method stub
613                 return false;
614         }
615
616         @SuppressWarnings("rawtypes")
617         @Override
618         public Object getAdapter(Class adapter) {
619                 // TODO Auto-generated method stub
620                 return null;
621         }
622
623         @SuppressWarnings("rawtypes")
624         @Override
625         public void build(int kind, String builderName, Map args,
626                         IProgressMonitor monitor) throws CoreException {
627                 // TODO Auto-generated method stub
628                 
629         }
630         
631
632         @Override
633         public void build(int kind, IProgressMonitor monitor) throws CoreException {
634                 // TODO Auto-generated method stub
635                 
636         }
637
638         @Override
639         public void close(IProgressMonitor monitor) throws CoreException {
640                 // TODO Auto-generated method stub
641                 
642         }
643
644         @Override
645         public void create(IProjectDescription description, IProgressMonitor monitor)
646                         throws CoreException {
647                 // TODO Auto-generated method stub
648                 
649         }
650
651         @Override
652         public void create(IProgressMonitor monitor) throws CoreException {
653                 // TODO Auto-generated method stub
654                 
655         }
656
657         @Override
658         public void create(IProjectDescription description, int updateFlags,
659                         IProgressMonitor monitor) throws CoreException {
660                 // TODO Auto-generated method stub
661                 
662         }
663
664         @Override
665         public void delete(boolean deleteContent, boolean force,
666                         IProgressMonitor monitor) throws CoreException {
667                 // TODO Auto-generated method stub
668                 
669         }
670
671         @Override
672         public IContentTypeMatcher getContentTypeMatcher() throws CoreException {
673                 // TODO Auto-generated method stub
674                 return null;
675         }
676
677         @Override
678         public IProjectDescription getDescription() throws CoreException {
679                 // TODO Auto-generated method stub
680                 return null;
681         }
682
683         @Override
684         public IFile getFile(String name) {
685                 // TODO Auto-generated method stub
686                 return null;
687         }
688
689         @Override
690         public IFolder getFolder(String name) {
691                 // TODO Auto-generated method stub
692                 return null;
693         }
694
695         @Override
696         public IProjectNature getNature(String natureId) throws CoreException {
697                 // TODO Auto-generated method stub
698                 return null;
699         }
700
701         @Override
702         public IPath getWorkingLocation(String id) {
703                 // TODO Auto-generated method stub
704                 return null;
705         }
706
707         @Override
708         public IProject[] getReferencedProjects() throws CoreException {
709                 // TODO Auto-generated method stub
710                 return null;
711         }
712
713         @Override
714         public IProject[] getReferencingProjects() {
715                 // TODO Auto-generated method stub
716                 return null;
717         }
718
719         @Override
720         public boolean hasNature(String natureId) throws CoreException {
721                 // TODO Auto-generated method stub
722                 return false;
723         }
724
725         @Override
726         public boolean isNatureEnabled(String natureId) throws CoreException {
727                 // TODO Auto-generated method stub
728                 return false;
729         }
730
731         @Override
732         public boolean isOpen() {
733                 // TODO Auto-generated method stub
734                 return false;
735         }
736
737         @Override
738         public void loadSnapshot(int options, URI snapshotLocation,
739                         IProgressMonitor monitor) throws CoreException {
740                 // TODO Auto-generated method stub
741                 
742         }
743
744         @Override
745         public void move(IProjectDescription description, boolean force,
746                         IProgressMonitor monitor) throws CoreException {
747                 // TODO Auto-generated method stub
748                 
749         }
750
751         @Override
752         public void open(int updateFlags, IProgressMonitor monitor)
753                         throws CoreException {
754                 // TODO Auto-generated method stub
755                 
756         }
757
758         @Override
759         public void open(IProgressMonitor monitor) throws CoreException {
760                 // TODO Auto-generated method stub
761                 
762         }
763
764         @Override
765         public void saveSnapshot(int options, URI snapshotLocation,
766                         IProgressMonitor monitor) throws CoreException {
767                 // TODO Auto-generated method stub
768                 
769         }
770
771         @Override
772         public void setDescription(IProjectDescription description,
773                         IProgressMonitor monitor) throws CoreException {
774                 // TODO Auto-generated method stub
775                 
776         }
777
778         @Override
779         public void setDescription(IProjectDescription description,
780                         int updateFlags, IProgressMonitor monitor) throws CoreException {
781                 // TODO Auto-generated method stub
782                 
783         }
784         
785         
786         @Override
787         public void build(IBuildConfiguration config, int kind,
788                         IProgressMonitor monitor) throws CoreException {
789                 // TODO Auto-generated method stub
790                 
791         }
792
793
794
795         @Override
796         public IBuildConfiguration getActiveBuildConfig() throws CoreException {
797                 // TODO Auto-generated method stub
798                 return null;
799         }
800
801         @Override
802         public IBuildConfiguration getBuildConfig(String configName)
803                         throws CoreException {
804                 // TODO Auto-generated method stub
805                 return null;
806         }
807
808         @Override
809         public IBuildConfiguration[] getBuildConfigs() throws CoreException {
810                 // TODO Auto-generated method stub
811                 return null;
812         }
813
814         @Override
815         public IBuildConfiguration[] getReferencedBuildConfigs(String configName,
816                         boolean includeMissing) throws CoreException {
817                 // TODO Auto-generated method stub
818                 return null;
819         }
820
821         @Override
822         public boolean hasBuildConfig(String configName) throws CoreException {
823                 // TODO Auto-generated method stub
824                 return false;
825         }
826
827         @Override
828         public void clearCachedDynamicReferences() {
829                 // TODO Auto-generated method stub
830                 
831         }
832
833
834 }