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