From caaf9a1d33dd7d97fab7ccc7950e0519c30954b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=A4der?= Date: Mon, 26 Nov 2018 14:13:28 +0100 Subject: [PATCH] Remove forked jdt projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Mäder --- .../org-eclipse-core-filebuffers/pom.xml | 92 - .../eclipse/core/filebuffers/FileBuffers.java | 194 - .../core/filebuffers/IDocumentFactory.java | 33 - .../IDocumentSetupParticipant.java | 46 - .../IDocumentSetupParticipantExtension.java | 40 - .../eclipse/core/filebuffers/IFileBuffer.java | 223 - .../core/filebuffers/IFileBufferListener.java | 99 - .../core/filebuffers/IFileBufferManager.java | 293 - .../filebuffers/IFileBufferStatusCodes.java | 62 - .../filebuffers/IStateValidationSupport.java | 48 - .../filebuffers/ISynchronizationContext.java | 34 - .../core/filebuffers/ITextFileBuffer.java | 62 - .../filebuffers/ITextFileBufferManager.java | 202 - .../core/filebuffers/LocationKind.java | 63 - .../filebuffers/AbstractFileBuffer.java | 95 - .../internal/filebuffers/DocumentReader.java | 165 - .../filebuffers/ExtensionsRegistry.java | 566 -- .../filebuffers/FileBuffersMessages.java | 50 - .../filebuffers/FileBuffersPlugin.java | 69 - .../filebuffers/FileStoreFileBuffer.java | 233 - .../filebuffers/FileStoreTextFileBuffer.java | 659 --- .../core/internal/filebuffers/NLSUtility.java | 46 - .../filebuffers/SynchronizableDocument.java | 404 -- .../filebuffers/TextFileBufferManager.java | 852 --- .../FileBuffersMessages.properties | 39 - .../org-eclipse-core-filesystem/pom.xml | 92 - .../java/org/eclipse/core/filesystem/EFS.java | 475 -- .../eclipse/core/filesystem/IFileInfo.java | 139 - .../eclipse/core/filesystem/IFileStore.java | 503 -- .../eclipse/core/filesystem/IFileSystem.java | 132 - .../org/eclipse/core/filesystem/URIUtil.java | 103 - .../core/filesystem/provider/FileInfo.java | 267 - .../core/filesystem/provider/FileStore.java | 494 -- .../core/internal/filesystem/LocalFile.java | 435 -- .../core/internal/filesystem/Messages.java | 45 - .../core/internal/filesystem/Policy.java | 87 - .../internal/filesystem/messages.properties | 33 - .../org-eclipse-core-resources/pom.xml | 116 - .../internal/preferences/ChePreferences.java | 779 --- .../core/internal/resources/Container.java | 135 - .../che/core/internal/resources/File.java | 207 - .../che/core/internal/resources/FileUtil.java | 330 -- .../che/core/internal/resources/Folder.java | 48 - .../che/core/internal/resources/Project.java | 329 -- .../che/core/internal/resources/Resource.java | 926 ---- .../core/internal/resources/ResourceInfo.java | 27 - .../internal/resources/ResourceProxy.java | 93 - .../internal/resources/ResourceStatus.java | 81 - .../che/core/internal/resources/Rules.java | 179 - .../core/internal/resources/WorkManager.java | 293 - .../core/internal/resources/Workspace.java | 965 ---- .../internal/resources/WorkspaceRoot.java | 129 - .../mapping/ProposedResourceDelta.java | 214 - .../ResourceChangeDescriptionFactory.java | 280 - .../che/core/internal/utils/Policy.java | 223 - .../core/internal/dtree/IComparator.java | 26 - .../internal/events/ILifecycleListener.java | 17 - .../core/internal/events/LifecycleEvent.java | 82 - .../internal/resources/ICoreConstants.java | 135 - .../core/internal/resources/IManager.java | 19 - .../internal/resources/InternalTeamHook.java | 32 - .../core/internal/resources/ModelObject.java | 39 - .../eclipse/core/internal/resources/OS.java | 83 - .../resources/PreferenceInitializer.java | 80 - .../internal/resources/ResourceException.java | 99 - .../internal/resources/ResourceStatus.java | 81 - .../core/internal/resources/Rules.java | 180 - .../resources/WorkspaceDescription.java | 175 - .../mapping/ModelProviderManager.java | 73 - .../eclipse/core/internal/utils/Messages.java | 327 -- .../utils/WrappedRuntimeException.java | 32 - .../internal/watson/IElementComparator.java | 21 - .../core/internal/watson/IPathRequestor.java | 22 - .../resources/FileInfoMatcherDescription.java | 66 - .../core/resources/IBuildConfiguration.java | 69 - .../org/eclipse/core/resources/ICommand.java | 138 - .../eclipse/core/resources/IContainer.java | 511 -- .../core/resources/IEncodedStorage.java | 39 - .../org/eclipse/core/resources/IFile.java | 1025 ---- .../resources/IFileModificationValidator.java | 61 - .../eclipse/core/resources/IFileState.java | 98 - .../resources/IFilterMatcherDescriptor.java | 81 - .../org/eclipse/core/resources/IFolder.java | 404 -- .../org/eclipse/core/resources/IMarker.java | 537 -- .../eclipse/core/resources/IMarkerDelta.java | 160 - .../resources/IPathVariableChangeEvent.java | 67 - .../IPathVariableChangeListener.java | 35 - .../core/resources/IPathVariableManager.java | 333 -- .../org/eclipse/core/resources/IProject.java | 962 ---- .../core/resources/IProjectDescription.java | 345 -- .../core/resources/IProjectNature.java | 71 - .../resources/IProjectNatureDescriptor.java | 79 - .../org/eclipse/core/resources/IResource.java | 2481 --------- .../core/resources/IResourceChangeEvent.java | 217 - .../resources/IResourceChangeListener.java | 41 - .../core/resources/IResourceDelta.java | 558 -- .../core/resources/IResourceDeltaVisitor.java | 53 - .../resources/IResourceFilterDescription.java | 108 - .../core/resources/IResourceProxy.java | 150 - .../core/resources/IResourceProxyVisitor.java | 49 - .../core/resources/IResourceRuleFactory.java | 140 - .../core/resources/IResourceStatus.java | 332 -- .../core/resources/IResourceVisitor.java | 44 - .../eclipse/core/resources/ISaveContext.java | 173 - .../core/resources/ISaveParticipant.java | 149 - .../eclipse/core/resources/ISavedState.java | 80 - .../org/eclipse/core/resources/IStorage.java | 61 - .../eclipse/core/resources/ISynchronizer.java | 132 - .../eclipse/core/resources/IWorkspace.java | 1509 ----- .../core/resources/IWorkspaceDescription.java | 252 - .../core/resources/IWorkspaceRoot.java | 313 -- .../core/resources/IWorkspaceRunnable.java | 38 - .../eclipse/core/resources/ProjectScope.java | 118 - .../core/resources/ResourceAttributes.java | 225 - .../core/resources/ResourcesPlugin.java | 261 - .../resources/mapping/ChangeDescription.java | 139 - .../mapping/CompositeResourceMapping.java | 126 - .../mapping/IModelProviderDescriptor.java | 91 - .../IResourceChangeDescriptionFactory.java | 87 - .../core/resources/mapping/ModelProvider.java | 277 - .../core/resources/mapping/ModelStatus.java | 52 - .../mapping/RemoteResourceMappingContext.java | 282 - .../mapping/ResourceChangeValidator.java | 177 - .../resources/mapping/ResourceMapping.java | 186 - .../mapping/ResourceMappingContext.java | 40 - .../resources/mapping/ResourceTraversal.java | 166 - .../FileModificationValidationContext.java | 58 - .../team/FileModificationValidator.java | 92 - .../resources/team/ResourceRuleFactory.java | 249 - .../eclipse/core/resources/team/TeamHook.java | 220 - .../core/internal/utils/messages.properties | 322 -- .../org-eclipse-jdt-ui/pom.xml | 254 - .../org/eclipse/che/JavadocUrlProvider.java | 16 - .../org/eclipse/che/jdt/JavadocFinder.java | 547 -- .../eclipse/che/jdt/core/JavaConventions.java | 963 ---- .../org/eclipse/che/jdt/core/ToolFactory.java | 591 -- .../jdt/core/launching/IVMInstallType.java | 115 - .../che/jdt/core/launching/JREContainer.java | 479 -- .../launching/JREContainerInitializer.java | 33 - .../che/jdt/core/launching/JavaRuntime.java | 23 - .../che/jdt/core/launching/Launching.java | 648 --- .../che/jdt/core/launching/LibraryInfo.java | 62 - .../jdt/core/launching/LibraryLocation.java | 216 - .../jdt/core/launching/StandardVMType.java | 778 --- .../DefaultAccessRuleParticipant.java | 91 - .../environments/ExecutionEnvironment.java | 494 -- .../environments/IAccessRuleParticipant.java | 44 - .../environments/IExecutionEnvironment.java | 134 - .../jdt/core/resources/IResourceDelta.java | 54 - .../core/resources/ResourceChangedEvent.java | 62 - .../jdt/core/resources/ResourceDeltaImpl.java | 145 - .../org/eclipse/che/jdt/dom/ASTFlattener.java | 1796 ------ .../org/eclipse/che/jdt/dom/ASTNodes.java | 125 - .../eclipse/che/jdt/dom/GenericVisitor.java | 980 ---- .../eclipse/che/jdt/dom/JavaConventions.java | 221 - .../compiler/parser/SourceTypeConverter.java | 709 --- .../core/builder/ClasspathDirectory.java | 168 - .../internal/core/builder/ClasspathJar.java | 235 - .../builder/CodenvyClasspathLocation.java | 18 - .../jdt/internal/corext/CorextMessages.java | 43 - .../jdt/internal/ui/text/JavaWordFinder.java | 116 - .../eclipse/che/jdt/javadoc/ASTProvider.java | 119 - .../eclipse/che/jdt/javadoc/HTMLPrinter.java | 360 -- .../jdt/javadoc/JavaDoc2HTMLTextReader.java | 365 -- .../che/jdt/javadoc/JavaDocCommentReader.java | 90 - .../che/jdt/javadoc/JavaDocLocations.java | 732 --- .../che/jdt/javadoc/JavaDocMessages.java | 39 - .../jdt/javadoc/JavaElementLabelComposer.java | 1640 ------ .../che/jdt/javadoc/JavaElementLabels.java | 237 - .../che/jdt/javadoc/JavaElementLinks.java | 458 -- .../che/jdt/javadoc/JavadocContentAccess.java | 200 - .../jdt/javadoc/JavadocContentAccess2.java | 2052 ------- .../che/jdt/javadoc/SingleCharReader.java | 54 - .../jdt/javadoc/SubstitutionTextReader.java | 143 - .../che/jdt/javaeditor/HasLinkedModel.java | 18 - .../che/jdt/javaeditor/JavaReconciler.java | 420 -- .../jdt/javaeditor/SemanticHighlighting.java | 43 - .../SemanticHighlightingReconciler.java | 194 - .../jdt/javaeditor/SemanticHighlightings.java | 1963 ------- .../che/jdt/javaeditor/SemanticToken.java | 102 - .../che/jdt/javaeditor/TextViewer.java | 49 - .../che/jdt/rest/UrlContextProvider.java | 23 - .../eclipse/che/jdt/ui/CheActionAcces.java | 15 - .../eclipse/che/jdt/util/JavaModelUtil.java | 706 --- .../org/eclipse/che/jdt/util/JdtFlags.java | 388 -- .../participants/ResourceChangeChecker.java | 139 - .../org/eclipse/jdt/core/JavaConventions.java | 960 ---- .../java/org/eclipse/jdt/core/dom/CheAST.java | 73 - .../eclipse/jdt/core/dom/CheASTParser.java | 1472 ----- .../core/dom/CheCompilationUnitResolver.java | 315 -- .../dom/CodenvyCompilationUnitResolver.java | 375 -- .../refactoring/CompilationUnitChange.java | 132 - .../core/refactoring/IJavaElementMapper.java | 37 - .../core/refactoring/IJavaRefactorings.java | 434 -- .../core/refactoring/RenameTypeArguments.java | 83 - .../UndoCompilationUnitChange.java | 71 - .../ChangeMethodSignatureDescriptor.java | 55 - .../ConvertAnonymousDescriptor.java | 54 - .../ConvertLocalVariableDescriptor.java | 55 - .../ConvertMemberTypeDescriptor.java | 54 - .../descriptors/CopyDescriptor.java | 54 - .../descriptors/DeleteDescriptor.java | 54 - .../EncapsulateFieldDescriptor.java | 54 - .../descriptors/ExtractClassDescriptor.java | 411 -- .../ExtractConstantDescriptor.java | 54 - .../ExtractInterfaceDescriptor.java | 54 - .../descriptors/ExtractLocalDescriptor.java | 55 - .../descriptors/ExtractMethodDescriptor.java | 54 - .../ExtractSuperclassDescriptor.java | 54 - .../descriptors/GeneralizeTypeDescriptor.java | 54 - .../InferTypeArgumentsDescriptor.java | 54 - .../descriptors/InlineConstantDescriptor.java | 54 - .../InlineLocalVariableDescriptor.java | 54 - .../descriptors/InlineMethodDescriptor.java | 54 - .../IntroduceFactoryDescriptor.java | 54 - .../IntroduceIndirectionDescriptor.java | 54 - .../IntroduceParameterDescriptor.java | 54 - .../IntroduceParameterObjectDescriptor.java | 594 -- .../JavaRefactoringContribution.java | 49 - .../JavaRefactoringDescriptor.java | 384 -- .../descriptors/MoveDescriptor.java | 404 -- .../descriptors/MoveMethodDescriptor.java | 54 - .../MoveStaticMembersDescriptor.java | 160 - .../descriptors/PullUpDescriptor.java | 54 - .../descriptors/PushDownDescriptor.java | 54 - .../RenameJavaElementDescriptor.java | 629 --- .../descriptors/UseSupertypeDescriptor.java | 148 - .../ChangeMethodSignatureArguments.java | 278 - .../ChangeMethodSignatureParticipant.java | 41 - .../IRefactoringProcessorIds.java | 42 - .../participants/JavaParticipantManager.java | 80 - .../core/BecomeWorkingCopyOperation.java | 79 - .../core/ChangeClasspathOperation.java | 101 - .../jdt/internal/core/ClasspathEntry.java | 2519 --------- .../internal/core/DeltaProcessingState.java | 760 --- .../jdt/internal/core/DeltaProcessor.java | 3073 ----------- .../eclipse/jdt/internal/core/JavaModel.java | 460 -- .../jdt/internal/core/JavaModelManager.java | 3115 ----------- .../jdt/internal/core/JavaModelOperation.java | 919 ---- .../jdt/internal/core/JavaProject.java | 2334 -------- .../core/ReconcileWorkingCopyOperation.java | 301 - .../internal/core/SetContainerOperation.java | 238 - .../jdt/internal/core/SourceMapper.java | 1485 ----- .../eclipse/jdt/internal/core/XMLWriter.java | 23 - .../manipulation/JavaManipulationPlugin.java | 88 - .../descriptors/DescriptorMessages.java | 81 - .../JavaRefactoringDescriptorUtil.java | 723 --- ...RefactoringSignatureDescriptorFactory.java | 312 -- .../internal/core/search/IndexSelector.java | 365 -- .../core/search/JavaSearchDocument.java | 96 - .../internal/core/search/JavaSearchScope.java | 750 --- .../core/search/indexing/IndexAllProject.java | 278 - .../core/search/indexing/IndexManager.java | 1366 ----- .../jdt/internal/core/util/HandleFactory.java | 415 -- .../eclipse/jdt/internal/core/util/Util.java | 3079 ----------- .../eclipse/jdt/internal/corext/Corext.java | 20 - .../jdt/internal/corext/CorextMessages.java | 47 - .../internal/corext/SourceRangeFactory.java | 27 - .../corext/ValidateEditException.java | 23 - .../codemanipulation/AddImportsOperation.java | 584 -- .../CodeGenerationMessages.java | 64 - .../CodeGenerationSettings.java | 31 - .../ContextSensitiveImportRewriteContext.java | 224 - .../codemanipulation/GetterSetterUtil.java | 441 -- .../ImportReferencesCollector.java | 534 -- .../OrganizeImportsOperation.java | 609 -- .../corext/codemanipulation/StubUtility.java | 1784 ------ .../corext/codemanipulation/StubUtility2.java | 1079 ---- .../internal/corext/dom/ASTBatchParser.java | 161 - .../jdt/internal/corext/dom/ASTFlattener.java | 1795 ------ .../internal/corext/dom/ASTNodeFactory.java | 416 -- .../jdt/internal/corext/dom/ASTNodes.java | 1483 ----- .../jdt/internal/corext/dom/Bindings.java | 1454 ----- .../corext/dom/BodyDeclarationRewrite.java | 45 - .../internal/corext/dom/CodeScopeBuilder.java | 220 - .../internal/corext/dom/DimensionRewrite.java | 100 - .../internal/corext/dom/GenericVisitor.java | 980 ---- .../corext/dom/HierarchicalASTVisitor.java | 1122 ---- .../internal/corext/dom/JdtASTMatcher.java | 46 - .../internal/corext/dom/LinkedNodeFinder.java | 261 - .../corext/dom/LocalVariableIndex.java | 85 - .../internal/corext/dom/ModifierRewrite.java | 237 - .../dom/NecessaryParenthesesChecker.java | 432 -- .../internal/corext/dom/ReplaceRewrite.java | 88 - .../internal/corext/dom/ScopeAnalyzer.java | 851 --- .../jdt/internal/corext/dom/Selection.java | 155 - .../corext/dom/SelectionAnalyzer.java | 132 - .../internal/corext/dom/StatementRewrite.java | 53 - .../jdt/internal/corext/dom/TokenScanner.java | 469 -- .../corext/dom/TypeBindingVisitor.java | 28 - .../jdt/internal/corext/dom/TypeRules.java | 143 - .../dom/VariableDeclarationRewrite.java | 278 - .../corext/dom/fragments/ASTFragment.java | 25 - .../dom/fragments/ASTFragmentFactory.java | 209 - .../fragments/ASTMatchingFragmentFinder.java | 55 - .../AssociativeInfixExpressionFragment.java | 433 -- .../corext/dom/fragments/IASTFragment.java | 82 - .../dom/fragments/IExpressionFragment.java | 43 - .../fragments/SimpleExpressionFragment.java | 32 - .../corext/dom/fragments/SimpleFragment.java | 81 - .../internal/corext/dom/fragments/Util.java | 81 - .../jdt/internal/corext/fix/AbstractFix.java | 43 - .../fix/AbstractSerialVersionOperation.java | 152 - .../fix/AddUnimplementedMethodsOperation.java | 195 - .../internal/corext/fix/CleanUpConstants.java | 1394 ----- .../corext/fix/CleanUpPreferenceUtil.java | 6 - .../jdt/internal/corext/fix/CodeStyleFix.java | 876 --- .../CompilationUnitRewriteOperationsFix.java | 135 - .../corext/fix/ControlStatementsFix.java | 505 -- .../corext/fix/ConvertForLoopOperation.java | 693 --- .../fix/ConvertIterableLoopOperation.java | 614 --- .../internal/corext/fix/ConvertLoopFix.java | 175 - .../corext/fix/ConvertLoopOperation.java | 104 - .../internal/corext/fix/ExpressionsFix.java | 242 - .../jdt/internal/corext/fix/FixMessages.java | 147 - .../internal/corext/fix/IProposableFix.java | 46 - .../jdt/internal/corext/fix/Java50Fix.java | 538 -- .../corext/fix/LambdaExpressionsFix.java | 598 -- .../corext/fix/LinkedProposalModel.java | 88 - .../fix/LinkedProposalPositionGroup.java | 279 - .../corext/fix/NullAnnotationsFix.java | 329 -- .../fix/NullAnnotationsRewriteOperations.java | 707 --- .../fix/PotentialProgrammingProblemsFix.java | 487 -- .../fix/SerialVersionDefaultOperation.java | 67 - .../jdt/internal/corext/fix/StringFix.java | 248 - .../jdt/internal/corext/fix/TextEditFix.java | 44 - .../corext/fix/TypeParametersFix.java | 245 - .../corext/fix/UnimplementedCodeFix.java | 235 - .../internal/corext/fix/UnusedCodeFix.java | 970 ---- .../corext/fix/VariableDeclarationFix.java | 596 -- .../format/CheCodeFormatterInitializer.java | 27 - .../format/CheCodeFormatterOptions.java | 71 - .../corext/format/DocumentChangeListener.java | 45 - .../jdt/internal/corext/format/Formatter.java | 52 - .../jdt/internal/corext/format/XMLParser.java | 41 - .../AbstractJavaElementRenameChange.java | 96 - .../internal/corext/refactoring/Checks.java | 941 ---- .../CollectingSearchRequestor.java | 106 - .../CuCollectingSearchRequestor.java | 88 - .../corext/refactoring/ExceptionInfo.java | 103 - .../IRefactoringSearchRequestor.java | 29 - .../JDTRefactoringDescriptorComment.java | 326 -- .../refactoring/JavaRefactoringArguments.java | 62 - .../JavaRefactoringDescriptorUtil.java | 255 - .../corext/refactoring/ParameterInfo.java | 236 - .../RefactoringAvailabilityTester.java | 1226 ----- .../refactoring/RefactoringCoreMessages.java | 2415 -------- .../refactoring/RefactoringScopeFactory.java | 300 - .../refactoring/RefactoringSearchEngine.java | 300 - .../refactoring/RefactoringSearchEngine2.java | 800 --- .../corext/refactoring/ReturnTypeInfo.java | 55 - .../corext/refactoring/SearchResultGroup.java | 83 - .../corext/refactoring/StubTypeContext.java | 36 - .../refactoring/TypeContextChecker.java | 900 --- .../refactoring/base/JavaStatusContext.java | 295 - .../base/JavaStringStatusContext.java | 54 - .../base/RefactoringStatusCodes.java | 40 - .../base/ReferencesInBinaryContext.java | 59 - .../refactoring/binary/StubCreator.java | 472 -- .../changes/AbstractDeleteChange.java | 54 - .../refactoring/changes/ClasspathChange.java | 115 - .../changes/CompilationUnitChange.java | 54 - .../changes/CompilationUnitReorgChange.java | 116 - .../changes/CopyCompilationUnitChange.java | 48 - .../changes/CopyPackageChange.java | 47 - .../CopyPackageFragmentRootChange.java | 50 - .../changes/CopyResourceChange.java | 151 - .../changes/CreateCompilationUnitChange.java | 35 - .../changes/CreatePackageChange.java | 76 - .../DeletePackageFragmentRootChange.java | 190 - .../DeleteSourceManipulationChange.java | 135 - .../DynamicValidationRefactoringChange.java | 65 - .../changes/DynamicValidationStateChange.java | 153 - .../changes/MoveCompilationUnitChange.java | 139 - .../changes/MovePackageChange.java | 45 - .../MovePackageFragmentRootChange.java | 48 - .../MultiStateCompilationUnitChange.java | 73 - .../PackageFragmentRootReorgChange.java | 156 - .../changes/PackageReorgChange.java | 101 - .../changes/RenameCompilationUnitChange.java | 68 - .../changes/RenameJavaProjectChange.java | 145 - .../changes/RenamePackageChange.java | 260 - .../changes/RenameSourceFolderChange.java | 152 - .../changes/TextChangeCompatibility.java | 100 - .../changes/UndoDeleteResourceChange.java | 79 - .../changes/UndoablePackageDeleteChange.java | 52 - .../refactoring/changes/WorkspaceTracker.java | 61 - .../code/AstMatchingNodeFinder.java | 546 -- .../corext/refactoring/code/CallContext.java | 50 - .../corext/refactoring/code/CallInliner.java | 967 ---- .../refactoring/code/CodeRefactoringUtil.java | 84 - .../refactoring/code/ConstantChecks.java | 211 - .../ConvertAnonymousToNestedRefactoring.java | 1340 ----- .../refactoring/code/ExceptionAnalyzer.java | 63 - .../code/ExtractConstantRefactoring.java | 1025 ---- .../code/ExtractMethodAnalyzer.java | 1089 ---- .../code/ExtractMethodRefactoring.java | 1416 ----- .../code/ExtractTempRefactoring.java | 1153 ---- .../code/InlineConstantRefactoring.java | 1209 ---- .../code/InlineMethodRefactoring.java | 609 -- .../code/InlineTempRefactoring.java | 569 -- .../code/IntroduceFactoryRefactoring.java | 1583 ------ .../code/IntroduceIndirectionRefactoring.java | 1629 ------ .../corext/refactoring/code/Invocations.java | 195 - .../refactoring/code/LocalTypeAnalyzer.java | 120 - .../refactoring/code/NameCollector.java | 72 - .../refactoring/code/OperatorPrecedence.java | 143 - .../refactoring/code/ParameterData.java | 103 - .../code/PromoteTempToFieldRefactoring.java | 1095 ---- .../code/ReplaceInvocationsRefactoring.java | 646 --- .../refactoring/code/SnippetFinder.java | 277 - .../refactoring/code/SourceAnalyzer.java | 578 -- .../refactoring/code/SourceProvider.java | 763 --- .../refactoring/code/TargetProvider.java | 575 -- .../code/TempAssignmentFinder.java | 84 - .../refactoring/code/flow/BlockFlowInfo.java | 15 - .../refactoring/code/flow/BranchFlowInfo.java | 22 - .../code/flow/ConditionalFlowInfo.java | 35 - .../code/flow/DoWhileFlowInfo.java | 35 - .../code/flow/EnhancedForFlowInfo.java | 31 - .../refactoring/code/flow/FlowAnalyzer.java | 917 ---- .../refactoring/code/flow/FlowContext.java | 138 - .../refactoring/code/flow/FlowInfo.java | 508 -- .../refactoring/code/flow/ForFlowInfo.java | 38 - .../code/flow/GenericConditionalFlowInfo.java | 29 - .../code/flow/GenericSequentialFlowInfo.java | 27 - .../refactoring/code/flow/IfFlowInfo.java | 31 - .../code/flow/InOutFlowAnalyzer.java | 117 - .../code/flow/InputFlowAnalyzer.java | 287 - .../refactoring/code/flow/LocalFlowInfo.java | 42 - .../code/flow/MessageSendFlowInfo.java | 27 - .../refactoring/code/flow/ReturnFlowInfo.java | 35 - .../refactoring/code/flow/SwitchFlowInfo.java | 37 - .../refactoring/code/flow/ThrowFlowInfo.java | 23 - .../refactoring/code/flow/TryFlowInfo.java | 35 - .../code/flow/TypeVariableFlowInfo.java | 20 - .../refactoring/code/flow/WhileFlowInfo.java | 27 - .../delegates/DelegateCreator.java | 458 -- .../delegates/DelegateFieldCreator.java | 111 - .../delegates/DelegateMethodCreator.java | 223 - .../generics/ElementStructureEnvironment.java | 31 - .../InferTypeArgumentsConstraintCreator.java | 1008 ---- .../InferTypeArgumentsConstraintsSolver.java | 423 -- .../InferTypeArgumentsRefactoring.java | 754 --- .../generics/InferTypeArgumentsTCModel.java | 905 --- .../generics/InferTypeArgumentsUpdate.java | 66 - .../generics/ParametricStructureComputer.java | 619 --- .../corext/refactoring/nls/NLSUtil.java | 45 - .../nls/changes/CreateFileChange.java | 219 - .../nls/changes/CreateTextFileChange.java | 57 - .../nls/changes/NLSChangesMessages.java | 32 - .../participants/JavaProcessors.java | 44 - .../participants/RefactoringProcessors.java | 29 - .../participants/ResourceModifications.java | 385 -- .../participants/ResourceProcessors.java | 50 - .../GenericRefactoringHandleTransplanter.java | 182 - .../rename/JavaRenameProcessor.java | 82 - .../refactoring/rename/MethodChecks.java | 192 - .../rename/MethodOccurenceCollector.java | 95 - .../rename/RefactoringAnalyzeUtil.java | 137 - .../rename/RefactoringHandleTransplanter.java | 235 - .../rename/RefactoringScanner.java | 210 - .../refactoring/rename/RenameAnalyzeUtil.java | 505 -- .../RenameCompilationUnitProcessor.java | 509 -- .../rename/RenameEnumConstProcessor.java | 198 - .../rename/RenameFieldProcessor.java | 1081 ---- .../rename/RenameLocalVariableProcessor.java | 513 -- .../rename/RenameMethodProcessor.java | 1040 ---- .../rename/RenameModifications.java | 311 -- .../RenameNonVirtualMethodProcessor.java | 208 - .../rename/RenamePackageProcessor.java | 1280 ----- .../rename/RenameTypeParameterProcessor.java | 464 -- .../rename/RenameTypeProcessor.java | 1985 ------- .../rename/RenameVirtualMethodProcessor.java | 322 -- .../rename/RenamingNameSuggestor.java | 590 -- .../rename/RippleMethodFinder2.java | 430 -- .../rename/TempDeclarationFinder.java | 111 - .../rename/TempOccurrenceAnalyzer.java | 118 - .../refactoring/rename/TextMatchUpdater.java | 223 - .../rename/TypeOccurrenceCollector.java | 85 - .../refactoring/reorg/ASTNodeDeleteUtil.java | 141 - .../refactoring/reorg/ArrayTypeConverter.java | 48 - .../refactoring/reorg/CopyModifications.java | 173 - .../CreateCopyOfCompilationUnitChange.java | 215 - .../reorg/CreateTargetExecutionLog.java | 62 - .../reorg/DeleteChangeCreator.java | 238 - .../refactoring/reorg/IConfirmQuery.java | 18 - .../reorg/ICreateTargetQueries.java | 15 - .../refactoring/reorg/ICreateTargetQuery.java | 23 - .../refactoring/reorg/INewNameQueries.java | 34 - .../refactoring/reorg/INewNameQuery.java | 16 - ...IPackageFragmentRootManipulationQuery.java | 23 - .../refactoring/reorg/IReorgDestination.java | 44 - .../reorg/IReorgDestinationValidator.java | 29 - .../refactoring/reorg/IReorgPolicy.java | 126 - .../refactoring/reorg/IReorgQueries.java | 36 - .../refactoring/reorg/JavaMoveProcessor.java | 330 -- .../reorg/LoggedCreateTargetChange.java | 89 - .../reorg/LoggedCreateTargetQueries.java | 122 - .../reorg/MonitoringCreateTargetQueries.java | 68 - .../reorg/MoveCuUpdateCreator.java | 506 -- .../refactoring/reorg/MoveModifications.java | 204 - .../refactoring/reorg/NullReorgQueries.java | 53 - .../refactoring/reorg/OverwriteHelper.java | 256 - .../refactoring/reorg/ParentChecker.java | 229 - .../reorg/ReadOnlyResourceFinder.java | 142 - .../reorg/RefactoringModifications.java | 97 - .../reorg/ReorgDestinationFactory.java | 85 - .../refactoring/reorg/ReorgPolicyFactory.java | 4882 ----------------- .../corext/refactoring/reorg/ReorgUtils.java | 582 -- .../JavaUIRefactoringContribution.java | 20 - ...ompilationUnitRefactoringContribution.java | 55 - ...enameEnumConstRefactoringContribution.java | 52 - .../RenameFieldRefactoringContribution.java | 52 - ...eLocalVariableRefactoringContribution.java | 53 - .../RenameMethodRefactoringContribution.java | 79 - .../RenamePackageRefactoringContribution.java | 52 - ...eTypeParameterRefactoringContribution.java | 53 - .../RenameTypeRefactoringContribution.java | 52 - .../refactoring/sef/AccessAnalyzer.java | 339 -- .../sef/SelfEncapsulateFieldRefactoring.java | 1002 ---- .../structure/ASTNodeSearchUtil.java | 287 - .../refactoring/structure/BodyUpdater.java | 43 - .../structure/ChangeSignatureProcessor.java | 3232 ----------- .../structure/CompilationUnitRewrite.java | 369 -- .../structure/IDefaultValueAdvisor.java | 49 - .../refactoring/structure/ImportRemover.java | 329 -- .../structure/ImportRewriteUtil.java | 191 - .../structure/MemberVisibilityAdjustor.java | 1569 ------ .../structure/ReferenceFinderUtil.java | 197 - .../surround/ExceptionAnalyzer.java | 153 - .../surround/LocalDeclarationAnalyzer.java | 62 - .../surround/SurroundWithAnalyzer.java | 140 - .../SurroundWithTryCatchAnalyzer.java | 50 - .../SurroundWithTryCatchRefactoring.java | 450 -- .../tagging/IDelegateUpdating.java | 62 - .../refactoring/tagging/INameUpdating.java | 64 - .../tagging/IQualifiedNameUpdating.java | 39 - .../tagging/IReferenceUpdating.java | 27 - .../tagging/IRenameSubpackages.java | 21 - .../tagging/ISimilarDeclarationUpdating.java | 60 - .../refactoring/tagging/ITextUpdating.java | 56 - .../typeconstraints/ASTCreator.java | 48 - .../typeconstraints/CompilationUnitRange.java | 78 - .../CompositeOrTypeConstraint.java | 80 - .../typeconstraints/ConstraintCollector.java | 627 --- .../typeconstraints/ConstraintCreator.java | 589 -- .../typeconstraints/ConstraintOperator.java | 117 - .../typeconstraints/ConstraintVariable.java | 62 - .../ConstraintVariableFactory.java | 261 - .../DeclaringTypeVariable.java | 51 - .../typeconstraints/ExpressionVariable.java | 80 - .../FullConstraintCreator.java | 883 --- .../IConstraintVariableFactory.java | 39 - .../refactoring/typeconstraints/IContext.java | 13 - .../typeconstraints/ITypeConstraint.java | 27 - .../ITypeConstraintFactory.java | 36 - .../typeconstraints/NullContext.java | 12 - .../ParameterTypeVariable.java | 49 - .../typeconstraints/RawBindingVariable.java | 19 - .../typeconstraints/ReturnTypeVariable.java | 48 - .../typeconstraints/SimpleTypeConstraint.java | 87 - .../TypeConstraintFactory.java | 166 - .../typeconstraints/TypeVariable.java | 48 - .../types/AbstractTypeVariable.java | 74 - .../typeconstraints/types/ArrayType.java | 175 - .../typeconstraints/types/CaptureType.java | 108 - .../types/ExtendsWildcardType.java | 105 - .../typeconstraints/types/GenericType.java | 85 - .../typeconstraints/types/HierarchyType.java | 84 - .../typeconstraints/types/NullType.java | 53 - .../types/ParameterizedType.java | 175 - .../typeconstraints/types/PrimitiveType.java | 142 - .../typeconstraints/types/RawType.java | 114 - .../typeconstraints/types/StandardType.java | 107 - .../types/SuperWildcardType.java | 93 - .../typeconstraints/types/TType.java | 592 -- .../types/TypeEnvironment.java | 484 -- .../typeconstraints/types/TypeTuple.java | 34 - .../typeconstraints/types/TypeVariable.java | 114 - .../types/UnboundWildcardType.java | 78 - .../typeconstraints/types/VoidType.java | 54 - .../typeconstraints/types/WildcardType.java | 81 - .../typesets/ArraySuperTypeSet.java | 211 - .../typesets/ArrayTypeSet.java | 227 - .../typesets/EmptyTypeSet.java | 175 - .../typesets/EnumeratedTypeSet.java | 475 -- .../typesets/SingletonTypeSet.java | 201 - .../typesets/SubTypesOfSingleton.java | 290 - .../typeconstraints/typesets/SubTypesSet.java | 318 -- .../typesets/SuperTypesOfSingleton.java | 276 - .../typesets/SuperTypesSet.java | 314 -- .../typeconstraints/typesets/TypeSet.java | 209 - .../typesets/TypeSetEnvironment.java | 120 - .../typesets/TypeSetIntersection.java | 333 -- .../typesets/TypeSetUnion.java | 175 - .../typesets/TypeUniverseSet.java | 56 - .../ArrayElementVariable2.java | 42 - .../typeconstraints2/ArrayTypeVariable2.java | 23 - .../typeconstraints2/CastVariable2.java | 48 - .../CollectionElementVariable2.java | 92 - .../typeconstraints2/ConstraintVariable2.java | 111 - .../ISourceConstraintVariable.java | 25 - .../typeconstraints2/ITypeConstraint2.java | 17 - .../ITypeConstraintVariable.java | 17 - .../typeconstraints2/ITypeSet.java | 23 - .../ImmutableTypeVariable2.java | 47 - .../IndependentTypeVariable2.java | 21 - .../ParameterTypeVariable2.java | 78 - .../ParameterizedTypeVariable2.java | 33 - .../typeconstraints2/ReturnTypeVariable2.java | 59 - .../typeconstraints2/SubTypeConstraint2.java | 64 - .../refactoring/typeconstraints2/TTypes.java | 133 - .../typeconstraints2/TypeEquivalenceSet.java | 83 - .../typeconstraints2/TypeVariable2.java | 71 - .../typeconstraints2/VariableVariable2.java | 61 - .../util/AbstractExceptionAnalyzer.java | 185 - .../corext/refactoring/util/Changes.java | 40 - .../corext/refactoring/util/CodeAnalyzer.java | 40 - .../refactoring/util/CommentAnalyzer.java | 106 - .../refactoring/util/JavaElementUtil.java | 242 - .../corext/refactoring/util/JavadocUtil.java | 98 - .../util/NoCommentSourceRangeComputer.java | 20 - .../refactoring/util/QualifiedNameFinder.java | 165 - .../util/QualifiedNameSearchResult.java | 69 - .../util/RefactoringASTParser.java | 179 - .../util/RefactoringFileBuffers.java | 80 - .../corext/refactoring/util/ResourceUtil.java | 53 - .../SelectionAwareSourceRangeComputer.java | 104 - .../refactoring/util/StatementAnalyzer.java | 281 - .../refactoring/util/TextChangeManager.java | 127 - .../corext/refactoring/util/TextEditUtil.java | 328 -- .../util/TightSourceRangeComputer.java | 88 - .../java/AbstractJavaContextType.java | 388 -- .../java/AbstractVariableResolver.java | 107 - .../template/java/CodeTemplateContext.java | 107 - .../java/CodeTemplateContextType.java | 540 -- .../java/CompilationUnitCompletion.java | 914 --- .../template/java/CompilationUnitContext.java | 137 - .../java/CompilationUnitContextType.java | 281 - .../template/java/ElementTypeResolver.java | 66 - .../java/ExceptionVariableNameResolver.java | 36 - .../java/ExclusivePositionUpdater.java | 99 - .../corext/template/java/FieldResolver.java | 38 - .../corext/template/java/ImportsResolver.java | 61 - .../corext/template/java/JavaContext.java | 807 --- .../corext/template/java/JavaContextType.java | 46 - .../corext/template/java/JavaDocContext.java | 216 - .../template/java/JavaDocContextType.java | 93 - .../corext/template/java/JavaFormatter.java | 369 -- .../template/java/JavaTemplateMessages.java | 82 - .../corext/template/java/JavaVariable.java | 49 - .../corext/template/java/LinkResolver.java | 75 - .../template/java/LocalVarResolver.java | 38 - .../corext/template/java/NameResolver.java | 82 - .../corext/template/java/SignatureUtil.java | 294 - .../template/java/StaticImportResolver.java | 61 - .../corext/template/java/TypeResolver.java | 54 - .../template/java/TypeVariableResolver.java | 85 - .../corext/template/java/VarResolver.java | 41 - .../corext/util/CodeFormatterUtil.java | 492 -- .../internal/corext/util/CollectionsUtil.java | 33 - .../jdt/internal/corext/util/History.java | 326 -- .../corext/util/JavaConventionsUtil.java | 156 - .../util/JavaElementResourceMapping.java | 450 -- .../jdt/internal/corext/util/JdtFlags.java | 389 -- .../jdt/internal/corext/util/LRUMap.java | 47 - .../jdt/internal/corext/util/Messages.java | 32 - .../corext/util/MethodOverrideTester.java | 585 -- .../util/MethodsSourcePositionComparator.java | 130 - .../corext/util/QualifiedTypeNameHistory.java | 61 - .../jdt/internal/corext/util/Resources.java | 235 - .../jdt/internal/corext/util/SearchUtils.java | 75 - .../jdt/internal/corext/util/Strings.java | 622 --- .../corext/util/SuperTypeHierarchyCache.java | 236 - .../jdt/internal/corext/util/TypeFilter.java | 125 - .../corext/util/TypeNameMatchCollector.java | 39 - .../jdt/internal/ui/IJavaStatusConstants.java | 62 - .../eclipse/jdt/internal/ui/JavaPlugin.java | 477 -- .../jdt/internal/ui/JavaPluginImages.java | 126 - .../internal/ui/JavaPreferencesSettings.java | 32 - .../jdt/internal/ui/JavaUIException.java | 25 - .../jdt/internal/ui/JavaUIMessages.java | 255 - .../eclipse/jdt/internal/ui/JavaUIStatus.java | 41 - .../ui/actions/SelectionConverter.java | 350 -- .../internal/ui/browsing/LogicalPackage.java | 134 - .../jdt/internal/ui/dialogs/StatusInfo.java | 185 - .../jdt/internal/ui/fix/AbstractCleanUp.java | 100 - .../jdt/internal/ui/fix/AbstractMultiFix.java | 124 - .../jdt/internal/ui/fix/CodeStyleCleanUp.java | 301 - .../ui/fix/ControlStatementsCleanUp.java | 138 - .../internal/ui/fix/ConvertLoopCleanUp.java | 90 - .../internal/ui/fix/ExpressionsCleanUp.java | 94 - .../jdt/internal/ui/fix/IMultiFix.java | 55 - .../jdt/internal/ui/fix/Java50CleanUp.java | 230 - .../ui/fix/LambdaExpressionsCleanUp.java | 119 - .../internal/ui/fix/MapCleanUpOptions.java | 56 - .../jdt/internal/ui/fix/MultiFixMessages.java | 111 - .../ui/fix/NullAnnotationsCleanUp.java | 147 - .../PotentialProgrammingProblemsCleanUp.java | 175 - .../jdt/internal/ui/fix/StringCleanUp.java | 148 - .../ui/fix/TypeParametersCleanUp.java | 133 - .../ui/fix/UnimplementedCodeCleanUp.java | 236 - .../ui/fix/UnnecessaryCodeCleanUp.java | 124 - .../internal/ui/fix/UnusedCodeCleanUp.java | 235 - .../ui/fix/VariableDeclarationCleanUp.java | 111 - .../internal/ui/javaeditor/ASTProvider.java | 310 -- .../ui/javaeditor/DocumentAdapter.java | 628 --- .../ui/javaeditor/IJavaAnnotation.java | 130 - .../internal/ui/javaeditor/IndentUtil.java | 484 -- .../ui/javaeditor/JavaTextSelection.java | 241 - .../internal/ui/model/JavaModelProvider.java | 21 - .../preferences/JavaPreferencesSettings.java | 34 - .../MembersOrderPreferenceCache.java | 177 - .../ui/refactoring/IScheduledRefactoring.java | 22 - .../RefactoringExecutionHelper.java | 228 - .../actions/RefactoringActions.java | 74 - .../JavaTypeCompletionProcessor.java | 213 - .../ui/search/AbstractJavaSearchResult.java | 139 - .../internal/ui/search/JavaElementMatch.java | 65 - .../internal/ui/search/JavaMatchFilter.java | 651 --- .../internal/ui/search/JavaSearchQuery.java | 332 -- .../internal/ui/search/JavaSearchResult.java | 117 - .../ui/search/JavaSearchScopeFactory.java | 483 -- .../internal/ui/search/MatchLocations.java | 437 -- .../ui/search/NewSearchResultCollector.java | 84 - .../internal/ui/search/SearchMessages.java | 334 -- .../search/SearchParticipantDescriptor.java | 93 - .../ui/search/SearchParticipantRecord.java | 35 - .../SearchParticipantsExtensionPoint.java | 90 - .../ui/search/SearchResultUpdater.java | 152 - .../ui/text/BufferedDocumentScanner.java | 167 - .../ui/text/DocumentCharacterIterator.java | 215 - .../ui/text/FastJavaPartitionScanner.java | 518 -- .../internal/ui/text/JavaBreakIterator.java | 417 -- .../ui/text/JavaHeuristicScanner.java | 987 ---- .../jdt/internal/ui/text/JavaIndenter.java | 1991 ------- .../internal/ui/text/JavaWordIterator.java | 215 - .../ui/text/SequenceCharacterIterator.java | 157 - .../eclipse/jdt/internal/ui/text/Symbols.java | 57 - .../ui/text/correction/ASTResolving.java | 1202 ---- .../AdvancedQuickAssistProcessor.java | 3356 ----------- .../ui/text/correction/AssistContext.java | 158 - .../ContributedProcessorDescriptor.java | 144 - .../text/correction/CorrectionMessages.java | 403 -- .../GetterSetterCorrectionSubProcessor.java | 446 -- .../text/correction/IProposalRelevance.java | 295 - .../text/correction/IStatusLineProposal.java | 26 - .../correction/JavaCorrectionProcessor.java | 580 -- .../correction/JavadocTagsSubProcessor.java | 780 --- .../LocalCorrectionsSubProcessor.java | 2308 -------- .../ModifierCorrectionSubProcessor.java | 1347 ----- .../ui/text/correction/NameMatcher.java | 73 - .../NullAnnotationsCorrectionProcessor.java | 178 - .../ui/text/correction/ProblemLocation.java | 184 - .../text/correction/QuickAssistProcessor.java | 3349 ----------- .../ui/text/correction/QuickFixProcessor.java | 840 --- .../ReorgCorrectionsSubProcessor.java | 766 --- .../correction/ReturnTypeSubProcessor.java | 398 -- .../correction/SerialVersionSubProcessor.java | 104 - .../ui/text/correction/SimilarElement.java | 89 - .../correction/SimilarElementsRequestor.java | 284 - .../SuppressWarningsSubProcessor.java | 439 -- .../TypeArgumentMismatchSubProcessor.java | 76 - .../correction/TypeMismatchSubProcessor.java | 623 --- .../UnresolvedElementsSubProcessor.java | 2474 --------- .../VarargsWarningsSubProcessor.java | 195 - .../AbstractMethodCorrectionProposal.java | 241 - .../AddArgumentCorrectionProposal.java | 130 - .../AddImportCorrectionProposal.java | 56 - .../proposals/AddTypeParameterProposal.java | 146 - .../AssignToVariableAssistProposal.java | 462 -- .../proposals/CastCorrectionProposal.java | 196 - .../ChangeMethodSignatureProposal.java | 508 -- .../ConstructorFromSuperclassProposal.java | 288 - .../CorrectMainTypeNameProposal.java | 97 - .../CorrectPackageDeclarationProposal.java | 105 - .../correction/proposals/EditAnnotator.java | 155 - .../ExtractToNullCheckedLocalProposal.java | 399 -- .../proposals/FixCorrectionProposal.java | 256 - .../GenerateForLoopAssistProposal.java | 653 --- .../proposals/ImplementInterfaceProposal.java | 97 - .../proposals/LinkedCorrectionProposal.java | 246 - .../proposals/LinkedNamesAssistProposal.java | 302 - .../MissingAnnotationAttributesProposal.java | 141 - .../MissingReturnTypeCorrectionProposal.java | 217 - ...gReturnTypeInLambdaCorrectionProposal.java | 111 - .../ModifierChangeCorrectionProposal.java | 175 - .../NewAnnotationMemberProposal.java | 157 - .../proposals/NewCUUsingWizardProposal.java | 524 -- .../proposals/NewDefiningMethodProposal.java | 163 - .../NewMethodCorrectionProposal.java | 313 -- .../NewVariableCorrectionProposal.java | 626 --- .../RefactoringCorrectionProposal.java | 69 - .../RemoveDeclarationCorrectionProposal.java | 269 - .../RenameNodeCorrectionProposal.java | 65 - .../proposals/ReplaceCorrectionProposal.java | 49 - .../proposals/TaskMarkerProposal.java | 154 - .../TypeChangeCorrectionProposal.java | 262 - .../java/AbstractJavaCompletionProposal.java | 1205 ---- ...actTemplateCompletionProposalComputer.java | 124 - .../ui/text/java/AlphabeticSorter.java | 36 - .../AnnotationAtttributeProposalInfo.java | 60 - .../java/AnonymousTypeCompletionProposal.java | 536 -- .../text/java/AnonymousTypeProposalInfo.java | 48 - .../ui/text/java/ContentAssistHistory.java | 488 -- .../ui/text/java/FieldProposalInfo.java | 60 - ...umentNamesCompletionProposalCollector.java | 120 - .../FilledArgumentNamesMethodProposal.java | 169 - .../java/GetterSetterCompletionProposal.java | 199 - .../text/java/IJavaReconcilingListener.java | 34 - .../text/java/ImportCompletionProposal.java | 224 - .../JavaAllCompletionProposalComputer.java | 53 - .../ui/text/java/JavaCompletionProposal.java | 186 - .../java/JavaCompletionProposalComputer.java | 366 -- ...dWithCastedReceiverCompletionProposal.java | 52 - .../java/JavaMethodCompletionProposal.java | 356 -- .../JavaNoTypeCompletionProposalComputer.java | 49 - .../ui/text/java/JavaTextMessages.java | 67 - .../text/java/JavaTypeCompletionProposal.java | 195 - .../JavaTypeCompletionProposalComputer.java | 175 - .../ui/text/java/LazyGenericTypeProposal.java | 916 ---- .../text/java/LazyJavaCompletionProposal.java | 547 -- .../java/LazyJavaTypeCompletionProposal.java | 396 -- .../java/LazyPackageCompletionProposal.java | 39 - .../ui/text/java/MemberProposalInfo.java | 68 - .../MethodDeclarationCompletionProposal.java | 249 - .../ui/text/java/MethodProposalInfo.java | 238 - .../text/java/OverrideCompletionProposal.java | 237 - .../ui/text/java/PackageProposalInfo.java | 61 - .../ui/text/java/ParameterGuesser.java | 529 -- .../text/java/ParameterGuessingProposal.java | 439 -- .../text/java/ProposalContextInformation.java | 114 - .../internal/ui/text/java/ProposalInfo.java | 105 - .../ui/text/java/ProposalSorterHandle.java | 292 - .../ui/text/java/RelevanceSorter.java | 35 - .../java/SmartSemicolonAutoEditStrategy.java | 1032 ---- .../TemplateCompletionProposalComputer.java | 86 - .../ui/text/java/TypeProposalInfo.java | 48 - ...JavadocBrowserInformationControlInput.java | 28 - .../ui/text/javadoc/IHtmlTagConstants.java | 91 - .../ui/text/javadoc/JavaDocMessages.java | 40 - .../JavadocCompletionProposalComputer.java | 38 - .../JavadocInlineTagCompletionProposal.java | 64 - .../JavadocLinkTypeCompletionProposal.java | 65 - .../InclusivePositionUpdater.java | 100 - .../template/contentassist/MultiVariable.java | 130 - .../contentassist/MultiVariableGuess.java | 294 - .../PositionBasedCompletionProposal.java | 207 - .../TemplateContentAssistMessages.java | 29 - .../contentassist/TemplateEngine.java | 181 - .../contentassist/TemplateProposal.java | 608 -- .../contentassist/VariablePosition.java | 82 - .../jdt/internal/ui/util/CoreUtility.java | 32 - .../internal/ui/util/PatternConstructor.java | 130 - .../jdt/internal/ui/util/StringMatcher.java | 356 -- .../ui/viewsupport/BasicElementLabels.java | 156 - .../ui/viewsupport/BindingLabelProvider.java | 541 -- .../viewsupport/ImageDescriptorRegistry.java | 41 - .../viewsupport/JavaElementImageProvider.java | 549 -- .../viewsupport/JavaElementLabelComposer.java | 1666 ------ .../ui/workingsets/IWorkingSetIDs.java | 27 - .../ui/workingsets/WorkingSetComparator.java | 60 - .../org/eclipse/jdt/ui/CodeGeneration.java | 630 --- .../jdt/ui/CodeStyleConfiguration.java | 101 - .../eclipse/jdt/ui/IWorkingCopyProvider.java | 32 - .../jdt/ui/JavaElementImageDescriptor.java | 348 -- .../org/eclipse/jdt/ui/JavaElementLabels.java | 797 --- .../eclipse/jdt/ui/PreferenceConstants.java | 4288 --------------- .../org/eclipse/jdt/ui/SharedASTProvider.java | 121 - .../StandardJavaElementContentProvider.java | 483 -- .../IJavaEditorActionDefinitionIds.java | 911 --- .../jdt/ui/cleanup/CleanUpContext.java | 65 - .../jdt/ui/cleanup/CleanUpOptions.java | 101 - .../jdt/ui/cleanup/CleanUpRequirements.java | 108 - .../org/eclipse/jdt/ui/cleanup/ICleanUp.java | 94 - .../eclipse/jdt/ui/cleanup/ICleanUpFix.java | 33 - .../refactoring/IRefactoringProcessorIds.java | 281 - .../ui/refactoring/RefactoringSaveHelper.java | 17 - .../jdt/ui/refactoring/RenameSupport.java | 489 -- .../ui/search/ElementQuerySpecification.java | 50 - .../jdt/ui/search/IMatchPresentation.java | 62 - .../jdt/ui/search/IQueryParticipant.java | 63 - .../jdt/ui/search/ISearchRequestor.java | 32 - .../ui/search/PatternQuerySpecification.java | 79 - .../jdt/ui/search/QuerySpecification.java | 66 - .../eclipse/jdt/ui/text/IJavaPartitions.java | 38 - .../ui/text/java/AbstractProposalSorter.java | 72 - .../java/CompletionProposalCollector.java | 907 --- .../java/CompletionProposalComparator.java | 82 - .../java/CompletionProposalLabelProvider.java | 767 --- .../java/ContentAssistInvocationContext.java | 186 - .../jdt/ui/text/java/IInvocationContext.java | 69 - .../ui/text/java/IJavaCompletionProposal.java | 34 - .../java/IJavaCompletionProposalComputer.java | 73 - .../jdt/ui/text/java/IProblemLocation.java | 86 - .../ui/text/java/IQuickAssistProcessor.java | 45 - .../jdt/ui/text/java/IQuickFixProcessor.java | 55 - .../JavaContentAssistInvocationContext.java | 296 - .../jdt/ui/text/java/JavaTextMessages.java | 33 - .../ASTRewriteCorrectionProposal.java | 137 - .../java/correction/CUCorrectionProposal.java | 279 - .../correction/ChangeCorrectionProposal.java | 447 -- .../text/java/correction/ICommandAccess.java | 35 - .../ui/refactoring/AbstractChangeNode.java | 167 - .../ChangePreviewViewerDescriptor.java | 58 - .../CompilationUnitChangeNode.java | 208 - .../ui/refactoring/CompositeChangeNode.java | 56 - .../ui/refactoring/DefaultChangeNode.java | 27 - .../internal/ui/refactoring/FinishResult.java | 47 - .../InternalLanguageElementNode.java | 151 - .../InternalTextEditChangeNode.java | 49 - .../internal/ui/refactoring/PreviewNode.java | 171 - .../refactoring/RefactoringPluginImages.java | 21 - .../RefactoringPreviewChangeFilter.java | 30 - .../TextEditChangePreviewViewer.java | 282 - .../ui/refactoring/TextEditGroupNode.java | 119 - .../refactoring/ChangePreviewViewerInput.java | 45 - .../ui/refactoring/IChangePreviewViewer.java | 58 - .../ui/refactoring/LanguageElementNode.java | 75 - .../ui/refactoring/TextEditChangeNode.java | 171 - .../ContributionContextTypeRegistry.java | 335 -- .../templates/ContributionTemplateStore.java | 253 - .../src/main/resources/JavaSE-1.8.profile | 208 - .../main/resources/JavadocHoverStyleSheet.css | 247 - .../jdt/javadoc/JavaDocMessages.properties | 24 - .../jdt/corext/CorextMessages.properties | 29 - .../descriptors/DescriptorMessages.properties | 38 - .../internal/corext/CorextMessages.properties | 29 - .../CodeGenerationMessages.properties | 54 - .../corext/fix/FixMessages.properties | 128 - .../corext/format/che-codestyle-eclipse_.xml | 285 - .../nls/changes/NLSChangesMessages.properties | 14 - .../corext/refactoring/refactoring.properties | 1377 ----- .../java/JavaTemplateMessages.properties | 75 - .../jdt/internal/ui/JavaUIMessages.properties | 253 - .../ui/fix/MultiFixMessages.properties | 91 - .../ui/search/SearchMessages.properties | 389 -- .../correction/CorrectionMessages.properties | 430 -- .../ui/text/java/JavaTextMessages.properties | 70 - .../text/javadoc/JavaDocMessages.properties | 24 - .../TemplateContentAssistMessages.properties | 17 - .../jdt/javadoc/JavaDocMessages.properties | 24 - .../ui/text/java/JavaTextMessages.properties | 13 - .../internal/ui/SearchMessages.properties | 246 - .../templates/default-codetemplates.xml | 88 - .../templates/default-templates.properties | 177 - .../eclipse/templates/default-templates.xml | 188 - .../org-eclipse-jface-text/pom.xml | 67 - .../che/jface/text/DocumentCommand.java | 446 -- .../che/jface/text/ITextSelection.java | 75 - .../eclipse/che/jface/text/ITextViewer.java | 523 -- .../eclipse/che/jface/text/TextSelection.java | 202 - .../contentassist/ICompletionProposal.java | 123 - .../ICompletionProposalExtension.java | 64 - .../ICompletionProposalExtension2.java | 70 - .../ICompletionProposalExtension3.java | 52 - .../ICompletionProposalExtension4.java | 34 - .../ICompletionProposalExtension5.java | 39 - .../ICompletionProposalExtension6.java | 36 - .../ICompletionProposalSorter.java | 34 - .../contentassist/IContextInformation.java | 69 - .../IContextInformationExtension.java | 26 - .../che/jface/text/link/ProposalPosition.java | 100 - .../quickassist/IQuickAssistAssistant.java | 155 - .../IQuickAssistAssistantExtension.java | 51 - .../IQuickAssistInvocationContext.java | 43 - .../quickassist/IQuickAssistProcessor.java | 61 - .../quickassist/IQuickFixableAnnotation.java | 55 - .../che/jface/text/rules/FastPartitioner.java | 789 --- .../jface/text/rules/ICharacterScanner.java | 45 - .../text/rules/IPartitionTokenScanner.java | 38 - .../che/jface/text/rules/IPredicateRule.java | 45 - .../eclipse/che/jface/text/rules/IRule.java | 29 - .../eclipse/che/jface/text/rules/IToken.java | 50 - .../che/jface/text/rules/ITokenScanner.java | 52 - .../jface/text/rules/IWhitespaceDetector.java | 25 - .../che/jface/text/rules/IWordDetector.java | 33 - .../eclipse/che/jface/text/rules/Token.java | 114 - .../che/jface/text/source/ILineRange.java | 37 - .../che/jface/text/source/ISourceViewer.java | 196 - .../che/jface/text/source/LineRange.java | 46 - .../text/source/TextInvocationContext.java | 53 - .../text/templates/ContextTypeRegistry.java | 60 - .../persistence/TemplatePersistenceData.java | 169 - .../TemplatePersistenceMessages.java | 39 - .../TemplatePersistenceMessages.properties | 14 - .../persistence/TemplateReaderWriter.java | 396 -- .../templates/persistence/TemplateStore.java | 467 -- .../org-eclipse-jface/pom.xml | 52 - .../eclipse/jface/dialogs/DialogSettings.java | 653 --- .../jface/dialogs/IDialogSettings.java | 224 - .../jface/operation/IRunnableContext.java | 54 - .../operation/IRunnableWithProgress.java | 44 - .../jface/preference/IPreferenceStore.java | 472 -- .../jface/preference/PreferenceStore.java | 610 -- .../jface/resource/ImageDescriptor.java | 49 - .../eclipse/jface/viewers/DefaultStyler.java | 30 - .../jface/viewers/IContentProvider.java | 45 - .../org/eclipse/jface/viewers/ISelection.java | 27 - .../viewers/IStructuredContentProvider.java | 27 - .../jface/viewers/IStructuredSelection.java | 54 - .../jface/viewers/ITreeContentProvider.java | 64 - .../viewers/StyledCellLabelProvider.java | 67 - .../eclipse/jface/viewers/StyledString.java | 212 - .../src/main/java/org/eclipse/swt/SWT.java | 34 - .../java/org/eclipse/swt/graphics/Image.java | 71 - .../java/org/eclipse/swt/graphics/Point.java | 88 - .../org-eclipse-ltk-core-refactoring/pom.xml | 106 - .../CheRefactoringContributions.java | 173 - .../CheRefactoringParticipantsRegistry.java | 40 - .../refactoring/CategorizedTextEditGroup.java | 76 - .../eclipse/ltk/core/refactoring/Change.java | 268 - .../core/refactoring/ChangeDescriptor.java | 27 - .../refactoring/CheckConditionsOperation.java | 119 - .../ltk/core/refactoring/CompositeChange.java | 457 -- .../ltk/core/refactoring/ContentStamp.java | 42 - .../refactoring/CreateChangeOperation.java | 186 - .../ltk/core/refactoring/DocumentChange.java | 143 - .../core/refactoring/FileStatusContext.java | 68 - .../ltk/core/refactoring/GroupCategory.java | 71 - .../core/refactoring/GroupCategorySet.java | 135 - .../IRefactoringCoreStatusCodes.java | 95 - .../IRefactoringStatusEntryComparator.java | 41 - .../ltk/core/refactoring/IResourceMapper.java | 37 - .../ltk/core/refactoring/IUndoManager.java | 156 - .../refactoring/IUndoManagerListener.java | 59 - .../IValidationCheckResultQuery.java | 43 - .../IValidationCheckResultQueryFactory.java | 33 - .../refactoring/MultiStateTextFileChange.java | 994 ---- .../ltk/core/refactoring/NullChange.java | 69 - .../refactoring/PerformChangeOperation.java | 280 - .../PerformRefactoringHistoryOperation.java | 252 - .../PerformRefactoringOperation.java | 132 - .../ltk/core/refactoring/Refactoring.java | 225 - .../RefactoringChangeDescriptor.java | 46 - .../core/refactoring/RefactoringContext.java | 64 - .../refactoring/RefactoringContribution.java | 166 - .../ltk/core/refactoring/RefactoringCore.java | 126 - .../refactoring/RefactoringDescriptor.java | 411 -- .../RefactoringDescriptorProxy.java | 107 - .../RefactoringSessionDescriptor.java | 110 - .../core/refactoring/RefactoringStatus.java | 653 --- .../refactoring/RefactoringStatusContext.java | 45 - .../refactoring/RefactoringStatusEntry.java | 283 - .../refactoring/RefactoringTickProvider.java | 120 - .../ltk/core/refactoring/TextChange.java | 584 -- .../core/refactoring/TextEditBasedChange.java | 394 -- .../refactoring/TextEditBasedChangeGroup.java | 127 - .../core/refactoring/TextEditChangeGroup.java | 45 - .../ltk/core/refactoring/TextFileChange.java | 323 -- .../core/refactoring/UndoManagerAdapter.java | 33 - .../core/refactoring/UndoTextFileChange.java | 278 - .../IRefactoringExecutionListener.java | 37 - .../history/IRefactoringHistoryListener.java | 37 - .../history/IRefactoringHistoryService.java | 286 - .../history/RefactoringExecutionEvent.java | 110 - .../history/RefactoringHistory.java | 53 - .../history/RefactoringHistoryEvent.java | 115 - .../ltk/core/refactoring/history/package.html | 16 - ...tRefactoringDescriptorResourceMapping.java | 139 - ...ractRefactoringHistoryResourceMapping.java | 134 - .../ltk/core/refactoring/model/package.html | 16 - .../eclipse/ltk/core/refactoring/package.html | 16 - .../participants/CheckConditionsContext.java | 131 - .../participants/CopyArguments.java | 66 - .../participants/CopyParticipant.java | 40 - .../participants/CopyProcessor.java | 22 - .../participants/CopyRefactoring.java | 51 - .../participants/CreateArguments.java | 33 - .../participants/CreateParticipant.java | 40 - .../participants/DeleteArguments.java | 59 - .../participants/DeleteParticipant.java | 40 - .../participants/DeleteProcessor.java | 24 - .../participants/DeleteRefactoring.java | 42 - .../participants/IConditionChecker.java | 37 - .../IParticipantDescriptorFilter.java | 41 - .../participants/ISharableParticipant.java | 41 - .../participants/MoveArguments.java | 71 - .../participants/MoveParticipant.java | 40 - .../participants/MoveProcessor.java | 24 - .../participants/MoveRefactoring.java | 51 - .../ParticipantExtensionPoint.java | 176 - .../participants/ParticipantManager.java | 341 -- .../ProcessorBasedRefactoring.java | 421 -- .../participants/RefactoringArguments.java | 40 - .../participants/RefactoringParticipant.java | 248 - .../participants/RefactoringProcessor.java | 217 - .../participants/RenameArguments.java | 71 - .../participants/RenameParticipant.java | 40 - .../participants/RenameProcessor.java | 24 - .../participants/RenameRefactoring.java | 42 - .../participants/ReorgExecutionLog.java | 124 - .../participants/ResourceChangeChecker.java | 134 - .../participants/SharableParticipants.java | 42 - .../participants/ValidateEditChecker.java | 95 - .../refactoring/participants/package.html | 17 - .../resource/DeleteResourceChange.java | 220 - .../resource/DeleteResourcesDescriptor.java | 150 - .../resource/MoveResourceChange.java | 190 - .../resource/MoveResourcesDescriptor.java | 233 - .../resource/RenameResourceChange.java | 139 - .../resource/RenameResourceDescriptor.java | 184 - .../refactoring/resource/ResourceChange.java | 329 -- .../core/refactoring/resource/package.html | 16 - .../core/refactoring/BasicElementLabels.java | 108 - .../refactoring/BufferValidationState.java | 381 -- .../internal/core/refactoring/Changes.java | 67 - .../core/refactoring/ContentStamps.java | 119 - .../IRefactoringSerializationConstants.java | 59 - .../ltk/internal/core/refactoring/Lock.java | 20 - .../internal/core/refactoring/Messages.java | 32 - .../refactoring/MultiStateUndoChange.java | 216 - .../NonDeletingPositionUpdater.java | 97 - .../NotCancelableProgressMonitor.java | 27 - .../refactoring/ParticipantDescriptor.java | 132 - .../refactoring/RefactoringCoreMessages.java | 276 - .../refactoring/RefactoringCorePlugin.java | 157 - .../RefactoringPreferenceConstants.java | 26 - .../refactoring/RefactoringSessionReader.java | 283 - .../RefactoringSessionTransformer.java | 305 - .../refactoring/RefactoringUndoContext.java | 28 - .../internal/core/refactoring/Resources.java | 225 - .../core/refactoring/TextChanges.java | 29 - .../core/refactoring/UndoDocumentChange.java | 120 - .../core/refactoring/UndoManager2.java | 363 -- .../UndoableOperation2ChangeAdapter.java | 378 -- .../history/DefaultRefactoringDescriptor.java | 76 - .../DefaultRefactoringDescriptorProxy.java | 78 - .../IRefactoringDescriptorDeleteQuery.java | 44 - .../RefactoringContributionManager.java | 211 - .../history/RefactoringDescriptorChange.java | 42 - .../RefactoringDescriptorProxyAdapter.java | 66 - .../RefactoringHistoryImplementation.java | 118 - .../history/RefactoringHistoryManager.java | 1446 ----- .../history/RefactoringHistorySerializer.java | 120 - .../history/RefactoringHistoryService.java | 1066 ---- .../history/UnknownRefactoringDescriptor.java | 41 - .../resource/DeleteResourcesProcessor.java | 378 -- ...eleteResourcesRefactoringContribution.java | 106 - .../resource/MoveResourcesProcessor.java | 311 -- .../MoveResourcesRefactoringContribution.java | 125 - .../resource/RenameResourceProcessor.java | 258 - ...RenameResourceRefactoringContribution.java | 89 - .../resource/ResourceModifications.java | 366 -- .../resource/ResourceProcessors.java | 67 - .../resource/UndoDeleteResourceChange.java | 87 - .../undostates/AbstractResourceUndoState.java | 120 - .../undostates/ContainerUndoState.java | 251 - .../resource/undostates/FileUndoState.java | 213 - .../resource/undostates/FolderUndoState.java | 93 - .../undostates/IFileContentDescription.java | 48 - .../resource/undostates/MarkerUndoState.java | 96 - .../resource/undostates/ProjectUndoState.java | 112 - .../undostates/ResourceUndoState.java | 112 - .../RefactoringCoreMessages.properties | 158 - .../org-eclipse-search/pom.xml | 90 - .../org/eclipse/search/InternalSearchUI.java | 364 -- .../java/org/eclipse/search/NewSearchUI.java | 306 -- .../java/org/eclipse/search/QueryManager.java | 158 - .../search/core/text/TextSearchEngine.java | 124 - .../core/text/TextSearchMatchAccess.java | 78 - .../search/core/text/TextSearchRequestor.java | 106 - .../search/core/text/TextSearchScope.java | 82 - .../core/text/DocumentCharSequence.java | 53 - .../core/text/FileCharSequenceProvider.java | 491 -- .../core/text/FileNamePatternSearchScope.java | 190 - .../core/text/FilesOfScopeCalculator.java | 61 - .../search/internal/core/text/Messages.java | 15 - .../core/text/PatternConstructor.java | 489 -- .../internal/core/text/TextSearchVisitor.java | 375 -- .../search/internal/ui/NewSearchUI.java | 7 - .../search/internal/ui/SearchMessages.java | 213 - .../search/internal/ui/SearchPlugin.java | 23 - .../org/eclipse/search/ui/IQueryListener.java | 54 - .../org/eclipse/search/ui/ISearchQuery.java | 66 - .../org/eclipse/search/ui/ISearchResult.java | 69 - .../search/ui/ISearchResultListener.java | 31 - .../eclipse/search/ui/SearchResultEvent.java | 42 - .../ui/text/AbstractTextSearchResult.java | 385 -- .../search/ui/text/FilterUpdateEvent.java | 60 - .../search/ui/text/IEditorMatchAdapter.java | 44 - .../search/ui/text/IFileMatchAdapter.java | 46 - .../org/eclipse/search/ui/text/Match.java | 144 - .../eclipse/search/ui/text/MatchEvent.java | 98 - .../eclipse/search/ui/text/MatchFilter.java | 56 - .../search/ui/text/RemoveAllEvent.java | 33 - .../org-eclipse-ui-ide/pom.xml | 64 - .../main/java/org/eclipse/ui/IWorkingSet.java | 188 - .../main/java/org/eclipse/ui/PlatformUI.java | 16 - .../ui/actions/WorkspaceModifyOperation.java | 145 - .../ui/dialogs/ContainerGenerator.java | 217 - .../eclipse/ui/dialogs/IOverwriteQuery.java | 52 - .../dialogs/UIResourceFilterDescription.java | 52 - .../ui/ide/undo/ResourceDescription.java | 114 - .../ide/undo/AbstractResourceDescription.java | 140 - .../ide/undo/ContainerDescription.java | 299 - .../ui/internal/ide/undo/FileDescription.java | 243 - .../internal/ide/undo/FolderDescription.java | 116 - .../ide/undo/IFileContentDescription.java | 48 - .../internal/ide/undo/MarkerDescription.java | 96 - .../internal/ide/undo/ProjectDescription.java | 132 - .../ui/internal/ide/undo/UndoMessages.java | 73 - .../IImportStructureProvider.java | 64 - .../wizards/datatransfer/ImportOperation.java | 950 ---- .../ui/internal/ide/undo/messages.properties | 56 - .../che-plugin-java-ext-jdt/pom.xml | 35 - 1207 files changed, 317118 deletions(-) delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/pom.xml delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/FileBuffers.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/IDocumentFactory.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/IDocumentSetupParticipant.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/IDocumentSetupParticipantExtension.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/IFileBuffer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/IFileBufferListener.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/IFileBufferManager.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/IFileBufferStatusCodes.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/IStateValidationSupport.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/ISynchronizationContext.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/ITextFileBuffer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/ITextFileBufferManager.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/LocationKind.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/AbstractFileBuffer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/DocumentReader.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/ExtensionsRegistry.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/FileBuffersMessages.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/FileBuffersPlugin.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/FileStoreFileBuffer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/FileStoreTextFileBuffer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/NLSUtility.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/SynchronizableDocument.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/TextFileBufferManager.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/resources/org/eclipse/core/internal/filebuffers/FileBuffersMessages.properties delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/pom.xml delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/filesystem/EFS.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/filesystem/IFileInfo.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/filesystem/IFileStore.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/filesystem/IFileSystem.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/filesystem/URIUtil.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/filesystem/provider/FileInfo.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/filesystem/provider/FileStore.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/internal/filesystem/LocalFile.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/internal/filesystem/Messages.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/internal/filesystem/Policy.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/resources/org/eclipse/core/internal/filesystem/messages.properties delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/pom.xml delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/preferences/ChePreferences.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/Container.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/File.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/FileUtil.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/Folder.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/Project.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/Resource.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/ResourceInfo.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/ResourceProxy.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/ResourceStatus.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/Rules.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/WorkManager.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/Workspace.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/WorkspaceRoot.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/mapping/ProposedResourceDelta.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/mapping/ResourceChangeDescriptionFactory.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/utils/Policy.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/dtree/IComparator.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/events/ILifecycleListener.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/events/LifecycleEvent.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/ICoreConstants.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/IManager.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/InternalTeamHook.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/ModelObject.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/OS.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/PreferenceInitializer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/ResourceException.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/ResourceStatus.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/Rules.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/WorkspaceDescription.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/mapping/ModelProviderManager.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/utils/Messages.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/utils/WrappedRuntimeException.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/watson/IElementComparator.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/watson/IPathRequestor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/FileInfoMatcherDescription.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IBuildConfiguration.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/ICommand.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IContainer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IEncodedStorage.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IFile.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IFileModificationValidator.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IFileState.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IFilterMatcherDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IFolder.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IMarker.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IMarkerDelta.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IPathVariableChangeEvent.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IPathVariableChangeListener.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IPathVariableManager.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IProject.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IProjectDescription.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IProjectNature.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IProjectNatureDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IResource.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IResourceChangeEvent.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IResourceChangeListener.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IResourceDelta.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IResourceDeltaVisitor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IResourceFilterDescription.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IResourceProxy.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IResourceProxyVisitor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IResourceRuleFactory.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IResourceStatus.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IResourceVisitor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/ISaveContext.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/ISaveParticipant.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/ISavedState.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IStorage.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/ISynchronizer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IWorkspace.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IWorkspaceDescription.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IWorkspaceRoot.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IWorkspaceRunnable.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/ProjectScope.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/ResourceAttributes.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/ResourcesPlugin.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/mapping/ChangeDescription.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/mapping/CompositeResourceMapping.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/mapping/IModelProviderDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/mapping/IResourceChangeDescriptionFactory.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/mapping/ModelProvider.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/mapping/ModelStatus.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/mapping/RemoteResourceMappingContext.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/mapping/ResourceChangeValidator.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/mapping/ResourceMapping.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/mapping/ResourceMappingContext.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/mapping/ResourceTraversal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/team/FileModificationValidationContext.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/team/FileModificationValidator.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/team/ResourceRuleFactory.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/team/TeamHook.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/resources/org/eclipse/core/internal/utils/messages.properties delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/pom.xml delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/JavadocUrlProvider.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/JavadocFinder.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/core/JavaConventions.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/core/ToolFactory.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/core/launching/IVMInstallType.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/core/launching/JREContainer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/core/launching/JREContainerInitializer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/core/launching/JavaRuntime.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/core/launching/Launching.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/core/launching/LibraryInfo.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/core/launching/LibraryLocation.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/core/launching/StandardVMType.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/core/launching/environments/DefaultAccessRuleParticipant.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/core/launching/environments/ExecutionEnvironment.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/core/launching/environments/IAccessRuleParticipant.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/core/launching/environments/IExecutionEnvironment.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/core/resources/IResourceDelta.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/core/resources/ResourceChangedEvent.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/core/resources/ResourceDeltaImpl.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/dom/ASTFlattener.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/dom/ASTNodes.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/dom/GenericVisitor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/dom/JavaConventions.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/internal/compiler/parser/SourceTypeConverter.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/internal/core/builder/ClasspathDirectory.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/internal/core/builder/ClasspathJar.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/internal/core/builder/CodenvyClasspathLocation.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/internal/corext/CorextMessages.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/internal/ui/text/JavaWordFinder.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/javadoc/ASTProvider.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/javadoc/HTMLPrinter.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/javadoc/JavaDoc2HTMLTextReader.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/javadoc/JavaDocCommentReader.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/javadoc/JavaDocLocations.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/javadoc/JavaDocMessages.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/javadoc/JavaElementLabelComposer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/javadoc/JavaElementLabels.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/javadoc/JavaElementLinks.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/javadoc/JavadocContentAccess.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/javadoc/JavadocContentAccess2.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/javadoc/SingleCharReader.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/javadoc/SubstitutionTextReader.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/javaeditor/HasLinkedModel.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/javaeditor/JavaReconciler.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/javaeditor/SemanticHighlighting.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/javaeditor/SemanticHighlightingReconciler.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/javaeditor/SemanticHighlightings.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/javaeditor/SemanticToken.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/javaeditor/TextViewer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/rest/UrlContextProvider.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/ui/CheActionAcces.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/util/JavaModelUtil.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/jdt/util/JdtFlags.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/che/ltk/core/refactoring/participants/ResourceChangeChecker.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/JavaConventions.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/dom/CheAST.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/dom/CheASTParser.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/dom/CheCompilationUnitResolver.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/dom/CodenvyCompilationUnitResolver.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/CompilationUnitChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/IJavaElementMapper.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/IJavaRefactorings.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/RenameTypeArguments.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/UndoCompilationUnitChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/descriptors/ChangeMethodSignatureDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/descriptors/ConvertAnonymousDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/descriptors/ConvertLocalVariableDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/descriptors/ConvertMemberTypeDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/descriptors/CopyDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/descriptors/DeleteDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/descriptors/EncapsulateFieldDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/descriptors/ExtractClassDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/descriptors/ExtractConstantDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/descriptors/ExtractInterfaceDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/descriptors/ExtractLocalDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/descriptors/ExtractMethodDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/descriptors/ExtractSuperclassDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/descriptors/GeneralizeTypeDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/descriptors/InferTypeArgumentsDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/descriptors/InlineConstantDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/descriptors/InlineLocalVariableDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/descriptors/InlineMethodDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/descriptors/IntroduceFactoryDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/descriptors/IntroduceIndirectionDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/descriptors/IntroduceParameterDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/descriptors/IntroduceParameterObjectDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/descriptors/JavaRefactoringContribution.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/descriptors/JavaRefactoringDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/descriptors/MoveDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/descriptors/MoveMethodDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/descriptors/MoveStaticMembersDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/descriptors/PullUpDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/descriptors/PushDownDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/descriptors/RenameJavaElementDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/descriptors/UseSupertypeDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/participants/ChangeMethodSignatureArguments.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/participants/ChangeMethodSignatureParticipant.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/participants/IRefactoringProcessorIds.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/core/refactoring/participants/JavaParticipantManager.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/core/BecomeWorkingCopyOperation.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/core/ChangeClasspathOperation.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/core/ClasspathEntry.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/core/DeltaProcessingState.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/core/DeltaProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/core/JavaModel.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/core/JavaModelManager.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/core/JavaModelOperation.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/core/JavaProject.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/core/ReconcileWorkingCopyOperation.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/core/SetContainerOperation.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/core/SourceMapper.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/core/XMLWriter.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/core/manipulation/JavaManipulationPlugin.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/core/refactoring/descriptors/DescriptorMessages.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/core/refactoring/descriptors/JavaRefactoringDescriptorUtil.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/core/refactoring/descriptors/RefactoringSignatureDescriptorFactory.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/core/search/IndexSelector.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/core/search/JavaSearchDocument.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/core/search/JavaSearchScope.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/core/search/indexing/IndexAllProject.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/core/search/indexing/IndexManager.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/core/util/HandleFactory.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/core/util/Util.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/Corext.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/CorextMessages.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/SourceRangeFactory.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/ValidateEditException.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/codemanipulation/AddImportsOperation.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/codemanipulation/CodeGenerationMessages.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/codemanipulation/CodeGenerationSettings.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/codemanipulation/ContextSensitiveImportRewriteContext.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/codemanipulation/GetterSetterUtil.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/codemanipulation/ImportReferencesCollector.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/codemanipulation/OrganizeImportsOperation.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/codemanipulation/StubUtility.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/codemanipulation/StubUtility2.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/dom/ASTBatchParser.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/dom/ASTFlattener.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/dom/ASTNodeFactory.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/dom/ASTNodes.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/dom/Bindings.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/dom/BodyDeclarationRewrite.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/dom/CodeScopeBuilder.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/dom/DimensionRewrite.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/dom/GenericVisitor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/dom/HierarchicalASTVisitor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/dom/JdtASTMatcher.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/dom/LinkedNodeFinder.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/dom/LocalVariableIndex.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/dom/ModifierRewrite.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/dom/NecessaryParenthesesChecker.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/dom/ReplaceRewrite.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/dom/ScopeAnalyzer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/dom/Selection.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/dom/SelectionAnalyzer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/dom/StatementRewrite.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/dom/TokenScanner.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/dom/TypeBindingVisitor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/dom/TypeRules.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/dom/VariableDeclarationRewrite.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/dom/fragments/ASTFragment.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/dom/fragments/ASTFragmentFactory.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/dom/fragments/ASTMatchingFragmentFinder.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/dom/fragments/AssociativeInfixExpressionFragment.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/dom/fragments/IASTFragment.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/dom/fragments/IExpressionFragment.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/dom/fragments/SimpleExpressionFragment.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/dom/fragments/SimpleFragment.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/dom/fragments/Util.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/fix/AbstractFix.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/fix/AbstractSerialVersionOperation.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/fix/AddUnimplementedMethodsOperation.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/fix/CleanUpConstants.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/fix/CleanUpPreferenceUtil.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/fix/CodeStyleFix.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/fix/CompilationUnitRewriteOperationsFix.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/fix/ControlStatementsFix.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/fix/ConvertForLoopOperation.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/fix/ConvertIterableLoopOperation.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/fix/ConvertLoopFix.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/fix/ConvertLoopOperation.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/fix/ExpressionsFix.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/fix/FixMessages.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/fix/IProposableFix.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/fix/Java50Fix.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/fix/LambdaExpressionsFix.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/fix/LinkedProposalModel.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/fix/LinkedProposalPositionGroup.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/fix/NullAnnotationsFix.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/fix/NullAnnotationsRewriteOperations.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/fix/PotentialProgrammingProblemsFix.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/fix/SerialVersionDefaultOperation.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/fix/StringFix.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/fix/TextEditFix.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/fix/TypeParametersFix.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/fix/UnimplementedCodeFix.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/fix/UnusedCodeFix.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/fix/VariableDeclarationFix.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/format/CheCodeFormatterInitializer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/format/CheCodeFormatterOptions.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/format/DocumentChangeListener.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/format/Formatter.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/format/XMLParser.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/AbstractJavaElementRenameChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/Checks.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/CollectingSearchRequestor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/CuCollectingSearchRequestor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/ExceptionInfo.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/IRefactoringSearchRequestor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/JDTRefactoringDescriptorComment.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/JavaRefactoringArguments.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/JavaRefactoringDescriptorUtil.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/ParameterInfo.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/RefactoringAvailabilityTester.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/RefactoringCoreMessages.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/RefactoringScopeFactory.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/RefactoringSearchEngine.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/RefactoringSearchEngine2.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/ReturnTypeInfo.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/SearchResultGroup.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/StubTypeContext.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/TypeContextChecker.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/base/JavaStatusContext.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/base/JavaStringStatusContext.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/base/RefactoringStatusCodes.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/base/ReferencesInBinaryContext.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/binary/StubCreator.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/changes/AbstractDeleteChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/changes/ClasspathChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/changes/CompilationUnitChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/changes/CompilationUnitReorgChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/changes/CopyCompilationUnitChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/changes/CopyPackageChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/changes/CopyPackageFragmentRootChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/changes/CopyResourceChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/changes/CreateCompilationUnitChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/changes/CreatePackageChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/changes/DeletePackageFragmentRootChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/changes/DeleteSourceManipulationChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/changes/DynamicValidationRefactoringChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/changes/DynamicValidationStateChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/changes/MoveCompilationUnitChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/changes/MovePackageChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/changes/MovePackageFragmentRootChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/changes/MultiStateCompilationUnitChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/changes/PackageFragmentRootReorgChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/changes/PackageReorgChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/changes/RenameCompilationUnitChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/changes/RenameJavaProjectChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/changes/RenamePackageChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/changes/RenameSourceFolderChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/changes/TextChangeCompatibility.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/changes/UndoDeleteResourceChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/changes/UndoablePackageDeleteChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/changes/WorkspaceTracker.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/AstMatchingNodeFinder.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/CallContext.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/CallInliner.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/CodeRefactoringUtil.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/ConstantChecks.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/ConvertAnonymousToNestedRefactoring.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/ExceptionAnalyzer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/ExtractConstantRefactoring.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/ExtractMethodAnalyzer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/ExtractMethodRefactoring.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/ExtractTempRefactoring.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/InlineConstantRefactoring.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/InlineMethodRefactoring.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/InlineTempRefactoring.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/IntroduceFactoryRefactoring.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/IntroduceIndirectionRefactoring.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/Invocations.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/LocalTypeAnalyzer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/NameCollector.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/OperatorPrecedence.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/ParameterData.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/PromoteTempToFieldRefactoring.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/ReplaceInvocationsRefactoring.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/SnippetFinder.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/SourceAnalyzer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/SourceProvider.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/TargetProvider.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/TempAssignmentFinder.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/flow/BlockFlowInfo.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/flow/BranchFlowInfo.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/flow/ConditionalFlowInfo.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/flow/DoWhileFlowInfo.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/flow/EnhancedForFlowInfo.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/flow/FlowAnalyzer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/flow/FlowContext.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/flow/FlowInfo.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/flow/ForFlowInfo.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/flow/GenericConditionalFlowInfo.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/flow/GenericSequentialFlowInfo.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/flow/IfFlowInfo.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/flow/InOutFlowAnalyzer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/flow/InputFlowAnalyzer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/flow/LocalFlowInfo.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/flow/MessageSendFlowInfo.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/flow/ReturnFlowInfo.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/flow/SwitchFlowInfo.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/flow/ThrowFlowInfo.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/flow/TryFlowInfo.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/flow/TypeVariableFlowInfo.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/code/flow/WhileFlowInfo.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/delegates/DelegateCreator.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/delegates/DelegateFieldCreator.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/delegates/DelegateMethodCreator.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/generics/ElementStructureEnvironment.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/generics/InferTypeArgumentsConstraintCreator.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/generics/InferTypeArgumentsConstraintsSolver.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/generics/InferTypeArgumentsRefactoring.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/generics/InferTypeArgumentsTCModel.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/generics/InferTypeArgumentsUpdate.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/generics/ParametricStructureComputer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/nls/NLSUtil.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/nls/changes/CreateFileChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/nls/changes/CreateTextFileChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/nls/changes/NLSChangesMessages.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/participants/JavaProcessors.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/participants/RefactoringProcessors.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/participants/ResourceModifications.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/participants/ResourceProcessors.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/rename/GenericRefactoringHandleTransplanter.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/rename/JavaRenameProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/rename/MethodChecks.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/rename/MethodOccurenceCollector.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/rename/RefactoringAnalyzeUtil.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/rename/RefactoringHandleTransplanter.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/rename/RefactoringScanner.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/rename/RenameAnalyzeUtil.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/rename/RenameCompilationUnitProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/rename/RenameEnumConstProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/rename/RenameFieldProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/rename/RenameLocalVariableProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/rename/RenameMethodProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/rename/RenameModifications.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/rename/RenameNonVirtualMethodProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/rename/RenamePackageProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/rename/RenameTypeParameterProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/rename/RenameTypeProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/rename/RenameVirtualMethodProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/rename/RenamingNameSuggestor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/rename/RippleMethodFinder2.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/rename/TempDeclarationFinder.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/rename/TempOccurrenceAnalyzer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/rename/TextMatchUpdater.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/rename/TypeOccurrenceCollector.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/reorg/ASTNodeDeleteUtil.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/reorg/ArrayTypeConverter.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/reorg/CopyModifications.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/reorg/CreateCopyOfCompilationUnitChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/reorg/CreateTargetExecutionLog.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/reorg/DeleteChangeCreator.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/reorg/IConfirmQuery.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/reorg/ICreateTargetQueries.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/reorg/ICreateTargetQuery.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/reorg/INewNameQueries.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/reorg/INewNameQuery.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/reorg/IPackageFragmentRootManipulationQuery.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/reorg/IReorgDestination.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/reorg/IReorgDestinationValidator.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/reorg/IReorgPolicy.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/reorg/IReorgQueries.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/reorg/JavaMoveProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/reorg/LoggedCreateTargetChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/reorg/LoggedCreateTargetQueries.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/reorg/MonitoringCreateTargetQueries.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/reorg/MoveCuUpdateCreator.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/reorg/MoveModifications.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/reorg/NullReorgQueries.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/reorg/OverwriteHelper.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/reorg/ParentChecker.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/reorg/ReadOnlyResourceFinder.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/reorg/RefactoringModifications.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgDestinationFactory.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgPolicyFactory.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgUtils.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/scripting/JavaUIRefactoringContribution.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/scripting/RenameCompilationUnitRefactoringContribution.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/scripting/RenameEnumConstRefactoringContribution.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/scripting/RenameFieldRefactoringContribution.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/scripting/RenameLocalVariableRefactoringContribution.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/scripting/RenameMethodRefactoringContribution.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/scripting/RenamePackageRefactoringContribution.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/scripting/RenameTypeParameterRefactoringContribution.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/scripting/RenameTypeRefactoringContribution.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/sef/AccessAnalyzer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/sef/SelfEncapsulateFieldRefactoring.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/structure/ASTNodeSearchUtil.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/structure/BodyUpdater.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/structure/ChangeSignatureProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/structure/CompilationUnitRewrite.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/structure/IDefaultValueAdvisor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/structure/ImportRemover.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/structure/ImportRewriteUtil.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/structure/MemberVisibilityAdjustor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/structure/ReferenceFinderUtil.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/surround/ExceptionAnalyzer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/surround/LocalDeclarationAnalyzer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/surround/SurroundWithAnalyzer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/surround/SurroundWithTryCatchAnalyzer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/surround/SurroundWithTryCatchRefactoring.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/tagging/IDelegateUpdating.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/tagging/INameUpdating.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/tagging/IQualifiedNameUpdating.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/tagging/IReferenceUpdating.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/tagging/IRenameSubpackages.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/tagging/ISimilarDeclarationUpdating.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/tagging/ITextUpdating.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/ASTCreator.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/CompilationUnitRange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/CompositeOrTypeConstraint.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/ConstraintCollector.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/ConstraintCreator.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/ConstraintOperator.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/ConstraintVariable.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/ConstraintVariableFactory.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/DeclaringTypeVariable.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/ExpressionVariable.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/FullConstraintCreator.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/IConstraintVariableFactory.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/IContext.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/ITypeConstraint.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/ITypeConstraintFactory.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/NullContext.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/ParameterTypeVariable.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/RawBindingVariable.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/ReturnTypeVariable.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/SimpleTypeConstraint.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/TypeConstraintFactory.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/TypeVariable.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/types/AbstractTypeVariable.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/types/ArrayType.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/types/CaptureType.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/types/ExtendsWildcardType.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/types/GenericType.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/types/HierarchyType.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/types/NullType.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/types/ParameterizedType.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/types/PrimitiveType.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/types/RawType.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/types/StandardType.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/types/SuperWildcardType.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/types/TType.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/types/TypeEnvironment.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/types/TypeTuple.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/types/TypeVariable.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/types/UnboundWildcardType.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/types/VoidType.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/types/WildcardType.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/typesets/ArraySuperTypeSet.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/typesets/ArrayTypeSet.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/typesets/EmptyTypeSet.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/typesets/EnumeratedTypeSet.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/typesets/SingletonTypeSet.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/typesets/SubTypesOfSingleton.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/typesets/SubTypesSet.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/typesets/SuperTypesOfSingleton.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/typesets/SuperTypesSet.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/typesets/TypeSet.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/typesets/TypeSetEnvironment.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/typesets/TypeSetIntersection.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/typesets/TypeSetUnion.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/typesets/TypeUniverseSet.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints2/ArrayElementVariable2.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints2/ArrayTypeVariable2.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints2/CastVariable2.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints2/CollectionElementVariable2.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints2/ConstraintVariable2.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints2/ISourceConstraintVariable.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints2/ITypeConstraint2.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints2/ITypeConstraintVariable.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints2/ITypeSet.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints2/ImmutableTypeVariable2.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints2/IndependentTypeVariable2.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints2/ParameterTypeVariable2.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints2/ParameterizedTypeVariable2.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints2/ReturnTypeVariable2.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints2/SubTypeConstraint2.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints2/TTypes.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints2/TypeEquivalenceSet.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints2/TypeVariable2.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/typeconstraints2/VariableVariable2.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/util/AbstractExceptionAnalyzer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/util/Changes.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/util/CodeAnalyzer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/util/CommentAnalyzer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/util/JavaElementUtil.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/util/JavadocUtil.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/util/NoCommentSourceRangeComputer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/util/QualifiedNameFinder.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/util/QualifiedNameSearchResult.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/util/RefactoringASTParser.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/util/RefactoringFileBuffers.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/util/ResourceUtil.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/util/SelectionAwareSourceRangeComputer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/util/StatementAnalyzer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/util/TextChangeManager.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/util/TextEditUtil.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/util/TightSourceRangeComputer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/template/java/AbstractJavaContextType.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/template/java/AbstractVariableResolver.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/template/java/CodeTemplateContext.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/template/java/CodeTemplateContextType.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/template/java/CompilationUnitCompletion.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/template/java/CompilationUnitContext.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/template/java/CompilationUnitContextType.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/template/java/ElementTypeResolver.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/template/java/ExceptionVariableNameResolver.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/template/java/ExclusivePositionUpdater.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/template/java/FieldResolver.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/template/java/ImportsResolver.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/template/java/JavaContext.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/template/java/JavaContextType.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/template/java/JavaDocContext.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/template/java/JavaDocContextType.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/template/java/JavaFormatter.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/template/java/JavaTemplateMessages.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/template/java/JavaVariable.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/template/java/LinkResolver.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/template/java/LocalVarResolver.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/template/java/NameResolver.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/template/java/SignatureUtil.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/template/java/StaticImportResolver.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/template/java/TypeResolver.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/template/java/TypeVariableResolver.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/template/java/VarResolver.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/util/CodeFormatterUtil.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/util/CollectionsUtil.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/util/History.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/util/JavaConventionsUtil.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/util/JavaElementResourceMapping.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/util/JdtFlags.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/util/LRUMap.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/util/Messages.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/util/MethodOverrideTester.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/util/MethodsSourcePositionComparator.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/util/QualifiedTypeNameHistory.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/util/Resources.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/util/SearchUtils.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/util/Strings.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/util/SuperTypeHierarchyCache.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/util/TypeFilter.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/util/TypeNameMatchCollector.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/IJavaStatusConstants.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/JavaPlugin.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/JavaPluginImages.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/JavaPreferencesSettings.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/JavaUIException.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/JavaUIMessages.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/JavaUIStatus.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/actions/SelectionConverter.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/browsing/LogicalPackage.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/dialogs/StatusInfo.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/fix/AbstractCleanUp.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/fix/AbstractMultiFix.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/fix/CodeStyleCleanUp.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/fix/ControlStatementsCleanUp.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/fix/ConvertLoopCleanUp.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/fix/ExpressionsCleanUp.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/fix/IMultiFix.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/fix/Java50CleanUp.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/fix/LambdaExpressionsCleanUp.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/fix/MapCleanUpOptions.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/fix/MultiFixMessages.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/fix/NullAnnotationsCleanUp.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/fix/PotentialProgrammingProblemsCleanUp.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/fix/StringCleanUp.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/fix/TypeParametersCleanUp.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/fix/UnimplementedCodeCleanUp.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/fix/UnnecessaryCodeCleanUp.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/fix/UnusedCodeCleanUp.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/fix/VariableDeclarationCleanUp.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/javaeditor/ASTProvider.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/javaeditor/DocumentAdapter.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/javaeditor/IJavaAnnotation.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/javaeditor/IndentUtil.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/javaeditor/JavaTextSelection.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/model/JavaModelProvider.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/preferences/JavaPreferencesSettings.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/preferences/MembersOrderPreferenceCache.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/refactoring/IScheduledRefactoring.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/refactoring/RefactoringExecutionHelper.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/refactoring/actions/RefactoringActions.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/refactoring/contentassist/JavaTypeCompletionProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/search/AbstractJavaSearchResult.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/search/JavaElementMatch.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/search/JavaMatchFilter.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/search/JavaSearchQuery.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/search/JavaSearchResult.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/search/JavaSearchScopeFactory.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/search/MatchLocations.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/search/NewSearchResultCollector.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/search/SearchMessages.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/search/SearchParticipantDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/search/SearchParticipantRecord.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/search/SearchParticipantsExtensionPoint.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/search/SearchResultUpdater.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/BufferedDocumentScanner.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/DocumentCharacterIterator.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/FastJavaPartitionScanner.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/JavaBreakIterator.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/JavaHeuristicScanner.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/JavaIndenter.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/JavaWordIterator.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/SequenceCharacterIterator.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/Symbols.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/ASTResolving.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/AdvancedQuickAssistProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/AssistContext.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/ContributedProcessorDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/CorrectionMessages.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/GetterSetterCorrectionSubProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/IProposalRelevance.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/IStatusLineProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/JavaCorrectionProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/JavadocTagsSubProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/ModifierCorrectionSubProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/NameMatcher.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/NullAnnotationsCorrectionProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/ProblemLocation.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/QuickAssistProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/QuickFixProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/ReorgCorrectionsSubProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/ReturnTypeSubProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/SerialVersionSubProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/SimilarElement.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/SimilarElementsRequestor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/SuppressWarningsSubProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/TypeArgumentMismatchSubProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/TypeMismatchSubProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/UnresolvedElementsSubProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/VarargsWarningsSubProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/proposals/AbstractMethodCorrectionProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/proposals/AddArgumentCorrectionProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/proposals/AddImportCorrectionProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/proposals/AddTypeParameterProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/proposals/AssignToVariableAssistProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/proposals/CastCorrectionProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/proposals/ChangeMethodSignatureProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/proposals/ConstructorFromSuperclassProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/proposals/CorrectMainTypeNameProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/proposals/CorrectPackageDeclarationProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/proposals/EditAnnotator.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/proposals/ExtractToNullCheckedLocalProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/proposals/FixCorrectionProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/proposals/GenerateForLoopAssistProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/proposals/ImplementInterfaceProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/proposals/LinkedCorrectionProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/proposals/LinkedNamesAssistProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/proposals/MissingAnnotationAttributesProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/proposals/MissingReturnTypeCorrectionProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/proposals/MissingReturnTypeInLambdaCorrectionProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/proposals/ModifierChangeCorrectionProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/proposals/NewAnnotationMemberProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/proposals/NewCUUsingWizardProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/proposals/NewDefiningMethodProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/proposals/NewMethodCorrectionProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/proposals/NewVariableCorrectionProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/proposals/RefactoringCorrectionProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/proposals/RemoveDeclarationCorrectionProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/proposals/RenameNodeCorrectionProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/proposals/ReplaceCorrectionProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/proposals/TaskMarkerProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/correction/proposals/TypeChangeCorrectionProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/AbstractJavaCompletionProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/AbstractTemplateCompletionProposalComputer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/AlphabeticSorter.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/AnnotationAtttributeProposalInfo.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/AnonymousTypeCompletionProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/AnonymousTypeProposalInfo.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/ContentAssistHistory.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/FieldProposalInfo.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/FillArgumentNamesCompletionProposalCollector.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/FilledArgumentNamesMethodProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/GetterSetterCompletionProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/IJavaReconcilingListener.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/ImportCompletionProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/JavaAllCompletionProposalComputer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProposalComputer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/JavaFieldWithCastedReceiverCompletionProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/JavaMethodCompletionProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/JavaNoTypeCompletionProposalComputer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/JavaTextMessages.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/JavaTypeCompletionProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/JavaTypeCompletionProposalComputer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/LazyGenericTypeProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/LazyJavaCompletionProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/LazyJavaTypeCompletionProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/LazyPackageCompletionProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/MemberProposalInfo.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/MethodDeclarationCompletionProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/MethodProposalInfo.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/OverrideCompletionProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/PackageProposalInfo.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/ParameterGuesser.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/ParameterGuessingProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/ProposalContextInformation.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/ProposalInfo.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/ProposalSorterHandle.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/RelevanceSorter.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/SmartSemicolonAutoEditStrategy.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/TemplateCompletionProposalComputer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/TypeProposalInfo.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/java/hover/JavadocBrowserInformationControlInput.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/javadoc/IHtmlTagConstants.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocMessages.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/javadoc/JavadocCompletionProposalComputer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/javadoc/JavadocInlineTagCompletionProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/javadoc/JavadocLinkTypeCompletionProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/template/contentassist/InclusivePositionUpdater.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/template/contentassist/MultiVariable.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/template/contentassist/MultiVariableGuess.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/template/contentassist/PositionBasedCompletionProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/template/contentassist/TemplateContentAssistMessages.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/template/contentassist/TemplateEngine.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/template/contentassist/TemplateProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/text/template/contentassist/VariablePosition.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/util/CoreUtility.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/util/PatternConstructor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/util/StringMatcher.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/viewsupport/BasicElementLabels.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/viewsupport/BindingLabelProvider.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/viewsupport/ImageDescriptorRegistry.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/viewsupport/JavaElementImageProvider.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabelComposer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/workingsets/IWorkingSetIDs.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/workingsets/WorkingSetComparator.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/CodeGeneration.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/CodeStyleConfiguration.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/IWorkingCopyProvider.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/JavaElementImageDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/JavaElementLabels.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/PreferenceConstants.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/SharedASTProvider.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/StandardJavaElementContentProvider.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/actions/IJavaEditorActionDefinitionIds.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/cleanup/CleanUpContext.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/cleanup/CleanUpOptions.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/cleanup/CleanUpRequirements.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/cleanup/ICleanUp.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/cleanup/ICleanUpFix.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/refactoring/IRefactoringProcessorIds.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/refactoring/RefactoringSaveHelper.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/refactoring/RenameSupport.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/search/ElementQuerySpecification.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/search/IMatchPresentation.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/search/IQueryParticipant.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/search/ISearchRequestor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/search/PatternQuerySpecification.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/search/QuerySpecification.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/text/IJavaPartitions.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/text/java/AbstractProposalSorter.java delete mode 100755 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/text/java/CompletionProposalCollector.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/text/java/CompletionProposalComparator.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/text/java/CompletionProposalLabelProvider.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/text/java/ContentAssistInvocationContext.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/text/java/IInvocationContext.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/text/java/IJavaCompletionProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/text/java/IJavaCompletionProposalComputer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/text/java/IProblemLocation.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/text/java/IQuickAssistProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/text/java/IQuickFixProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/text/java/JavaContentAssistInvocationContext.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/text/java/JavaTextMessages.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/text/java/correction/ASTRewriteCorrectionProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/text/java/correction/CUCorrectionProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/text/java/correction/ChangeCorrectionProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/text/java/correction/ICommandAccess.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/ltk/internal/ui/refactoring/AbstractChangeNode.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/ltk/internal/ui/refactoring/ChangePreviewViewerDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/ltk/internal/ui/refactoring/CompilationUnitChangeNode.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/ltk/internal/ui/refactoring/CompositeChangeNode.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/ltk/internal/ui/refactoring/DefaultChangeNode.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/ltk/internal/ui/refactoring/FinishResult.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/ltk/internal/ui/refactoring/InternalLanguageElementNode.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/ltk/internal/ui/refactoring/InternalTextEditChangeNode.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/ltk/internal/ui/refactoring/PreviewNode.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/ltk/internal/ui/refactoring/RefactoringPluginImages.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/ltk/internal/ui/refactoring/RefactoringPreviewChangeFilter.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/ltk/internal/ui/refactoring/TextEditChangePreviewViewer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/ltk/internal/ui/refactoring/TextEditGroupNode.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/ltk/ui/refactoring/ChangePreviewViewerInput.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/ltk/ui/refactoring/IChangePreviewViewer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/ltk/ui/refactoring/LanguageElementNode.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/ltk/ui/refactoring/TextEditChangeNode.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/ui/editors/text/templates/ContributionContextTypeRegistry.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/ui/editors/text/templates/ContributionTemplateStore.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/resources/JavaSE-1.8.profile delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/resources/JavadocHoverStyleSheet.css delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/resources/org/eclipse/che/jdt/javadoc/JavaDocMessages.properties delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/resources/org/eclipse/jdt/corext/CorextMessages.properties delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/resources/org/eclipse/jdt/internal/core/refactoring/descriptors/DescriptorMessages.properties delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/resources/org/eclipse/jdt/internal/corext/CorextMessages.properties delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/resources/org/eclipse/jdt/internal/corext/codemanipulation/CodeGenerationMessages.properties delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/resources/org/eclipse/jdt/internal/corext/fix/FixMessages.properties delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/resources/org/eclipse/jdt/internal/corext/format/che-codestyle-eclipse_.xml delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/resources/org/eclipse/jdt/internal/corext/refactoring/nls/changes/NLSChangesMessages.properties delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/resources/org/eclipse/jdt/internal/corext/refactoring/refactoring.properties delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/resources/org/eclipse/jdt/internal/corext/template/java/JavaTemplateMessages.properties delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/resources/org/eclipse/jdt/internal/ui/JavaUIMessages.properties delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/resources/org/eclipse/jdt/internal/ui/fix/MultiFixMessages.properties delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/resources/org/eclipse/jdt/internal/ui/search/SearchMessages.properties delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/resources/org/eclipse/jdt/internal/ui/text/correction/CorrectionMessages.properties delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/resources/org/eclipse/jdt/internal/ui/text/java/JavaTextMessages.properties delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/resources/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocMessages.properties delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/resources/org/eclipse/jdt/internal/ui/text/template/contentassist/TemplateContentAssistMessages.properties delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/resources/org/eclipse/jdt/javadoc/JavaDocMessages.properties delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/resources/org/eclipse/jdt/ui/text/java/JavaTextMessages.properties delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/resources/org/eclipse/search/internal/ui/SearchMessages.properties delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/resources/org/eclipse/templates/default-codetemplates.xml delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/resources/org/eclipse/templates/default-templates.properties delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/resources/org/eclipse/templates/default-templates.xml delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/pom.xml delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/DocumentCommand.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/ITextSelection.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/ITextViewer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/TextSelection.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/contentassist/ICompletionProposal.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/contentassist/ICompletionProposalExtension.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/contentassist/ICompletionProposalExtension2.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/contentassist/ICompletionProposalExtension3.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/contentassist/ICompletionProposalExtension4.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/contentassist/ICompletionProposalExtension5.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/contentassist/ICompletionProposalExtension6.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/contentassist/ICompletionProposalSorter.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/contentassist/IContextInformation.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/contentassist/IContextInformationExtension.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/link/ProposalPosition.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/quickassist/IQuickAssistAssistant.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/quickassist/IQuickAssistAssistantExtension.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/quickassist/IQuickAssistInvocationContext.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/quickassist/IQuickAssistProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/quickassist/IQuickFixableAnnotation.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/rules/FastPartitioner.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/rules/ICharacterScanner.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/rules/IPartitionTokenScanner.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/rules/IPredicateRule.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/rules/IRule.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/rules/IToken.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/rules/ITokenScanner.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/rules/IWhitespaceDetector.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/rules/IWordDetector.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/rules/Token.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/source/ILineRange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/source/ISourceViewer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/source/LineRange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/source/TextInvocationContext.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/templates/ContextTypeRegistry.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/templates/persistence/TemplatePersistenceData.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/templates/persistence/TemplatePersistenceMessages.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/templates/persistence/TemplatePersistenceMessages.properties delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/templates/persistence/TemplateReaderWriter.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface-text/src/main/java/org/eclipse/che/jface/text/templates/persistence/TemplateStore.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface/pom.xml delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface/src/main/java/org/eclipse/jface/dialogs/DialogSettings.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface/src/main/java/org/eclipse/jface/dialogs/IDialogSettings.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface/src/main/java/org/eclipse/jface/operation/IRunnableContext.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface/src/main/java/org/eclipse/jface/operation/IRunnableWithProgress.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface/src/main/java/org/eclipse/jface/preference/IPreferenceStore.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface/src/main/java/org/eclipse/jface/preference/PreferenceStore.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface/src/main/java/org/eclipse/jface/resource/ImageDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface/src/main/java/org/eclipse/jface/viewers/DefaultStyler.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface/src/main/java/org/eclipse/jface/viewers/IContentProvider.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface/src/main/java/org/eclipse/jface/viewers/ISelection.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface/src/main/java/org/eclipse/jface/viewers/IStructuredContentProvider.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface/src/main/java/org/eclipse/jface/viewers/IStructuredSelection.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface/src/main/java/org/eclipse/jface/viewers/ITreeContentProvider.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface/src/main/java/org/eclipse/jface/viewers/StyledCellLabelProvider.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface/src/main/java/org/eclipse/jface/viewers/StyledString.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface/src/main/java/org/eclipse/swt/SWT.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface/src/main/java/org/eclipse/swt/graphics/Image.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jface/src/main/java/org/eclipse/swt/graphics/Point.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/pom.xml delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/che/ltk/core/refactoring/CheRefactoringContributions.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/che/ltk/core/refactoring/participants/CheRefactoringParticipantsRegistry.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/CategorizedTextEditGroup.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/Change.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/ChangeDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/CheckConditionsOperation.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/CompositeChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/ContentStamp.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/CreateChangeOperation.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/DocumentChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/FileStatusContext.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/GroupCategory.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/GroupCategorySet.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/IRefactoringCoreStatusCodes.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/IRefactoringStatusEntryComparator.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/IResourceMapper.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/IUndoManager.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/IUndoManagerListener.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/IValidationCheckResultQuery.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/IValidationCheckResultQueryFactory.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/MultiStateTextFileChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/NullChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/PerformChangeOperation.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/PerformRefactoringHistoryOperation.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/PerformRefactoringOperation.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/Refactoring.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/RefactoringChangeDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/RefactoringContext.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/RefactoringContribution.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/RefactoringCore.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/RefactoringDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/RefactoringDescriptorProxy.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/RefactoringSessionDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/RefactoringStatus.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/RefactoringStatusContext.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/RefactoringStatusEntry.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/RefactoringTickProvider.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/TextChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/TextEditBasedChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/TextEditBasedChangeGroup.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/TextEditChangeGroup.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/TextFileChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/UndoManagerAdapter.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/UndoTextFileChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/history/IRefactoringExecutionListener.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/history/IRefactoringHistoryListener.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/history/IRefactoringHistoryService.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/history/RefactoringExecutionEvent.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/history/RefactoringHistory.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/history/RefactoringHistoryEvent.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/history/package.html delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/model/AbstractRefactoringDescriptorResourceMapping.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/model/AbstractRefactoringHistoryResourceMapping.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/model/package.html delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/package.html delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/participants/CheckConditionsContext.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/participants/CopyArguments.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/participants/CopyParticipant.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/participants/CopyProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/participants/CopyRefactoring.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/participants/CreateArguments.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/participants/CreateParticipant.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/participants/DeleteArguments.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/participants/DeleteParticipant.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/participants/DeleteProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/participants/DeleteRefactoring.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/participants/IConditionChecker.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/participants/IParticipantDescriptorFilter.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/participants/ISharableParticipant.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/participants/MoveArguments.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/participants/MoveParticipant.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/participants/MoveProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/participants/MoveRefactoring.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/participants/ParticipantExtensionPoint.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/participants/ParticipantManager.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/participants/ProcessorBasedRefactoring.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/participants/RefactoringArguments.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/participants/RefactoringParticipant.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/participants/RefactoringProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/participants/RenameArguments.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/participants/RenameParticipant.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/participants/RenameProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/participants/RenameRefactoring.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/participants/ReorgExecutionLog.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/participants/ResourceChangeChecker.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/participants/SharableParticipants.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/participants/ValidateEditChecker.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/participants/package.html delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/resource/DeleteResourceChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/resource/DeleteResourcesDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/resource/MoveResourceChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/resource/MoveResourcesDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/resource/RenameResourceChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/resource/RenameResourceDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/resource/ResourceChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/resource/package.html delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/BasicElementLabels.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/BufferValidationState.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/Changes.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/ContentStamps.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/IRefactoringSerializationConstants.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/Lock.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/Messages.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/MultiStateUndoChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/NonDeletingPositionUpdater.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/NotCancelableProgressMonitor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/ParticipantDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/RefactoringCoreMessages.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/RefactoringCorePlugin.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/RefactoringPreferenceConstants.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/RefactoringSessionReader.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/RefactoringSessionTransformer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/RefactoringUndoContext.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/Resources.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/TextChanges.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/UndoDocumentChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/UndoManager2.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/UndoableOperation2ChangeAdapter.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/history/DefaultRefactoringDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/history/DefaultRefactoringDescriptorProxy.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/history/IRefactoringDescriptorDeleteQuery.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/history/RefactoringContributionManager.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/history/RefactoringDescriptorChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/history/RefactoringDescriptorProxyAdapter.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/history/RefactoringHistoryImplementation.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/history/RefactoringHistoryManager.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/history/RefactoringHistorySerializer.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/history/RefactoringHistoryService.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/history/UnknownRefactoringDescriptor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/resource/DeleteResourcesProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/resource/DeleteResourcesRefactoringContribution.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/resource/MoveResourcesProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/resource/MoveResourcesRefactoringContribution.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/resource/RenameResourceProcessor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/resource/RenameResourceRefactoringContribution.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/resource/ResourceModifications.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/resource/ResourceProcessors.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/resource/UndoDeleteResourceChange.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/resource/undostates/AbstractResourceUndoState.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/resource/undostates/ContainerUndoState.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/resource/undostates/FileUndoState.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/resource/undostates/FolderUndoState.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/resource/undostates/IFileContentDescription.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/resource/undostates/MarkerUndoState.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/resource/undostates/ProjectUndoState.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/internal/core/refactoring/resource/undostates/ResourceUndoState.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/resources/org/eclipse/ltk/internal/core/refactoring/RefactoringCoreMessages.properties delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-search/pom.xml delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-search/src/main/java/org/eclipse/search/InternalSearchUI.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-search/src/main/java/org/eclipse/search/NewSearchUI.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-search/src/main/java/org/eclipse/search/QueryManager.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-search/src/main/java/org/eclipse/search/core/text/TextSearchEngine.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-search/src/main/java/org/eclipse/search/core/text/TextSearchMatchAccess.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-search/src/main/java/org/eclipse/search/core/text/TextSearchRequestor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-search/src/main/java/org/eclipse/search/core/text/TextSearchScope.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-search/src/main/java/org/eclipse/search/internal/core/text/DocumentCharSequence.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-search/src/main/java/org/eclipse/search/internal/core/text/FileCharSequenceProvider.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-search/src/main/java/org/eclipse/search/internal/core/text/FileNamePatternSearchScope.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-search/src/main/java/org/eclipse/search/internal/core/text/FilesOfScopeCalculator.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-search/src/main/java/org/eclipse/search/internal/core/text/Messages.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-search/src/main/java/org/eclipse/search/internal/core/text/PatternConstructor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-search/src/main/java/org/eclipse/search/internal/core/text/TextSearchVisitor.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-search/src/main/java/org/eclipse/search/internal/ui/NewSearchUI.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-search/src/main/java/org/eclipse/search/internal/ui/SearchMessages.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-search/src/main/java/org/eclipse/search/internal/ui/SearchPlugin.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-search/src/main/java/org/eclipse/search/ui/IQueryListener.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-search/src/main/java/org/eclipse/search/ui/ISearchQuery.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-search/src/main/java/org/eclipse/search/ui/ISearchResult.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-search/src/main/java/org/eclipse/search/ui/ISearchResultListener.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-search/src/main/java/org/eclipse/search/ui/SearchResultEvent.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-search/src/main/java/org/eclipse/search/ui/text/AbstractTextSearchResult.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-search/src/main/java/org/eclipse/search/ui/text/FilterUpdateEvent.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-search/src/main/java/org/eclipse/search/ui/text/IEditorMatchAdapter.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-search/src/main/java/org/eclipse/search/ui/text/IFileMatchAdapter.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-search/src/main/java/org/eclipse/search/ui/text/Match.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-search/src/main/java/org/eclipse/search/ui/text/MatchEvent.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-search/src/main/java/org/eclipse/search/ui/text/MatchFilter.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-search/src/main/java/org/eclipse/search/ui/text/RemoveAllEvent.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ui-ide/pom.xml delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ui-ide/src/main/java/org/eclipse/ui/IWorkingSet.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ui-ide/src/main/java/org/eclipse/ui/PlatformUI.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ui-ide/src/main/java/org/eclipse/ui/actions/WorkspaceModifyOperation.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ui-ide/src/main/java/org/eclipse/ui/dialogs/ContainerGenerator.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ui-ide/src/main/java/org/eclipse/ui/dialogs/IOverwriteQuery.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ui-ide/src/main/java/org/eclipse/ui/ide/dialogs/UIResourceFilterDescription.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ui-ide/src/main/java/org/eclipse/ui/ide/undo/ResourceDescription.java delete mode 100755 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ui-ide/src/main/java/org/eclipse/ui/internal/ide/undo/AbstractResourceDescription.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ui-ide/src/main/java/org/eclipse/ui/internal/ide/undo/ContainerDescription.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ui-ide/src/main/java/org/eclipse/ui/internal/ide/undo/FileDescription.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ui-ide/src/main/java/org/eclipse/ui/internal/ide/undo/FolderDescription.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ui-ide/src/main/java/org/eclipse/ui/internal/ide/undo/IFileContentDescription.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ui-ide/src/main/java/org/eclipse/ui/internal/ide/undo/MarkerDescription.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ui-ide/src/main/java/org/eclipse/ui/internal/ide/undo/ProjectDescription.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ui-ide/src/main/java/org/eclipse/ui/internal/ide/undo/UndoMessages.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ui-ide/src/main/java/org/eclipse/ui/wizards/datatransfer/IImportStructureProvider.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ui-ide/src/main/java/org/eclipse/ui/wizards/datatransfer/ImportOperation.java delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ui-ide/src/main/resources/org/eclipse/ui/internal/ide/undo/messages.properties delete mode 100644 plugins/plugin-java/che-plugin-java-ext-jdt/pom.xml diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/pom.xml b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/pom.xml deleted file mode 100644 index ae7471797c79..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/pom.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - - 4.0.0 - - che-plugin-java-ext-jdt-parent - org.eclipse.che.plugin - 6.13.0-SNAPSHOT - - org.eclipse.core.filebuffers - jar - Che Plugin :: Java :: org.eclipse.core.filebuffers - - - com.google.inject - guice - - - org.eclipse.birt.runtime - org.eclipse.core.jobs - - - org.eclipse.birt.runtime - org.eclipse.core.runtime - - - org.eclipse.birt.runtime - org.eclipse.equinox.common - - - org.eclipse.che.plugin - org.eclipse.core.filesystem - - - org.eclipse.che.plugin - org.eclipse.core.resources - - - org.eclipse.core - contenttype - - - org.eclipse.equinox - registry - - - org.eclipse.text - org.eclipse.text - - - org.eclipse.tycho - org.eclipse.osgi - - - org.slf4j - slf4j-api - - - - - - com.mycila - license-maven-plugin - - - **/*.png - **/*.gif - **/*.rscjson - **/*.zip - **/*.txt - **/*.jpg - **/*.rsc - **/*.json - **/org/eclipse/core/** - - - - - - diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/FileBuffers.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/FileBuffers.java deleted file mode 100644 index 93f672d87ee5..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/FileBuffers.java +++ /dev/null @@ -1,194 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2000, - * 2010 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.filebuffers; - -import org.eclipse.core.internal.filebuffers.FileBuffersPlugin; -import org.eclipse.core.resources.IFile; -import org.eclipse.core.resources.IWorkspaceRoot; -import org.eclipse.core.resources.ResourcesPlugin; -import org.eclipse.core.runtime.IPath; - -/** - * Facade for the file buffers plug-in. Provides access to the text file buffer manager and helper - * methods for location handling. This facade is available independent from the activation status of - * the file buffers plug-in. - * - *

This class must not be used by clients that do not want to require - * org.eclipse.core.resources. Use ITextFileBufferManager.DEFAULT to get the - * default text file buffer manager. - * - * @since 3.0 - * @noinstantiate This class is not intended to be instantiated by clients. - */ -public final class FileBuffers { - - /** - * The workspace root. - * - * @since 3.3 - */ - private static final IWorkspaceRoot WORKSPACE_ROOT = ResourcesPlugin.getWorkspace().getRoot(); - - /** Cannot be instantiated. */ - private FileBuffers() {} - - /** - * File buffer plug-in ID (value "org.eclipse.core.filebuffers"). - * - * @since 3.3. - */ - public static final String PLUGIN_ID = - "org.eclipse.core.filebuffers"; // FileBuffersPlugin.PLUGIN_ID; - - /** - * Returns the text file buffer manager. May return null if the file buffers plug-in - * is not active. This is, for example, the case when the method is called on plug-in shutdown. - * - *

Use ITextFileBufferManager.DEFAULT to get the default text file buffer manager - * if you do not want to depend on org.eclipse.core.resources. - * - * @return the text file buffer manager or null - */ - public static ITextFileBufferManager getTextFileBufferManager() { - FileBuffersPlugin plugin = FileBuffersPlugin.getDefault(); - return plugin != null ? plugin.getFileBufferManager() : null; - } - - // /** - // * Creates and returns an unshared text file buffer manager. - // * - // * @return the text file buffer manager or null - // * @since 3.4 - // */ - // public static ITextFileBufferManager createTextFileBufferManager() { - // Bundle resourcesBundle= Platform.getBundle("org.eclipse.core.resources"); //$NON-NLS-1$ - // if (resourcesBundle != null) - // return new ResourceTextFileBufferManager(); - // return new TextFileBufferManager(); - // } - - /** - * Returns the workspace file at the given location if such a file exists. - * - * @param location the location - * @return the workspace file at the location or null if no such file exists or if - * the location is not a valid location - */ - public static IFile getWorkspaceFileAtLocation(IPath location) { - return getWorkspaceFileAtLocation(location, false); - } - - /** - * Returns the workspace file at the given location if such a file exists. - * - * @param location the location - * @param isNormalized true if the given location is already normalized - * @return the workspace file at the location or null if no such file exists or if - * the location is not a valid location - * @since 3.3 - */ - public static IFile getWorkspaceFileAtLocation(IPath location, boolean isNormalized) { - IPath normalized; - if (isNormalized) normalized = location; - else normalized = normalizeLocation(location); - - if (normalized.segmentCount() >= 2) { - // @see IContainer#getFile for the required number of segments - IFile file = WORKSPACE_ROOT.getFile(normalized); - if (file != null && file.exists()) return file; - } - return null; - } - - /** - * Returns the normalized form of the given path or location. - * - *

The normalized form is defined as follows: - * - *

- * - * @param pathOrLocation the path or location to be normalized - * @return the normalized form of pathOrLocation - */ - public static IPath normalizeLocation(IPath pathOrLocation) { - // existing workspace resources - this is the 93% case - if (WORKSPACE_ROOT.exists(pathOrLocation)) return pathOrLocation.makeAbsolute(); - - IFile file = WORKSPACE_ROOT.getFileForLocation(pathOrLocation); - // existing workspace resources referenced by their file system path - // files that do not exist (including non-accessible files) do not pass - if (file != null && file.exists()) return file.getFullPath(); - - // non-existing resources and external files - return pathOrLocation.makeAbsolute(); - } - // - // /** - // * Returns the file in the local file system for the given location. - // *

- // * The location is either a full path of a workspace resource or an - // * absolute path in the local file system. - // *

- // * - // * @param location the location - // * @return the {@link IFileStore} in the local file system for the given location - // * @since 3.2 - // */ - // public static IFileStore getFileStoreAtLocation(IPath location) { - // if (location == null) - // return null; - // - // IFile file= getWorkspaceFileAtLocation(location); - // try { - // if (file != null) { - // URI uri= file.getLocationURI(); - // if (uri == null) - // return null; - // return EFS.getStore(uri); - // } - // } catch (CoreException e) { - // //fall through and assume it is a local file - // } - // return EFS.getLocalFileSystem().getStore(location); - // } - - // /** - // * Returns the file in the local file system for the given location. - // *

- // * The location is either a full path of a workspace resource or an - // * absolute path in the local file system. - // *

- // * - // * @param location the location - // * @return the {@link File} in the local file system for the given location - // * @deprecated As of 3.2, replaced by {@link #getFileStoreAtLocation(IPath)} - // */ - // public static File getSystemFileAtLocation(IPath location) { - // IFileStore store= getFileStoreAtLocation(location); - // if (store != null) { - // try { - // return store.toLocalFile(EFS.NONE, null); - // } catch (CoreException e) { - // return null; - // } - // } - // return null; - // } - -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/IDocumentFactory.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/IDocumentFactory.java deleted file mode 100644 index 3a9d388406bd..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/IDocumentFactory.java +++ /dev/null @@ -1,33 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2000, - * 2008 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.filebuffers; - -import org.eclipse.jface.text.IDocument; - -/** - * Factory for text file buffer documents. Used by the text file buffer manager to create the - * document for a new text file buffer. - * - *

This interface is the expected interface of extensions provided for the - * "org.eclipse.core.filebuffers.documentCreation" extension point. - * - * @since 3.0 - * @deprecated As of 3.2 the "org.eclipse.core.filebuffers.documentCreation" extension - * point has been deprecated. See the extension point documentation for more details. - */ -public interface IDocumentFactory { - - /** - * Creates and returns a new, empty document. - * - * @return a new, empty document - */ - IDocument createDocument(); -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/IDocumentSetupParticipant.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/IDocumentSetupParticipant.java deleted file mode 100644 index 7f4826916605..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/IDocumentSetupParticipant.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2000, - * 2008 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.filebuffers; - -import org.eclipse.jface.text.IDocument; - -/** - * Participates in the setup of a text file buffer document. - * - *

This interface is the expected interface for extensions provided for the - * "org.eclipse.core.filebuffers.documentSetup" extension point. - * - *

Participants have to be aware of the existence of other participants. I.e. they should always - * setup a document in a way that does not interfere with others. E.g., when a participant wants to - * install partitioning on the document, it must use the {@link - * org.eclipse.jface.text.IDocumentExtension3} API and choose a unique partitioning id. - * - *

In order to provide backward compatibility for clients of IDocumentSetupParticipant - * , extension interfaces are used to provide a means of evolution. The following extension - * interfaces exist: - * - *

- * - * @since 3.0 - * @see org.eclipse.jface.text.IDocumentExtension3 - * @see org.eclipse.core.filebuffers.IDocumentSetupParticipantExtension - */ -public interface IDocumentSetupParticipant { - - /** - * Sets up the document to be ready for use by a text file buffer. - * - * @param document the document to be set up - */ - void setup(IDocument document); -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/IDocumentSetupParticipantExtension.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/IDocumentSetupParticipantExtension.java deleted file mode 100644 index 322cb5c8a0e6..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/IDocumentSetupParticipantExtension.java +++ /dev/null @@ -1,40 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2008 - * Symbian Software Systems, IBM Corporation and others. All rights reserved. This program and the - * accompanying materials are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: Andrew Ferguson (Symbian) - Initial implementation - [api] enable document setup - * participants to customize behaviour based on resource being opened - - * https://bugs.eclipse.org/bugs/show_bug.cgi?id=208881 - * ***************************************************************************** - */ -package org.eclipse.core.filebuffers; - -import org.eclipse.core.runtime.IPath; -import org.eclipse.jface.text.IDocument; - -/** - * Extension interface for {@link org.eclipse.core.filebuffers.IDocumentSetupParticipant}. - * - *

This interface is additionally implemented by {@link IDocumentSetupParticipant}'s which would - * like to alter their behavior based on the location of the file being opened. - * - *

Note that when participants implement this interface, the original method from {@link - * IDocumentSetupParticipant} will never be called. - * - * @see org.eclipse.core.filebuffers.IDocumentSetupParticipant - * @since 3.4 - */ -public interface IDocumentSetupParticipantExtension { - - /** - * Sets up the document to be ready for use by a text file buffer. - * - * @param document the document to be set up - * @param location a path of the resource backing the new document - * @param locationKind the kind of the given location - */ - void setup(IDocument document, IPath location, LocationKind locationKind); -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/IFileBuffer.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/IFileBuffer.java deleted file mode 100644 index 20ca6d31bc0c..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/IFileBuffer.java +++ /dev/null @@ -1,223 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2000, - * 2011 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.filebuffers; - -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.content.IContentType; -import org.eclipse.core.runtime.jobs.ISchedulingRule; -import org.eclipse.jface.text.IDocumentExtension4; - -/** - * A file buffer represents a file that can be edited by more than one client. Editing is session - * oriented. This means that editing is a sequence of modification steps. The start of the sequence - * and the end of the sequence are explicitly indicated. There are no time constraints connected - * with the sequence of modification steps. A file buffer reifies editing sessions and allows them - * to interleave. - * - *

It is not specified whether simultaneous editing sessions can be owned by different threads. - * - *

Clients are not supposed to implement that interface. Instances of this type are obtained from - * a {@link org.eclipse.core.filebuffers.IFileBufferManager}. - * - * @since 3.0 - * @noimplement This interface is not intended to be implemented by clients. - * @noextend This interface is not intended to be extended by clients. - */ -public interface IFileBuffer { - - /** - * Returns the location of this file buffer. - * - *

The location is either a full path of a workspace resource or an absolute path in the local - * file system. - * - *

Note: Since 3.3 this method can also return null if the file - * is not on the local file system. - * - * @return the location of this file buffer or null if the file is not on the local - * file system - */ - IPath getLocation(); - - // /** - // * Returns the file store of this file buffer. - // * - // * @return the file store of this file buffer - // * @since 3.3 - // */ - // IFileStore getFileStore(); - - /** - * Returns whether this file buffer is shared by more than one client. - * - * @return true if this file buffer is shared by more than one client - */ - boolean isShared(); - - /** - * Returns whether this file buffer is synchronized with the file system. This is when the file - * buffer's underlying file is in synchronization with the file system and the file buffer has - * been initialized after the underlying files has been modified the last time. - * - * @return true if the file buffer is synchronized with the file system - */ - boolean isSynchronized(); - - /** - * Returns the modification stamp of the file underlying this file buffer. - * - *

{@link IDocumentExtension4#UNKNOWN_MODIFICATION_STAMP} is returned if the buffer cannot get - * the modification stamp from the underlying file. - * - *

Note: The value of the modification stamp returned for non-existing files - * can differ depending on the underlying file system. - * - * @return the modification stamp of the file underlying this file buffer - */ - long getModificationStamp(); - - /** - * Returns whether this file buffer is commitable. This is the case when the file buffer's state - * has been successfully validated. - * - * @return true if the file buffer is commitable, false otherwise - * @since 3.1 - */ - boolean isCommitable(); - - /** - * Computes the scheduling rule that is required for committing a changed buffer. - * - * @return the commit scheduling rule or null - * @since 3.1 - */ - ISchedulingRule computeCommitRule(); - - /** - * Commits this file buffer by changing the contents of the underlying file to the contents of - * this file buffer. After that call, isDirty returns false and - * isSynchronized returns true. - * - * @param monitor the progress monitor, or null if progress reporting is not desired - * @param overwrite indicates whether the underlying file should be overwritten if it is not - * synchronized with the file system - * @throws CoreException if writing or accessing the underlying file fails - */ - void commit(IProgressMonitor monitor, boolean overwrite) throws CoreException; - - /** - * Reverts the contents of this file buffer to the content of its underlying file. After that call - * successfully returned, isDirty returns false and isSynchronized - * returns true. - * - * @param monitor the progress monitor, or null if progress reporting is not desired - * @throws CoreException if reading or accessing the underlying file fails - */ - void revert(IProgressMonitor monitor) throws CoreException; - - /** - * Returns whether changes have been applied to this file buffer since initialization, or the most - * recent revert or commit call. - * - * @return true if changes have been applied to this buffer - */ - boolean isDirty(); - - /** - * Sets the dirty state of the file buffer to the given value. A direct subsequent call to - * isDirty returns the previously set value. - * - * @param isDirty true if the buffer should be marked dirty, false - * otherwise - * @since 3.1 - */ - void setDirty(boolean isDirty); - - /** - * Computes the scheduling rule that is required for validating the state of the buffer. - * - * @return the validate state scheduling rule or null - * @since 3.1 - */ - ISchedulingRule computeValidateStateRule(); - - /** - * Validates the state of this file buffer and tries to bring the buffer's underlying file into a - * state in which it can be modified. If state validation is not supported this operation does - * nothing. - * - * @param monitor the progress monitor, or null if progress reporting is not desired - * @param computationContext the context in which the validation is performed, e.g., a SWT shell - * @exception CoreException if the underlying file can not be accessed or its state cannot be - * changed - */ - void validateState(IProgressMonitor monitor, Object computationContext) throws CoreException; - - /** - * Returns whether the state of this file buffer has been validated. If state validation is not - * supported this method always returns true. - * - * @return true if the state has been validated, false otherwise - */ - boolean isStateValidated(); - - /** - * Resets state validation. If state validation is supported, isStateValidated - * afterwards returns false until the state is revalidated. - */ - void resetStateValidation(); - - /** - * Returns the status of this file buffer. This is the result of the last operation performed on - * this file buffer or internally initiated by this file buffer. - * - * @return the status of this file buffer - */ - IStatus getStatus(); - - /** - * The caller requests that the synchronization context is used to synchronize this file buffer - * with its underlying file. - * - * @since 3.1 - */ - void requestSynchronizationContext(); - - /** - * The caller no longer requests the synchronization context for this file buffer. - * - * @since 3.1 - */ - void releaseSynchronizationContext(); - - /** - * Returns whether a synchronization context has been requested for this file buffer and not yet - * released. - * - * @return true if a synchronization context is requested, false - * otherwise - * @since 3.1 - */ - boolean isSynchronizationContextRequested(); - - /** - * Returns the content type of this file buffer or null if none could be determined. - * If the file buffer is dirty, the returned content type is determined by the buffer's dirty - * state. - * - * @return the content type or null - * @throws CoreException if reading or accessing the underlying file fails - * @since 3.1 - */ - IContentType getContentType() throws CoreException; -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/IFileBufferListener.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/IFileBufferListener.java deleted file mode 100644 index f7e9d869887d..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/IFileBufferListener.java +++ /dev/null @@ -1,99 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2000, - * 2010 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.filebuffers; - -import org.eclipse.core.runtime.IPath; - -/** - * Interface for listeners to file buffer changes. - * - * @since 3.0 - */ -public interface IFileBufferListener { - - /** - * Informs the listener about the creation of the given buffer. - * - * @param buffer the created file buffer - */ - void bufferCreated(IFileBuffer buffer); - - /** - * Informs the listener that the given buffer has been disposed. All state information has already - * been disposed and accessing it is forbidden. However, accessing the file buffer's content is - * still allowed during the notification. - * - * @param buffer the disposed file buffer - */ - void bufferDisposed(IFileBuffer buffer); - - /** - * Informs the listener about an upcoming replace of the contents of the given buffer. - * - * @param buffer the affected file buffer - */ - void bufferContentAboutToBeReplaced(IFileBuffer buffer); - - /** - * Informs the listener that the buffer of the given buffer has been replaced. - * - * @param buffer the affected file buffer - */ - void bufferContentReplaced(IFileBuffer buffer); - - /** - * Informs the listener about the start of a state changing operation on the given buffer. - * - * @param buffer the affected file buffer - */ - void stateChanging(IFileBuffer buffer); - - /** - * Informs the listener that the dirty state of the given buffer changed to the specified value - * - * @param buffer the affected file buffer - * @param isDirty true if the buffer is dirty, false otherwise - */ - void dirtyStateChanged(IFileBuffer buffer, boolean isDirty); - - /** - * Informs the listener that the state validation changed to the specified value. - * - * @param buffer the affected file buffer - * @param isStateValidated true if the buffer state is validated, false - * otherwise - */ - void stateValidationChanged(IFileBuffer buffer, boolean isStateValidated); - - /** - * Informs the listener that the file underlying the given file buffer has been moved to the given - * location. - * - *

This event is currently only sent if the file buffer is backed by an IFile. - * - * @param buffer the affected file buffer - * @param path the new location (not just the container) - */ - void underlyingFileMoved(IFileBuffer buffer, IPath path); - - /** - * Informs the listener that the file underlying the given file buffer has been deleted. - * - * @param buffer the affected file buffer - */ - void underlyingFileDeleted(IFileBuffer buffer); - - /** - * Informs the listener that a state changing operation on the given file buffer failed. - * - * @param buffer the affected file buffer - */ - void stateChangeFailed(IFileBuffer buffer); -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/IFileBufferManager.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/IFileBufferManager.java deleted file mode 100644 index 4fe99f5b5e5d..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/IFileBufferManager.java +++ /dev/null @@ -1,293 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2000, - * 2011 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.filebuffers; - -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IProgressMonitor; - -/** - * A file buffer manager manages file buffers for files while the files are connected to the file - * buffer manager. In order to connect a file to a file buffer manager call connect. - * After that call has successfully completed the file buffer can be obtained by getFileBuffer - * . The file buffer is created on the first connect and disposed on the last disconnect. - * I.e. the file buffer manager keeps track of how often a file is connected and returns the same - * file buffer to each client as long as the file is connected. - * - *

Clients are not supposed to implement that interface. - * - * @since 3.0 - * @noimplement This interface is not intended to be implemented by clients. - * @noextend This interface is not intended to be extended by clients. - */ -public interface IFileBufferManager { - - /** - * Connects the file at the given location to this manager. After that call successfully completed - * it is guaranteed that each call to getFileBuffer returns the same file buffer - * until disconnect is called. - * - *

The provided location is either a full path of a workspace resource or an absolute path in - * the local file system. The file buffer manager does not resolve the location of workspace - * resources in the case of linked resources. - * - * @param location the location of the file to be connected - * @param monitor the progress monitor, or null if progress reporting is not desired - * @throws CoreException if the file could not successfully be connected - * @deprecated As of 3.3, replaced by {@link #connect(IPath, LocationKind, IProgressMonitor)} - */ - void connect(IPath location, IProgressMonitor monitor) throws CoreException; - - /** - * Connects the file at the given location to this manager. After that call successfully completed - * it is guaranteed that each call to getFileBuffer returns the same file buffer - * until disconnect is called. - * - *

The type of the provided location is specified by the given locationKind. - * - * @param location the location of the file to be connected - * @param locationKind the kind of the given location - * @param monitor the progress monitor, or null if progress reporting is not desired - * @throws CoreException if the file could not successfully be connected - * @see LocationKind - * @since 3.3 - */ - void connect(IPath location, LocationKind locationKind, IProgressMonitor monitor) - throws CoreException; - - // /** - // * Connects the given file store to this manager. After that call - // * successfully completed it is guaranteed that each call to getFileBuffer - // * returns the same file buffer until disconnect is called. - // *

- // * Note: This API must not be used if the given file - // * store maps to a resource contained in the workspace. A file buffer - // * that has been connected using a path will not be found. - // *

- // *

- // * We had to use a different name than connect for this method - // * due to https://bugs.eclipse.org/bugs/show_bug.cgi?id=148844 - // *

- // * - // * @param fileStore the file store to be connected - // * @param monitor the progress monitor, or null if progress reporting is not - // desired - // * @throws CoreException if the file could not successfully be connected - // * @since 3.3 - // */ - // void connectFileStore(IFileStore fileStore, IProgressMonitor monitor) throws CoreException; - - /** - * Disconnects the file at the given location from this manager. After that call successfully - * completed there is no guarantee that getFileBuffer will return a valid file - * buffer. - * - *

The provided location is either a full path of a workspace resource or an absolute path in - * the local file system. The file buffer manager does not resolve the location of workspace - * resources in the case of linked resources. - * - * @param location the location of the file to be disconnected - * @param monitor the progress monitor, or null if progress reporting is not desired - * @throws CoreException if the file could not successfully be disconnected - * @deprecated As of 3.3, replaced by {@link #disconnect(IPath, LocationKind, IProgressMonitor)} - */ - void disconnect(IPath location, IProgressMonitor monitor) throws CoreException; - - /** - * Disconnects the file at the given location from this manager. After that call successfully - * completed there is no guarantee that getFileBuffer will return a valid file - * buffer. - * - *

The type of the provided location is specified by the given locationKind. - * - * @param location the location of the file to be disconnected - * @param locationKind the kind of the given location - * @param monitor the progress monitor, or null if progress reporting is not desired - * @throws CoreException if the file could not successfully be disconnected - * @see LocationKind - * @since 3.3 - */ - void disconnect(IPath location, LocationKind locationKind, IProgressMonitor monitor) - throws CoreException; - - // /** - // * Disconnects the given file store from this manager. After that - // * call successfully completed there is no guarantee that getFileBuffer - // * will return a valid file buffer. - // *

- // * Note: This API must not be used if the given file - // * store maps to a resource contained in the workspace. A file buffer - // * that has been connected using a path will not be found. - // *

- // *

- // * We had to use a different name than disconnect for this method - // * due to https://bugs.eclipse.org/bugs/show_bug.cgi?id=148844 - // *

- // * - // * @param fileStore the file store to be disconnected - // * @param monitor the progress monitor, or null if progress reporting is not - // desired - // * @throws CoreException if the file could not successfully be disconnected - // * @since 3.3 - // */ - // void disconnectFileStore(IFileStore fileStore, IProgressMonitor monitor) throws CoreException; - - /** - * Returns the file buffer managed for the given location or null if there is no such - * file buffer. - * - *

The provided location is either a full path of a workspace resource or an absolute path in - * the local file system. The file buffer manager does not resolve the location of workspace - * resources in the case of linked resources. - * - * @param location the location - * @return the file buffer managed for that location or null - * @deprecated As of 3.3, replaced by {@link #getFileBuffer(IPath, LocationKind)} - */ - IFileBuffer getFileBuffer(IPath location); - - /** - * Returns the file buffer managed for the given location or null if there is no such - * file buffer. - * - *

The type of the provided location is specified by the given locationKind. - * - * @param location the location - * @param locationKind the kind of the given location - * @return the file buffer managed for that location or null - * @see LocationKind - * @since 3.3 - */ - IFileBuffer getFileBuffer(IPath location, LocationKind locationKind); - - // /** - // * Returns the file buffer managed for the given file store or - // * null if there is no such file buffer. - // *

- // * Note: This API must not be used if the given file - // * store maps to a resource contained in the workspace. A file buffer - // * that has been connected using a path will not be found. - // *

- // *

- // * We had to use a different name than getFileBuffer for this method - // * due to https://bugs.eclipse.org/bugs/show_bug.cgi?id=148844 - // *

- // * - // * @param fileStore the file store - // * @return the file buffer managed for that file store or null - // * @since 3.3 - // */ - // IFileBuffer getFileStoreFileBuffer(IFileStore fileStore); - - /** - * Returns all managed file buffers that are currently connected. - * - *

Note: It is the clients responsibility to handle disconnected file buffers - * as buffers can be disconnected after calling this method. - * - * @return the file buffers managed by this file buffer manager - * @see #getFileStoreFileBuffers() - * @since 3.4 - */ - IFileBuffer[] getFileBuffers(); - - /** - * Returns all managed file store file buffers that are currently connected. - * - *

Note: It is the clients responsibility to handle disconnected file buffers - * as buffers can be disconnected after calling this method. - * - * @return the file buffers managed by this file buffer manager - * @see #getFileBuffers() - * @since 3.4 - */ - IFileBuffer[] getFileStoreFileBuffers(); - - /** - * Sets the synchronization context for this file buffer manager, i.e., for all file buffers this - * manager manages. - * - * @param context the synchronization context managed by this file buffer manager - */ - void setSynchronizationContext(ISynchronizationContext context); - - /** - * Executes the given runnable in the synchronization context of this file buffer manager. If - * there is no synchronization context connected with this manager, the runnable is directly - * executed. - * - * @param runnable the runnable to be executed - * @since 3.5 - */ - public void execute(Runnable runnable); - - /** - * The caller requests that the synchronization context is used to synchronize the given location - * with its file buffer. This call as no effect if there is no file buffer managed for the given - * location. - * - *

The provided location is either a full path of a workspace resource or an absolute path in - * the local file system. The file buffer manager does not resolve the location of workspace - * resources in the case of linked resources. - * - * @param location the location - * @deprecated As of 3.1, replaced by {@link - * org.eclipse.core.filebuffers.IFileBuffer#requestSynchronizationContext()} - */ - void requestSynchronizationContext(IPath location); - - /** - * The caller no longer requests the synchronization context for the file buffer managed for the - * given location. This method has no effect if there is no file buffer managed for this location. - * - *

The provided location is either a full path of a workspace resource or an absolute path in - * the local file system. The file buffer manager does not resolve the location of workspace - * resources in the case of linked resources. - * - * @param location the location - * @deprecated As of 3.1, replaced by {@link IFileBuffer#releaseSynchronizationContext()} - */ - void releaseSynchronizationContext(IPath location); - - /** - * Adds the given listener to the list of file buffer listeners. After that call the listener is - * informed about changes related to this file buffer manager. If the listener is already - * registered with the file buffer, this call has no effect. - * - * @param listener the listener to be added - */ - void addFileBufferListener(IFileBufferListener listener); - - /** - * Removes the given listener from the list of file buffer listeners. If the listener is not - * registered with this file buffer, this call has no effect. - * - * @param listener the listener to be removed - */ - void removeFileBufferListener(IFileBufferListener listener); - - /** - * Validates the state of the given file buffers and tries to bring the buffer's underlying file - * into a state in which it can be modified. File buffers which do not support state validation - * are left untouched. - * - *

In case of a single file buffer, {@link IFileBuffer#validateState(IProgressMonitor, Object)} - * should be used. - * - * @param fileBuffers the file buffers to validate - * @param monitor the progress monitor, or null if progress reporting is not desired - * @param computationContext the context in which the validation is performed, e.g., a SWT shell - * @exception CoreException if the underlying file can not be accessed or its state cannot be - * changed - * @since 3.1 - */ - void validateState(IFileBuffer[] fileBuffers, IProgressMonitor monitor, Object computationContext) - throws CoreException; -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/IFileBufferStatusCodes.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/IFileBufferStatusCodes.java deleted file mode 100644 index 3175f52c4b29..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/IFileBufferStatusCodes.java +++ /dev/null @@ -1,62 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2000, - * 2008 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.filebuffers; - -import java.nio.charset.UnmappableCharacterException; - -/** - * This interface provides the list of status codes that are used by the file buffer plug-in when it - * throws {@link org.eclipse.core.runtime.CoreException}. - * - *

Clients are not supposed to implement that interface. - * - * @since 3.1 - * @noimplement This interface is not intended to be implemented by clients. - * @noextend This interface is not intended to be extended by clients. - */ -public interface IFileBufferStatusCodes { - - /** Changing the content of a file buffer failed. */ - int CONTENT_CHANGE_FAILED = 1; - - /** Creation of file buffer failed. */ - int CREATION_FAILED = 2; - - /** - * File buffer status code indicating that an operation failed because a character could not be - * mapped using the given charset. - * - *

Value: {@value} - * - * @see UnmappableCharacterException - * @since 3.2 - */ - int CHARSET_MAPPING_FAILED = 3; - - /** - * File buffer status code indicating that state validation failed. - * - *

Value: {@value} - * - * @see IFileBuffer#validateState(org.eclipse.core.runtime.IProgressMonitor, Object) - * @since 3.3 - */ - int STATE_VALIDATION_FAILED = 4; - - /** - * File buffer status code indicating that a resource is marked derived. - * - *

Value: {@value} - * - * @see org.eclipse.core.resources.IResource#isDerived() - * @since 3.3 - */ - int DERIVED_FILE = 5; -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/IStateValidationSupport.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/IStateValidationSupport.java deleted file mode 100644 index 915cc3e2e21e..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/IStateValidationSupport.java +++ /dev/null @@ -1,48 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2000, - * 2005 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.filebuffers; - -import org.eclipse.core.runtime.IStatus; - -/** - * Implementers of {@link org.eclipse.core.filebuffers.IFileBuffer} may also implement - * IStateValidationSupport in order to allow a {@link - * org.eclipse.core.filebuffers.IFileBufferManager} to batch the stages of state validation when - * calling {@link org.eclipse.core.filebuffers.IFileBufferManager#validateState(IFileBuffer[], - * org.eclipse.core.runtime.IProgressMonitor, Object)}. - * - * @see org.eclipse.core.filebuffers.IFileBuffer - * @since 3.1 - */ -public interface IStateValidationSupport { - - /** - * Tells this buffer that the validation state is about to be changed. File buffer listeners will - * receive a {@link IFileBufferListener#stateChanging(IFileBuffer)} notification in response. - */ - void validationStateAboutToBeChanged(); - - /** - * Tells this buffer that the validation state has been changed to the given value. After that - * call, {@link IFileBuffer#isStateValidated()} will return the given value. Also {@link - * IFileBuffer#getStatus()} will returns the provided status. File buffer listeners will receive a - * {@link IFileBufferListener#stateValidationChanged(IFileBuffer, boolean)} notification. - * - * @param validationState true if validated, false otherwise - * @param status the status of the executed validate state operation - */ - void validationStateChanged(boolean validationState, IStatus status); - - /** - * Tells this buffer that a initiated state validation failed. File buffer listeners will receive - * a {@link IFileBufferListener#stateChangeFailed(IFileBuffer)} notification in response. - */ - void validationStateChangeFailed(); -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/ISynchronizationContext.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/ISynchronizationContext.java deleted file mode 100644 index cc33cb0af2ef..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/ISynchronizationContext.java +++ /dev/null @@ -1,34 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2000, - * 2009 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.filebuffers; - -/** - * A file buffer manager (see {@link org.eclipse.core.filebuffers.IFileBufferManager}) uses an - * ISynchronizationContext in order to execute commands encapsulated as {@link - * Runnable}. The synchronization context executes the Runnables according to a - * specific synchronization/execution policy. This could be that the given Runnable is - * executed in a specific thread or environment or adhere to specific timing constraints. The - * concrete characteristics of the policy is to be specified by the context implementer. - * - *

This interface can be implemented by clients. Clients use {@link - * org.eclipse.core.filebuffers.IFileBufferManager#setSynchronizationContext(ISynchronizationContext)} - * to install a particular synchronization context with a file buffer manager. - * - * @since 3.0 - */ -public interface ISynchronizationContext { - - /** - * Executes the given runnable according to the specified synchronization/execution policy. - * - * @param runnable the runnable to be executed - */ - void run(Runnable runnable); -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/ITextFileBuffer.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/ITextFileBuffer.java deleted file mode 100644 index 478037f8aa67..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/ITextFileBuffer.java +++ /dev/null @@ -1,62 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2000, - * 2008 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.filebuffers; - -import org.eclipse.jface.text.IDocument; -import org.eclipse.jface.text.source.IAnnotationModel; - -/** - * A text file buffer is a file buffer for text files. The contents of a text file buffer is given - * in the form of a document and an associated annotation model. Also, the text file buffer provides - * methods to manage the character encoding used to read and write the buffer's underlying text - * file. - * - *

Clients are not supposed to implement that interface. Instances of this type are obtained from - * a {@link org.eclipse.core.filebuffers.ITextFileBufferManager}. - * - * @since 3.0 - * @noimplement This interface is not intended to be implemented by clients. - * @noextend This interface is not intended to be extended by clients. - */ -public interface ITextFileBuffer extends IFileBuffer { - - /** - * Returns the document of this text file buffer. - * - * @return the document of this text file buffer - */ - IDocument getDocument(); - - /** - * Returns the character encoding to be used for reading and writing the buffer's underlying file. - * - *

Note: The encoding used to write the file might differ from the encoding - * returned by this method if no encoding has been explicitly set and the content type of the file - * is derived from the content (e.g. an XML file). - * - * @return the character encoding - */ - String getEncoding(); - - /** - * Sets the character encoding to be used for reading and writing the buffer's underlying file. - * - * @param encoding the encoding - */ - void setEncoding(String encoding); - - /** - * Returns the annotation model of this text file buffer. - * - * @return the annotation model of this text file buffer, might be null if called - * when disconnected - */ - IAnnotationModel getAnnotationModel(); -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/ITextFileBufferManager.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/ITextFileBufferManager.java deleted file mode 100644 index 70742ba637ca..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/ITextFileBufferManager.java +++ /dev/null @@ -1,202 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2000, - * 2009 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.filebuffers; - -import org.eclipse.core.internal.filebuffers.FileBuffersPlugin; -import org.eclipse.core.runtime.IPath; -import org.eclipse.jface.text.IDocument; - -/** - * A text file buffer manager manages text file buffers for files whose contents is considered text. - * - *

Clients are not supposed to implement that interface. - * - * @since 3.0 - * @noimplement This interface is not intended to be implemented by clients. - * @noextend This interface is not intended to be extended by clients. - */ -public interface ITextFileBufferManager extends IFileBufferManager { - - /** - * The default text file buffer manager. - * - * @since 3.3 - */ - ITextFileBufferManager DEFAULT = FileBuffersPlugin.getDefault().getFileBufferManager(); - - // /** - // * Returns the text file buffer managed for the file at the given location - // * or null if either there is no such text file buffer. - // *

- // * The provided location is either a full path of a workspace resource or - // * an absolute path in the local file system. The file buffer manager does - // * not resolve the location of workspace resources in the case of linked - // * resources. - // *

- // * - // * @param location the location - // * @return the text file buffer managed for that location or null - // * @deprecated As of 3.3, replaced by {@link #getTextFileBuffer(IPath, LocationKind)} - // */ - // ITextFileBuffer getTextFileBuffer(IPath location); - - /** - * Returns the text file buffer managed for the file at the given location or null if - * there is no such text file buffer. - * - *

The type of the provided location is specified by the given locationKind. - * - * @param location the location - * @param locationKind the kind of the given location - * @return the text file buffer managed for that location or null - * @see LocationKind - * @since 3.3 - */ - ITextFileBuffer getTextFileBuffer(IPath location, LocationKind locationKind); - - // /** - // * Returns the text file buffer managed for the given file store - // * or null if there is no such text file buffer. - // *

- // * Note: This API must not be used if the given file - // * store maps to a resource contained in the workspace. A file buffer - // * that has been connected using a path will not be found. - // *

- // *

- // * We had to use a different name than getTextFileBuffer for this method - // * due to https://bugs.eclipse.org/bugs/show_bug.cgi?id=148844 - // *

- // * - // * @param fileStore the file store - // * @return the text file buffer managed for that file store or null - // * @since 3.3 - // */ - // ITextFileBuffer getFileStoreTextFileBuffer(IFileStore fileStore); - - /** - * Returns the text file buffer managed for the given document or null if there is no - * such text file buffer. - * - *

Note: This method goes through the list of registered buffers and tests - * whether its document matches the given one. Therefore this method should not be used in - * performance critical code. - * - * @param document the document for which to find the text file buffer - * @return the text file buffer managed for that document or null - * @since 3.3 - */ - ITextFileBuffer getTextFileBuffer(IDocument document); - - /** - * Returns the default encoding that is used to read the contents of text files if no other - * encoding is specified. - * - * @return the default text file encoding - */ - String getDefaultEncoding(); - - /** - * Creates a new empty document. The document is set up in the same way as it would be used in a - * text file buffer for a file at the given location. - * - *

The provided location is either a full path of a workspace resource or an absolute path in - * the local file system. The file buffer manager does not resolve the location of workspace - * resources in the case of linked resources. - * - * @param location the location used to set up the newly created document or null if - * unknown - * @return a new empty document - * @deprecated As of 3.3, replaced by {@link #createEmptyDocument(IPath, LocationKind)} - */ - IDocument createEmptyDocument(IPath location); - - /** - * Creates a new empty document. The document is set up in the same way as it would be used in a - * text file buffer for a file at the given location. - * - *

The type of the provided location is specified by the given locationKind. - * - * @param location the location used to set up the newly created document or null if - * unknown - * @param locationKind the kind of the given location - * @return a new empty document - * @since 3.3 - */ - IDocument createEmptyDocument(IPath location, LocationKind locationKind); - - // /** - // * Creates a new annotation for the given location. - // *

- // * The provided location is either a full path of a workspace resource or an - // * absolute path in the local file system. The file buffer manager does not - // * resolve the location of workspace resources in the case of linked - // * resources. - // *

- // * - // * @param location the location used to create the new annotation model - // * @return the newly created annotation model - // * @deprecated As of 3.3, replaced by {@link #createAnnotationModel(IPath, LocationKind)} - // */ - // IAnnotationModel createAnnotationModel(IPath location); - // - // /** - // * Creates a new annotation for the given location. - // *

- // * The type of the provided location is specified by the given - // * locationKind. - // *

- // * - // * @param location the location used to create the new annotation model - // * @param locationKind the kind of the given location - // * @return the newly created annotation model - // * @since 3.3 - // */ - // IAnnotationModel createAnnotationModel(IPath location, LocationKind locationKind); - - // /** - // * Returns whether a file at the given location is or can be considered a - // * text file. If the file exists, the concrete content type of the file is - // * checked. If the concrete content type for the existing file can not be - // * determined, this method returns true. If the file does - // * not exist, it is checked whether a text content type is associated with - // * the given location. If no content type is associated with the location, - // * this method returns true. - // *

- // * The provided location is either a full path of a workspace resource or an - // * absolute path in the local file system. The file buffer manager does not - // * resolve the location of workspace resources in the case of linked - // * resources. - // *

- // * - // * @param location the location to check - // * @return true if the location is a text file location - // * @since 3.1 - // * @deprecated As of 3.2, replaced by {@link #isTextFileLocation(IPath, boolean)} - // */ - // boolean isTextFileLocation(IPath location); - /** - * Returns whether a file at the given location is or can be considered a text file. If the file - * exists, the concrete content type of the file is checked. If the concrete content type for the - * existing file can not be determined, this method returns !strict. If the file does - * not exist, it is checked whether a text content type is associated with the given location. If - * no content type is associated with the location, this method returns !strict. - * - *

The provided location is either a full path of a workspace resource or an absolute path in - * the local file system. The file buffer manager does not resolve the location of workspace - * resources in the case of linked resources. - * - * @param location the location to check - * @param strict true if a file with unknown content type is not treated as text - * file, false otherwise - * @return true if the location is a text file location - * @since 3.2 - */ - boolean isTextFileLocation(IPath location, boolean strict); -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/LocationKind.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/LocationKind.java deleted file mode 100644 index a2b01700f970..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/filebuffers/LocationKind.java +++ /dev/null @@ -1,63 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2007, - * 2008 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.filebuffers; - -import org.eclipse.core.runtime.IPath; - -/** - * Type-safe enum of the available location kinds. - * - * @since 3.3 - * @noinstantiate This class is not intended to be instantiated by clients. - */ -public final class LocationKind { - - /** - * The corresponding argument is a location in a file system. - * - *

Note: File buffers that are connected using a file store will not be found. - * - * @see IFileBufferManager#connectFileStore(org.eclipse.core.filesystem.IFileStore, - * org.eclipse.core.runtime.IProgressMonitor) - */ - public static final LocationKind LOCATION = new LocationKind("location"); // $NON-NLS-1$ - - /** - * The corresponding argument is the full path of an {@link org.eclipse.core.resources.IFile}. - * - * @see org.eclipse.core.resources.IFile#getFullPath() - */ - public static final LocationKind IFILE = new LocationKind("IFile"); // $NON-NLS-1$ - - /** - * Tells to normalize the corresponding argument according to {@link - * FileBuffers#normalizeLocation(IPath)}. - * - *

Note:: If the normalized path is not in the workspace then a file buffer - * that might be connected using a file store will not be found. - * - * @see IFileBufferManager#connectFileStore(org.eclipse.core.filesystem.IFileStore, - * org.eclipse.core.runtime.IProgressMonitor) - */ - public static final LocationKind NORMALIZE = new LocationKind("normalize"); // $NON-NLS-1$ - - private final String fName; - - LocationKind(String name) { - fName = name; - } - - /* - * @see java.lang.Object#toString() - */ - public String toString() { - return fName; - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/AbstractFileBuffer.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/AbstractFileBuffer.java deleted file mode 100644 index 43ba85e1e692..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/AbstractFileBuffer.java +++ /dev/null @@ -1,95 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2000, - * 2007 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.internal.filebuffers; - -import org.eclipse.core.filebuffers.IFileBuffer; -import org.eclipse.core.filebuffers.IStateValidationSupport; -import org.eclipse.core.filesystem.IFileInfo; -import org.eclipse.core.filesystem.IFileStore; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.jface.text.IDocumentExtension4; - -/** @since 3.0 */ -public abstract class AbstractFileBuffer implements IFileBuffer, IStateValidationSupport { - - /** - * The element for which the info is stored. - * - * @since 3.3 - */ - protected IFileStore fFileStore; - /** - * The text file buffer manager. - * - * @since 3.4 (pulled up from subclasses) - */ - protected final TextFileBufferManager fManager; - - public AbstractFileBuffer(TextFileBufferManager manager) { - fManager = manager; - } - - public abstract void create(IPath location, IProgressMonitor monitor) throws CoreException; - - public abstract void connect(); - - public abstract void disconnect() throws CoreException; - - /** - * Returns whether this file buffer has been disconnected. - * - * @return true if already disposed, false otherwise - * @since 3.1 - */ - protected abstract boolean isDisconnected(); - - /** - * Disposes this file buffer. This implementation is always empty. - * - *

Subclasses may extend but must call super.dispose(). - * - *

- * - * @since 3.1 - */ - protected void dispose() {} - - /* - * @see org.eclipse.core.filebuffers.IStateValidationSupport#validationStateAboutToBeChanged() - */ - public void validationStateAboutToBeChanged() { - fManager.fireStateChanging(this); - } - - /* - * @see org.eclipse.core.filebuffers.IStateValidationSupport#validationStateChangeFailed() - */ - public void validationStateChangeFailed() { - fManager.fireStateChangeFailed(this); - } - - /* - * @see org.eclipse.core.filebuffers.IFileBuffer#getModificationStamp() - */ - public long getModificationStamp() { - IFileInfo info = fFileStore.fetchInfo(); - return info.exists() ? info.getLastModified() : IDocumentExtension4.UNKNOWN_MODIFICATION_STAMP; - } - - /* - * @see org.eclipse.core.filebuffers.IFileBuffer#getFileStore() - * @since 3.3 - */ - public IFileStore getFileStore() { - return fFileStore; - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/DocumentReader.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/DocumentReader.java deleted file mode 100644 index 525ea5c3ab24..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/DocumentReader.java +++ /dev/null @@ -1,165 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2000, - * 2007 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.internal.filebuffers; - -import java.io.IOException; -import java.io.Reader; -import org.eclipse.core.runtime.Assert; -import org.eclipse.jface.text.BadLocationException; -import org.eclipse.jface.text.DocumentEvent; -import org.eclipse.jface.text.IDocument; -import org.eclipse.jface.text.IDocumentListener; - -/** - * A Reader that reads from an IDocument. The reader ensures that its - * content is the same as the document content when the stream was created. - * - *

Note that {@link #close()} must be called to release any acquired resources. - * - * @since 3.1 - */ -class DocumentReader extends Reader { - - /** Document based character sequence. */ - private static class DocumentCharSequence implements CharSequence { - - /** Document */ - private IDocument fDocument; - - /** - * Initialize with the sequence of characters in the given document. - * - * @param document the document - */ - public DocumentCharSequence(IDocument document) { - fDocument = document; - } - - /* - * @see java.lang.CharSequence#length() - */ - public int length() { - return fDocument.getLength(); - } - - /* - * @see java.lang.CharSequence#charAt(int) - */ - public char charAt(int index) { - try { - return fDocument.getChar(index); - } catch (BadLocationException x) { - throw new IndexOutOfBoundsException(x.getLocalizedMessage()); - } - } - - /* - * @see java.lang.CharSequence#subSequence(int, int) - */ - public CharSequence subSequence(int start, int end) { - try { - return fDocument.get(start, end - start); - } catch (BadLocationException x) { - throw new IndexOutOfBoundsException(x.getLocalizedMessage()); - } - } - } - - /** Internal document listener. */ - private class InternalDocumentListener implements IDocumentListener { - - /* - * @see org.eclipse.jface.text.IDocumentListener#documentAboutToBeChanged(org.eclipse.jface.text.DocumentEvent) - */ - public void documentAboutToBeChanged(DocumentEvent event) { - handleDocumentAboutToBeChanged(); - } - - /* - * @see org.eclipse.jface.text.IDocumentListener#documentChanged(org.eclipse.jface.text.DocumentEvent) - */ - public void documentChanged(DocumentEvent event) {} - } - - /** The character sequence. */ - private volatile CharSequence fCharSequence; - - /** Document length. */ - private int fLength; - - /** The current offset. */ - private int fOffset = 0; - - /** The document. */ - private IDocument fDocument; - - /** The document listener. */ - private IDocumentListener fDocumentListener = new InternalDocumentListener(); - - /** - * Creates a new document input stream and initializes the stream to read from the given document. - * - * @param document the document - */ - public DocumentReader(IDocument document) { - Assert.isNotNull(document); - fDocument = document; - fCharSequence = new DocumentCharSequence(fDocument); - fDocument.addDocumentListener(fDocumentListener); - fLength = fCharSequence.length(); - } - - /* - * @see java.io.InputStream#close() - */ - public void close() throws IOException { - synchronized (this) { - fCharSequence = null; - } - releaseDocument(); - } - - /** Copies the document prior to modification and removes the document listener. */ - private void handleDocumentAboutToBeChanged() { - IDocument document = fDocument; - if (fCharSequence == null || document == null) return; - String content = document.get(); - synchronized (this) { - if (fCharSequence == null) return; - fCharSequence = content; - } - releaseDocument(); - } - - /** Removes the document listener. */ - private synchronized void releaseDocument() { - if (fDocument != null) fDocument.removeDocumentListener(fDocumentListener); - fDocument = null; - fDocumentListener = null; - } - - /* - * @see java.io.Reader#read(char[], int, int) - * @since 3.1 - */ - public int read(char[] cbuf, int off, int len) throws IOException { - int i = 0; - try { - for (; i < len && fOffset < fLength; i++) cbuf[off + i] = fCharSequence.charAt(fOffset++); - if (i > 0) return i; - - return -1; - } catch (NullPointerException x) { - throw new IOException(FileBuffersMessages.DocumentInputStream_error_streamClosed); - } catch (IndexOutOfBoundsException x) { - return i - 1; - } - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/ExtensionsRegistry.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/ExtensionsRegistry.java deleted file mode 100644 index 37922ee4f3bc..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/ExtensionsRegistry.java +++ /dev/null @@ -1,566 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2000, - * 2009 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.internal.filebuffers; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.Set; -import java.util.StringTokenizer; -import org.eclipse.core.filebuffers.IDocumentSetupParticipant; -import org.eclipse.core.resources.ResourcesPlugin; -import org.eclipse.core.runtime.Assert; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IConfigurationElement; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.content.IContentType; - -/** - * This registry manages sharable document factories and setup participants that are specified in - * plugin.xml. - */ -public class ExtensionsRegistry { - - /** - * Adapts {@link IContentType} with the ability to check equality. This allows to use them in a - * collection. - */ - private static class ContentTypeAdapter { - - /** The adapted content type. */ - private IContentType fContentType; - - /** - * Creates a new content type adapter for the given content type. - * - * @param contentType the content type to be adapted - */ - public ContentTypeAdapter(IContentType contentType) { - Assert.isNotNull(contentType); - fContentType = contentType; - } - - /** - * Return the id of the adapted content type. - * - * @return the id - */ - public String getId() { - return fContentType.getId(); - } - - /* - * @see java.lang.Object#equals(java.lang.Object) - */ - public boolean equals(Object obj) { - return obj instanceof ContentTypeAdapter - && fContentType.getId().equals(((ContentTypeAdapter) obj).getId()); - } - - /* - * @see java.lang.Object#hashCode() - */ - public int hashCode() { - return fContentType.getId().hashCode(); - } - } - - protected static final String WILDCARD = "*"; // $NON-NLS-1$ - - /** - * The mapping between file attributes and configuration elements describing document factories. - */ - private Map fFactoryDescriptors = new HashMap(); - /** - * The mapping between configuration elements for document factories and instantiated document - * factories. - */ - private Map fFactories = new HashMap(); - /** - * The mapping between file attributes and configuration elements describing document setup - * participants. - */ - private Map fSetupParticipantDescriptors = new HashMap(); - /** - * The mapping between configuration elements for setup participants and instantiated setup - * participants. - */ - private Map fSetupParticipants = new HashMap(); - /** - * The mapping between file attributes and configuration elements describing annotation model - * factories. - */ - private Map fAnnotationModelFactoryDescriptors = new HashMap(); - /** The mapping between configuration elements for annotation model factories */ - private Map fAnnotationModelFactories = new HashMap(); - /** The content type manager. */ - // protected IContentTypeManager fContentTypeManager= Platform.getContentTypeManager(); - - /** - * Creates a new document factory registry and initializes it with the information found in the - * plug-in registry. - */ - public ExtensionsRegistry() { - // initialize("documentCreation", "contentTypeId", true, fFactoryDescriptors); //$NON-NLS-1$ - // //$NON-NLS-2$ - // initialize("documentCreation", "fileNames", false, fFactoryDescriptors); //$NON-NLS-1$ - // //$NON-NLS-2$ - // initialize("documentCreation", "extensions", false, fFactoryDescriptors); //$NON-NLS-1$ - // //$NON-NLS-2$ - // initialize("documentSetup", "contentTypeId", true, fSetupParticipantDescriptors); - // //$NON-NLS-1$ //$NON-NLS-2$ - // initialize("documentSetup", "fileNames", false, fSetupParticipantDescriptors); //$NON-NLS-1$ - // //$NON-NLS-2$ - // initialize("documentSetup", "extensions", false, fSetupParticipantDescriptors); - // //$NON-NLS-1$ //$NON-NLS-2$ - // initialize("annotationModelCreation", "contentTypeId", true, - // fAnnotationModelFactoryDescriptors); //$NON-NLS-1$ //$NON-NLS-2$ - // initialize("annotationModelCreation", "fileNames", false, - // fAnnotationModelFactoryDescriptors); //$NON-NLS-1$ //$NON-NLS-2$ - // initialize("annotationModelCreation", "extensions", false, - // fAnnotationModelFactoryDescriptors); //$NON-NLS-1$ //$NON-NLS-2$ - - } - - /** - * Reads the comma-separated value from the given configuration element for the given attribute - * name and remembers the configuration element in the given map under the individual tokens of - * the attribute value. - * - * @param attributeName the name of the attribute - * @param element the configuration element - * @param map the map which remembers the configuration element - */ - private void read(String attributeName, IConfigurationElement element, Map map) { - String value = element.getAttribute(attributeName); - if (value != null) { - StringTokenizer tokenizer = new StringTokenizer(value, ","); // $NON-NLS-1$ - while (tokenizer.hasMoreTokens()) { - String token = tokenizer.nextToken().trim(); - - Set s = (Set) map.get(token); - if (s == null) { - s = new HashSet(); - map.put(token, s); - } - s.add(element); - } - } - } - - // /** - // * Reads the value from the given configuration element for the given attribute name and - // remembers - // * the configuration element in the given map under the individual content type of the - // attribute value. - // * - // * @param attributeName the name of the attribute - // * @param element the configuration element - // * @param map the map which remembers the configuration element - // */ - // private void readContentType(String attributeName, IConfigurationElement element, Map map) { - // String value= element.getAttribute(attributeName); - // if (value != null) { - // IContentType contentType= fContentTypeManager.getContentType(value); - // if (contentType == null) { - // log(new Status(IStatus.ERROR, FileBuffersPlugin.PLUGIN_ID, IStatus.OK, NLSUtility - // .format(FileBuffersMessages.ExtensionsRegistry_error_contentTypeDoesNotExist, value), - // null)); - // return; - // } - // ContentTypeAdapter adapter= new ContentTypeAdapter(contentType); - // Set s= (Set) map.get(adapter); - // if (s == null) { - // s= new HashSet(); - // map.put(adapter, s); - // } - // s.add(element); - // } - // } - - /** - * Adds an entry to the log of this plug-in for the given status - * - * @param status the status to log - */ - private void log(IStatus status) { - // ILog log= FileBuffersPlugin.getDefault().getLog(); - ResourcesPlugin.log(status); - } - - // /** - // * Initializes this registry. It retrieves all implementers of the given - // * extension point and remembers those implementers based on the - // * file name extensions in the given map. - // * - // * @param extensionPointName the name of the extension point - // * @param childElementName the name of the child elements - // * @param isContentTypeId the child element is a content type id - // * @param descriptors the map to be filled - // */ - // private void initialize(String extensionPointName, String childElementName, boolean - // isContentTypeId, Map descriptors) { - // - // IExtensionPoint extensionPoint= - // Platform.getExtensionRegistry().getExtensionPoint(FileBuffersPlugin.PLUGIN_ID, - // extensionPointName); - // if (extensionPoint == null) { - // log(new Status(IStatus.ERROR, FileBuffersPlugin.PLUGIN_ID, 0, NLSUtility - // .format(FileBuffersMessages.ExtensionsRegistry_error_extensionPointNotFound, - // extensionPointName), null)); - // return; - // } - // - // IConfigurationElement[] elements= extensionPoint.getConfigurationElements(); - // for (int i= 0; i < elements.length; i++) { - // if (isContentTypeId) - // readContentType(childElementName, elements[i], descriptors); - // else - // read(childElementName, elements[i], descriptors); - // } - // } - - /** - * Returns the executable extension for the given configuration element. If there is no - * instantiated extension remembered for this element, a new extension is created and put into the - * cache if it is of the requested type. - * - * @param entry the configuration element - * @param extensions the map of instantiated extensions - * @param extensionType the requested result type - * @return the executable extension for the given configuration element. - */ - private Object getExtension(IConfigurationElement entry, Map extensions, Class extensionType) { - Object extension = extensions.get(entry); - if (extension != null) return extension; - - try { - extension = entry.createExecutableExtension("class"); // $NON-NLS-1$ - } catch (CoreException x) { - log(x.getStatus()); - } - - if (extensionType.isInstance(extension)) { - extensions.put(entry, extension); - return extension; - } - - return null; - } - - /** - * Returns the first enumerated element of the given set. - * - * @param set the set from which to choose - * @return the selected configuration element - */ - private IConfigurationElement selectConfigurationElement(Set set) { - if (set != null && !set.isEmpty()) { - Iterator e = set.iterator(); - return (IConfigurationElement) e.next(); - } - return null; - } - - /** - * Returns a sharable document factory for the given file name or file extension. - * - * @param nameOrExtension the name or extension to be used for lookup - * @return the sharable document factory or null - * @deprecated As of 3.5 - */ - protected org.eclipse.core.filebuffers.IDocumentFactory getDocumentFactory( - String nameOrExtension) { - Set set = (Set) fFactoryDescriptors.get(nameOrExtension); - if (set != null) { - IConfigurationElement entry = selectConfigurationElement(set); - return (org.eclipse.core.filebuffers.IDocumentFactory) - getExtension(entry, fFactories, org.eclipse.core.filebuffers.IDocumentFactory.class); - } - return null; - } - - /** - * Returns a sharable document factory for the given content types. - * - * @param contentTypes the content types used to find the factory - * @return the sharable document factory or null - * @deprecated As of 3.5 - */ - protected org.eclipse.core.filebuffers.IDocumentFactory doGetDocumentFactory( - IContentType[] contentTypes) { - Set set = null; - int i = 0; - while (i < contentTypes.length && set == null) { - set = (Set) fFactoryDescriptors.get(new ContentTypeAdapter(contentTypes[i++])); - } - - if (set != null) { - IConfigurationElement entry = selectConfigurationElement(set); - return (org.eclipse.core.filebuffers.IDocumentFactory) - getExtension(entry, fFactories, org.eclipse.core.filebuffers.IDocumentFactory.class); - } - return null; - } - - /** - * Returns a sharable document factory for the given content types. This method considers the base - * content types of the given set of content types. - * - * @param contentTypes the content types used to find the factory - * @return the sharable document factory or null - * @deprecated As of 3.5 - */ - protected org.eclipse.core.filebuffers.IDocumentFactory getDocumentFactory( - IContentType[] contentTypes) { - org.eclipse.core.filebuffers.IDocumentFactory factory = doGetDocumentFactory(contentTypes); - while (factory == null) { - contentTypes = computeBaseContentTypes(contentTypes); - if (contentTypes == null) break; - factory = doGetDocumentFactory(contentTypes); - } - return factory; - } - - /** - * Returns the set of setup participants for the given file name or extension. - * - * @param nameOrExtension the name or extension to be used for lookup - * @return the sharable set of document setup participants - */ - protected List getDocumentSetupParticipants(String nameOrExtension) { - Set set = (Set) fSetupParticipantDescriptors.get(nameOrExtension); - if (set == null) return null; - - List participants = new ArrayList(); - Iterator e = set.iterator(); - while (e.hasNext()) { - IConfigurationElement entry = (IConfigurationElement) e.next(); - Object participant = getExtension(entry, fSetupParticipants, IDocumentSetupParticipant.class); - if (participant != null) participants.add(participant); - } - - return participants; - } - - /** - * Returns the set of setup participants for the given content types. - * - * @param contentTypes the contentTypes to be used for lookup - * @return the sharable set of document setup participants - */ - private List doGetDocumentSetupParticipants(IContentType[] contentTypes) { - Set resultSet = new HashSet(); - int i = 0; - while (i < contentTypes.length) { - Set set = (Set) fSetupParticipantDescriptors.get(new ContentTypeAdapter(contentTypes[i++])); - if (set != null) resultSet.addAll(set); - } - - List participants = new ArrayList(); - Iterator e = resultSet.iterator(); - while (e.hasNext()) { - IConfigurationElement entry = (IConfigurationElement) e.next(); - Object participant = getExtension(entry, fSetupParticipants, IDocumentSetupParticipant.class); - if (participant != null) participants.add(participant); - } - - return participants.isEmpty() ? null : participants; - } - - /** - * Returns the set of setup participants for the given content types. This method considers the - * base content types of the given set of content types. - * - * @param contentTypes the contentTypes to be used for lookup - * @return the sharable set of document setup participants - */ - protected List getDocumentSetupParticipants(IContentType[] contentTypes) { - List participants = doGetDocumentSetupParticipants(contentTypes); - while (participants == null) { - contentTypes = computeBaseContentTypes(contentTypes); - if (contentTypes == null) break; - participants = doGetDocumentSetupParticipants(contentTypes); - } - return participants; - } - // - // /** - // * Returns a sharable annotation model factory for the given content types. - // * - // * @param contentTypes the content types used to find the factory - // * @return the sharable annotation model factory or null - // */ - // private IAnnotationModelFactory doGetAnnotationModelFactory(IContentType[] contentTypes) { - // Set set= null; - // int i= 0; - // while (i < contentTypes.length && set == null) { - // set= (Set) fAnnotationModelFactoryDescriptors.get(new ContentTypeAdapter(contentTypes[i++])); - // } - // - // if (set != null) { - // IConfigurationElement entry= selectConfigurationElement(set); - // return (IAnnotationModelFactory) getExtension(entry, fAnnotationModelFactories, - // IAnnotationModelFactory.class); - // } - // return null; - // } - - // /** - // * Returns a sharable annotation model factory for the given content types. - // * This method considers the base content types of the given set of content - // * types. - // * - // * @param contentTypes the content types used to find the factory - // * @return the sharable annotation model factory or null - // */ - // protected IAnnotationModelFactory getAnnotationModelFactory(IContentType[] contentTypes) { - // IAnnotationModelFactory factory= doGetAnnotationModelFactory(contentTypes); - // while (factory == null) { - // contentTypes= computeBaseContentTypes(contentTypes); - // if (contentTypes == null) - // break; - // factory= doGetAnnotationModelFactory(contentTypes); - // } - // return factory; - // } - - // /** - // * Returns a sharable annotation model factory for the given file name or file extension. - // * - // * @param extension the name or extension to be used for lookup - // * @return the sharable document factory or null - // */ - // protected IAnnotationModelFactory getAnnotationModelFactory(String extension) { - // Set set= (Set) fAnnotationModelFactoryDescriptors.get(extension); - // if (set != null) { - // IConfigurationElement entry= selectConfigurationElement(set); - // return (IAnnotationModelFactory) getExtension(entry, fAnnotationModelFactories, - // IAnnotationModelFactory.class); - // } - // return null; - // } - - // /** - // * Returns the set of content types for the given location. - // * - // * @param location the location for which to look up the content types - // * @param locationKind the kind of the given location - // * @return the set of content types for the location - // * @since 3.3 - // */ - // protected IContentType[] findContentTypes(IPath location, LocationKind locationKind) { - // Assert.isLegal(locationKind != LocationKind.IFILE); - // return fContentTypeManager.findContentTypesFor(location.lastSegment()); - // } - - /** - * Returns the set of direct base content types for the given set of content types. Returns - * null if non of the given content types has a direct base content type. - * - * @param contentTypes the content types - * @return the set of direct base content types - */ - private IContentType[] computeBaseContentTypes(IContentType[] contentTypes) { - List baseTypes = new ArrayList(); - for (int i = 0; i < contentTypes.length; i++) { - IContentType baseType = contentTypes[i].getBaseType(); - if (baseType != null) baseTypes.add(baseType); - } - - IContentType[] result = null; - int size = baseTypes.size(); - if (size > 0) { - result = new IContentType[size]; - baseTypes.toArray(result); - } - return result; - } - - // /** - // * Returns the sharable document factory for the given location. - // * - // * @param location the location for which to looked up the factory - // * @param locationKind the kind of the given location - // * @return the sharable document factory - // * @since 3.3 - // * @deprecated As of 3.5 - // */ - // public org.eclipse.core.filebuffers.IDocumentFactory getDocumentFactory(IPath location, - // LocationKind locationKind) { - // org.eclipse.core.filebuffers.IDocumentFactory factory= - // getDocumentFactory(findContentTypes(location, locationKind)); - // if (factory == null) - // factory= getDocumentFactory(location.lastSegment()); - // if (factory == null) - // factory= getDocumentFactory(location.getFileExtension()); - // if (factory == null) - // factory= getDocumentFactory(WILDCARD); - // return factory; - // } - // - // /** - // * Returns the sharable set of document setup participants for the given location. - // * - // * @param location the location for which to look up the setup participants - // * @param locationKind the kind of the given location - // * @return the sharable set of document setup participants - // * @since 3.3 - // */ - // public IDocumentSetupParticipant[] getDocumentSetupParticipants(IPath location, LocationKind - // locationKind) { - // Set participants= new HashSet(); - // - // List p= getDocumentSetupParticipants(findContentTypes(location, locationKind)); - // if (p != null) - // participants.addAll(p); - // - // p= getDocumentSetupParticipants(location.lastSegment()); - // if (p != null) - // participants.addAll(p); - // - // p= getDocumentSetupParticipants(location.getFileExtension()); - // if (p != null) - // participants.addAll(p); - // - // p= getDocumentSetupParticipants(WILDCARD); - // if (p != null) - // participants.addAll(p); - // - // IDocumentSetupParticipant[] result= new IDocumentSetupParticipant[participants.size()]; - // participants.toArray(result); - // return result; - // } - - // /** - // * Returns the sharable annotation model factory for the given location. - // * - // * @param location the location for which to look up the factory - // * @param locationKind the kind of the given location - // * @return the sharable annotation model factory - // * @since 3.3 - // */ - // public IAnnotationModelFactory getAnnotationModelFactory(IPath location, LocationKind - // locationKind) { - // IAnnotationModelFactory factory= getAnnotationModelFactory(findContentTypes(location, - // locationKind)); - // if (factory == null) - // factory= getAnnotationModelFactory(location.lastSegment()); - // if (factory == null) - // factory= getAnnotationModelFactory(location.getFileExtension()); - // if (factory == null) - // factory= getAnnotationModelFactory(WILDCARD); - // return factory; - // } - -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/FileBuffersMessages.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/FileBuffersMessages.java deleted file mode 100644 index 28177f59cd71..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/FileBuffersMessages.java +++ /dev/null @@ -1,50 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2000, - * 2014 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.internal.filebuffers; - -import org.eclipse.osgi.util.NLS; - -/** - * Helper class to get NLSed messages. - * - * @since 3.0 - */ -final class FileBuffersMessages extends NLS { - - private static final String BUNDLE_NAME = FileBuffersMessages.class.getName(); - - private FileBuffersMessages() { - // Do not instantiate - } - - public static String ExtensionsRegistry_error_extensionPointNotFound; - public static String ExtensionsRegistry_error_contentTypeDoesNotExist; - public static String ResourceFileBuffer_error_cannot_determine_URI; - public static String ResourceFileBuffer_warning_fileIsDerived; - public static String ResourceFileBuffer_stateValidationFailed; - public static String FileBuffer_error_outOfSync; - public static String FileBuffer_status_error; - public static String FileBuffer_error_queryContentDescription; - public static String FileBufferManager_error_canNotCreateFilebuffer; - public static String ResourceTextFileBuffer_error_charset_mapping_failed_message_arg; - public static String ResourceTextFileBuffer_error_unsupported_encoding_message_arg; - public static String ResourceTextFileBuffer_error_illegal_encoding_message_arg; - public static String ResourceTextFileBuffer_task_saving; - public static String ResourceFileBuffer_task_creatingFileBuffer; - public static String JavaTextFileBuffer_error_closeStream; - public static String TextFileBufferManager_error_documentSetupFailed; - public static String TextFileBufferManager_error_documentFactoryFailed; - public static String TextFileBufferManager_warning_documentSetupInstallsDefaultPartitioner; - public static String DocumentInputStream_error_streamClosed; - - static { - NLS.initializeMessages(BUNDLE_NAME, FileBuffersMessages.class); - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/FileBuffersPlugin.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/FileBuffersPlugin.java deleted file mode 100644 index aa99f9ae87e8..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/FileBuffersPlugin.java +++ /dev/null @@ -1,69 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2000, - * 2007 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.internal.filebuffers; - -import com.google.inject.Singleton; -import org.eclipse.core.filebuffers.ITextFileBufferManager; -import org.eclipse.core.runtime.Assert; -import org.eclipse.core.runtime.IStatus; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -/** - * The plug-in runtime class for the file buffers plug-in (id "org.eclipse.core.filebuffers" - * ). - * - * @since 3.0 - */ -@Singleton -public class FileBuffersPlugin /*extends Plugin*/ { - private static final Logger LOG = LoggerFactory.getLogger(FileBuffersPlugin.class); - public static final String PLUGIN_ID = "org.eclipse.core.filebuffers"; // $NON-NLS-1$ - - /** The shared plug-in instance */ - private static FileBuffersPlugin fgPlugin; - /** The file buffer manager */ - private ITextFileBufferManager fTextFileBufferManager; - - /** Creates a plug-in instance. */ - public FileBuffersPlugin() { - Assert.isTrue(fgPlugin == null); - fgPlugin = this; - } - - /** - * Returns the shared instance. - * - * @return the default plug-in instance - */ - public static FileBuffersPlugin getDefault() { - return fgPlugin; - } - - /** - * Returns the text file buffer manager of this plug-in. - * - * @return the text file buffer manager of this plug-in - */ - public synchronized ITextFileBufferManager getFileBufferManager() { - if (fTextFileBufferManager == null) { - // Bundle resourcesBundle = Platform.getBundle("org.eclipse.core.resources"); //$NON-NLS-1$ - // if (resourcesBundle != null) - // fTextFileBufferManager = new ResourceTextFileBufferManager(); - // else - fTextFileBufferManager = new TextFileBufferManager(); - } - return fTextFileBufferManager; - } - - public void log(IStatus status) { - LOG.error(status.getMessage(), status.getException()); - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/FileStoreFileBuffer.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/FileStoreFileBuffer.java deleted file mode 100644 index bc2ce2805c52..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/FileStoreFileBuffer.java +++ /dev/null @@ -1,233 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2000, - * 2008 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.internal.filebuffers; - -import org.eclipse.core.filesystem.EFS; -import org.eclipse.core.filesystem.IFileInfo; -import org.eclipse.core.filesystem.IFileStore; -import org.eclipse.core.filesystem.URIUtil; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.jobs.ISchedulingRule; -import org.eclipse.jface.text.IDocumentExtension4; - -/** @since 3.3 (previously available as JavaFileBuffer since 3.0) */ -public abstract class FileStoreFileBuffer extends AbstractFileBuffer { - - /** The location */ - protected IPath fLocation; - /** How often the element has been connected */ - protected int fReferenceCount; - /** Can the element be saved */ - protected boolean fCanBeSaved = false; - /** The status of this element */ - protected IStatus fStatus; - /** The time stamp at which this buffer synchronized with the underlying file. */ - protected long fSynchronizationStamp = IDocumentExtension4.UNKNOWN_MODIFICATION_STAMP; - /** How often the synchronization context has been requested */ - protected int fSynchronizationContextCount; - - public FileStoreFileBuffer(TextFileBufferManager manager) { - super(manager); - } - - protected abstract void addFileBufferContentListeners(); - - protected abstract void removeFileBufferContentListeners(); - - protected abstract void initializeFileBufferContent(IProgressMonitor monitor) - throws CoreException; - - protected abstract void commitFileBufferContent(IProgressMonitor monitor, boolean overwrite) - throws CoreException; - - public void create(IFileStore fileStore, IProgressMonitor monitor) throws CoreException { - IFileInfo info = fileStore.fetchInfo(); - fFileStore = fileStore; - if (fLocation == null) fLocation = URIUtil.toPath(fileStore.toURI()); - - initializeFileBufferContent(monitor); - if (info.exists()) fSynchronizationStamp = info.getLastModified(); - - addFileBufferContentListeners(); - } - - public void create(IPath location, IProgressMonitor monitor) throws CoreException { - fLocation = location; - create(EFS.getStore(URIUtil.toURI(getLocation())), monitor); - } - - public void connect() { - ++fReferenceCount; - if (fReferenceCount == 1) connected(); - } - - /** - * Called when this file buffer has been connected. This is the case when there is exactly one - * connection. - * - *

Clients may extend this method. - */ - protected void connected() {} - - public void disconnect() throws CoreException { - --fReferenceCount; - if (fReferenceCount <= 0) disconnected(); - } - - /** - * Called when this file buffer has been disconnected. This is the case when the number of - * connections drops below 1. - * - *

Clients may extend this method. - */ - protected void disconnected() {} - - /* - * @see org.eclipse.core.internal.filebuffers.AbstractFileBuffer#isDisconnected() - * @since 3.1 - */ - protected boolean isDisconnected() { - return fReferenceCount <= 0; - } - - /* - * @see org.eclipse.core.filebuffers.IFileBuffer#getLocation() - */ - public IPath getLocation() { - return fLocation; - } - - /* - * @see org.eclipse.core.filebuffers.IFileBuffer#commit(org.eclipse.core.runtime.IProgressMonitor, boolean) - */ - public void commit(IProgressMonitor monitor, boolean overwrite) throws CoreException { - if (!isDisconnected() && fCanBeSaved) { - - fManager.fireStateChanging(this); - - try { - commitFileBufferContent(monitor, overwrite); - } catch (CoreException x) { - fManager.fireStateChangeFailed(this); - throw x; - } catch (RuntimeException x) { - fManager.fireStateChangeFailed(this); - throw x; - } - - fCanBeSaved = false; - addFileBufferContentListeners(); - fManager.fireDirtyStateChanged(this, fCanBeSaved); - } - } - - /* - * @see org.eclipse.core.filebuffers.IFileBuffer#computeCommitRule() - */ - public ISchedulingRule computeCommitRule() { - return null; - } - - /* - * @see org.eclipse.core.filebuffers.IFileBuffer#isDirty() - */ - public boolean isDirty() { - return fCanBeSaved; - } - - /* - * @see org.eclipse.core.filebuffers.IFileBuffer#setDirty(boolean) - */ - public void setDirty(boolean isDirty) { - fCanBeSaved = isDirty; - } - - /* - * @see org.eclipse.core.filebuffers.IFileBuffer#isShared() - */ - public boolean isShared() { - return fReferenceCount > 1; - } - - /* - * @see org.eclipse.core.filebuffers.IFileBuffer#computeValidateStateRule() - */ - public ISchedulingRule computeValidateStateRule() { - return null; - } - - /* - * @see org.eclipse.core.filebuffers.IFileBuffer#validateState(org.eclipse.core.runtime.IProgressMonitor, java.lang.Object) - */ - public void validateState(IProgressMonitor monitor, Object computationContext) - throws CoreException { - // nop - } - - /* - * @see org.eclipse.core.filebuffers.IFileBuffer#isStateValidated() - */ - public boolean isStateValidated() { - return true; - } - - /* - * @see org.eclipse.core.filebuffers.IFileBuffer#resetStateValidation() - */ - public void resetStateValidation() { - // nop - } - - /* - * @see org.eclipse.core.filebuffers.IFileBuffer#isSynchronized() - */ - public boolean isSynchronized() { - return fSynchronizationStamp == getModificationStamp(); - } - - /* - * @see org.eclipse.core.filebuffers.IFileBuffer#requestSynchronizationContext() - */ - public void requestSynchronizationContext() { - ++fSynchronizationContextCount; - } - - /* - * @see org.eclipse.core.filebuffers.IFileBuffer#releaseSynchronizationContext() - */ - public void releaseSynchronizationContext() { - --fSynchronizationContextCount; - } - - /* - * @see org.eclipse.core.filebuffers.IFileBuffer#isSynchronizationContextRequested() - */ - public boolean isSynchronizationContextRequested() { - return fSynchronizationContextCount > 0; - } - - /* - * @see org.eclipse.core.filebuffers.IFileBuffer#isCommitable() - */ - public boolean isCommitable() { - IFileInfo info = fFileStore.fetchInfo(); - return info.exists() && !info.getAttribute(EFS.ATTRIBUTE_READ_ONLY); - } - - /* - * @see org.eclipse.core.filebuffers.IStateValidationSupport#validationStateChanged(boolean, org.eclipse.core.runtime.IStatus) - */ - public void validationStateChanged(boolean validationState, IStatus status) { - // nop - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/FileStoreTextFileBuffer.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/FileStoreTextFileBuffer.java deleted file mode 100644 index b8eacee9510b..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/FileStoreTextFileBuffer.java +++ /dev/null @@ -1,659 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2007, - * 2013 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation James Blackburn - * - [implementation] FileStoreTextFileBuffer eats IOException on - * external file save - https://bugs.eclipse.org/333660 - * ***************************************************************************** - */ -package org.eclipse.core.internal.filebuffers; - -import java.io.BufferedReader; -import java.io.ByteArrayInputStream; -import java.io.IOException; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.OutputStream; -import java.io.Reader; -import java.io.SequenceInputStream; -import java.nio.ByteBuffer; -import java.nio.CharBuffer; -import java.nio.charset.CharacterCodingException; -import java.nio.charset.Charset; -import java.nio.charset.CharsetEncoder; -import java.nio.charset.CodingErrorAction; -import java.nio.charset.IllegalCharsetNameException; -import java.nio.charset.UnmappableCharacterException; -import java.nio.charset.UnsupportedCharsetException; -import org.eclipse.core.filebuffers.IFileBufferStatusCodes; -import org.eclipse.core.filebuffers.ITextFileBuffer; -import org.eclipse.core.filebuffers.LocationKind; -import org.eclipse.core.filesystem.EFS; -import org.eclipse.core.filesystem.IFileInfo; -import org.eclipse.core.filesystem.IFileStore; -import org.eclipse.core.runtime.Assert; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.Path; -import org.eclipse.core.runtime.Platform; -import org.eclipse.core.runtime.QualifiedName; -import org.eclipse.core.runtime.Status; -import org.eclipse.core.runtime.content.IContentDescription; -import org.eclipse.core.runtime.content.IContentType; -import org.eclipse.jface.text.DocumentEvent; -import org.eclipse.jface.text.IDocument; -import org.eclipse.jface.text.IDocumentListener; -import org.eclipse.jface.text.source.IAnnotationModel; - -/** @since 3.3 (previously available as JavaTextFileBuffer since 3.3) */ -public class FileStoreTextFileBuffer extends FileStoreFileBuffer implements ITextFileBuffer { - - private class DocumentListener implements IDocumentListener { - - /* - * @see org.eclipse.jface.text.IDocumentListener#documentAboutToBeChanged(org.eclipse.jface.text.DocumentEvent) - */ - public void documentAboutToBeChanged(DocumentEvent event) {} - - /* - * @see org.eclipse.jface.text.IDocumentListener#documentChanged(org.eclipse.jface.text.DocumentEvent) - */ - public void documentChanged(DocumentEvent event) { - fCanBeSaved = true; - removeFileBufferContentListeners(); - fManager.fireDirtyStateChanged(FileStoreTextFileBuffer.this, fCanBeSaved); - } - } - - /** Reader chunk size. */ - private static final int READER_CHUNK_SIZE = 2048; - /** Buffer size. */ - private static final int BUFFER_SIZE = 8 * READER_CHUNK_SIZE; - /** Constant for representing the error status. This is considered a value object. */ - private static final IStatus STATUS_ERROR = - new Status( - IStatus.ERROR, - FileBuffersPlugin.PLUGIN_ID, - IStatus.OK, - FileBuffersMessages.FileBuffer_status_error, - null); - /** Constant denoting UTF-8 encoding. */ - private static final String CHARSET_UTF_8 = "UTF-8"; // $NON-NLS-1$ - - /** - * Constant denoting an empty set of properties - * - * @since 3.1 - */ - private static final QualifiedName[] NO_PROPERTIES = new QualifiedName[0]; - - /** The element's document */ - protected IDocument fDocument; - /** - * The encoding used to create the document from the storage or null for workbench - * encoding. - */ - protected String fEncoding; - /** Internal document listener */ - protected IDocumentListener fDocumentListener = new DocumentListener(); - /** The encoding which has explicitly been set on the file. */ - private String fExplicitEncoding; - /** Tells whether the file on disk has a BOM. */ - private boolean fHasBOM; - /** The annotation model of this file buffer */ - private IAnnotationModel fAnnotationModel; - /** - * Lock for lazy creation of annotation model. - * - * @since 3.2 - */ - private final Object fAnnotationModelCreationLock = new Object(); - /** - * Tells whether the cache is up to date. - * - * @since 3.2 - */ - private boolean fIsCacheUpdated = false; - - public FileStoreTextFileBuffer(TextFileBufferManager manager) { - super(manager); - } - - /* - * @see org.eclipse.core.filebuffers.ITextFileBuffer#getDocument() - */ - public IDocument getDocument() { - return fDocument; - } - - /* - * @see org.eclipse.core.filebuffers.ITextFileBuffer#getAnnotationModel() - */ - public IAnnotationModel getAnnotationModel() { - // synchronized (fAnnotationModelCreationLock) { - // if (fAnnotationModel == null && !isDisconnected()) { - // fAnnotationModel = fManager.createAnnotationModel(getLocationOrName(), - // LocationKind.LOCATION); - // if (fAnnotationModel != null) - // fAnnotationModel.connect(fDocument); - // } - // } - // return fAnnotationModel; - throw new UnsupportedOperationException("getAnnotationModel"); - } - - /* - * @see org.eclipse.core.filebuffers.ITextFileBuffer#getEncoding() - */ - public String getEncoding() { - if (!fIsCacheUpdated) cacheEncodingState(); - return fEncoding; - } - - /* - * @see org.eclipse.core.filebuffers.ITextFileBuffer#setEncoding(java.lang.String) - */ - public void setEncoding(String encoding) { - fExplicitEncoding = encoding; - if (encoding == null || encoding.equals(fEncoding)) fIsCacheUpdated = false; - else { - fEncoding = encoding; - fHasBOM = false; - } - } - - /* - * @see org.eclipse.core.filebuffers.ITextFileBuffer#getStatus() - */ - public IStatus getStatus() { - if (!isDisconnected()) { - if (fStatus != null) return fStatus; - return (fDocument == null ? STATUS_ERROR : Status.OK_STATUS); - } - return STATUS_ERROR; - } - - private InputStream getFileContents(IFileStore fileStore) throws CoreException { - if (!fFileStore.fetchInfo().exists()) return null; - - return fileStore.openInputStream(EFS.NONE, null); - } - - private void setFileContents(InputStream stream, IProgressMonitor monitor) throws CoreException { - OutputStream out = fFileStore.openOutputStream(EFS.NONE, null); - try { - byte[] buffer = new byte[8192]; - while (true) { - int bytesRead = -1; - bytesRead = stream.read(buffer); - if (bytesRead == -1) { - out.close(); - break; - } - out.write(buffer, 0, bytesRead); - if (monitor != null) monitor.worked(1); - } - } catch (IOException ex) { - String message = (ex.getMessage() != null ? ex.getMessage() : ""); // $NON-NLS-1$ - IStatus s = new Status(IStatus.ERROR, FileBuffersPlugin.PLUGIN_ID, IStatus.OK, message, ex); - throw new CoreException(s); - } finally { - try { - stream.close(); - } catch (IOException e) { - } finally { - try { - out.close(); - } catch (IOException e) { - } - } - } - } - - /* - * @see org.eclipse.core.filebuffers.IFileBuffer#revert(org.eclipse.core.runtime.IProgressMonitor) - */ - public void revert(IProgressMonitor monitor) throws CoreException { - if (isDisconnected()) return; - - IDocument original = null; - fStatus = null; - - try { - original = fManager.createEmptyDocument(getLocationOrName(), LocationKind.LOCATION); - cacheEncodingState(); - setDocumentContent(original, fFileStore, fEncoding, fHasBOM, monitor); - } catch (CoreException x) { - fStatus = x.getStatus(); - } - - if (original == null) return; - - String originalContents = original.get(); - boolean replaceContents = !originalContents.equals(fDocument.get()); - - if (!replaceContents && !fCanBeSaved) return; - - fManager.fireStateChanging(this); - try { - - if (replaceContents) { - fManager.fireBufferContentAboutToBeReplaced(this); - fDocument.set(original.get()); - } - - boolean fireDirtyStateChanged = fCanBeSaved; - if (fCanBeSaved) { - fCanBeSaved = false; - addFileBufferContentListeners(); - } - - if (replaceContents) fManager.fireBufferContentReplaced(this); - - IFileInfo info = fFileStore.fetchInfo(); - if (info.exists()) fSynchronizationStamp = fFileStore.fetchInfo().getLastModified(); - - // if (fAnnotationModel instanceof IPersistableAnnotationModel) { - // IPersistableAnnotationModel persistableModel = - // (IPersistableAnnotationModel)fAnnotationModel; - // try { - // persistableModel.revert(fDocument); - // } catch (CoreException x) { - // fStatus = x.getStatus(); - // } - // } - - if (fireDirtyStateChanged) fManager.fireDirtyStateChanged(this, fCanBeSaved); - - } catch (RuntimeException x) { - fManager.fireStateChangeFailed(this); - throw x; - } - } - - /* - * @see org.eclipse.core.filebuffers.IFileBuffer#getContentType() - * @since 3.1 - */ - public IContentType getContentType() throws CoreException { - InputStream stream = null; - try { - if (isDirty()) { - Reader reader = new DocumentReader(getDocument()); - try { - IContentDescription desc = - Platform.getContentTypeManager() - .getDescriptionFor(reader, fFileStore.getName(), NO_PROPERTIES); - if (desc != null && desc.getContentType() != null) return desc.getContentType(); - } finally { - try { - reader.close(); - } catch (IOException ex) { - } - } - } - stream = fFileStore.openInputStream(EFS.NONE, null); - IContentDescription desc = - Platform.getContentTypeManager() - .getDescriptionFor(stream, fFileStore.getName(), NO_PROPERTIES); - if (desc != null && desc.getContentType() != null) return desc.getContentType(); - return null; - } catch (IOException x) { - throw new CoreException( - new Status( - IStatus.ERROR, - FileBuffersPlugin.PLUGIN_ID, - IStatus.OK, - NLSUtility.format( - FileBuffersMessages.FileBuffer_error_queryContentDescription, - fFileStore.toString()), - x)); - } finally { - try { - if (stream != null) stream.close(); - } catch (IOException x) { - } - } - } - - /* - * @see org.eclipse.core.internal.filebuffers.FileBuffer#addFileBufferContentListeners() - */ - protected void addFileBufferContentListeners() { - if (fDocument != null) fDocument.addDocumentListener(fDocumentListener); - } - - /* - * @see org.eclipse.core.internal.filebuffers.FileBuffer#removeFileBufferContentListeners() - */ - protected void removeFileBufferContentListeners() { - if (fDocument != null) fDocument.removeDocumentListener(fDocumentListener); - } - - /* - * @see org.eclipse.core.internal.filebuffers.FileBuffer#initializeFileBufferContent(org.eclipse.core.runtime.IProgressMonitor) - */ - protected void initializeFileBufferContent(IProgressMonitor monitor) throws CoreException { - try { - fDocument = fManager.createEmptyDocument(getLocationOrName(), LocationKind.LOCATION); - // cacheEncodingState(); - setDocumentContent(fDocument, fFileStore, fEncoding, fHasBOM, monitor); - } catch (CoreException x) { - fDocument = fManager.createEmptyDocument(getLocationOrName(), LocationKind.LOCATION); - fStatus = x.getStatus(); - } - } - - /* - * @see org.eclipse.core.internal.filebuffers.ResourceFileBuffer#connected() - */ - protected void connected() { - super.connected(); - if (fAnnotationModel != null) fAnnotationModel.connect(fDocument); - } - - /* - * @see org.eclipse.core.internal.filebuffers.ResourceFileBuffer#disconnected() - */ - protected void disconnected() { - if (fAnnotationModel != null) fAnnotationModel.disconnect(fDocument); - super.disconnected(); - } - - protected void cacheEncodingState() { - fEncoding = fExplicitEncoding; - fHasBOM = false; - fIsCacheUpdated = true; - - InputStream stream = null; - try { - stream = getFileContents(fFileStore); - if (stream == null) return; - - QualifiedName[] options = - new QualifiedName[] {IContentDescription.CHARSET, IContentDescription.BYTE_ORDER_MARK}; - IContentDescription description = - null; // Platform.getContentTypeManager().getDescriptionFor(stream, fFileStore.getName(), - // options); - if (description != null) { - fHasBOM = description.getProperty(IContentDescription.BYTE_ORDER_MARK) != null; - if (fEncoding == null) fEncoding = description.getCharset(); - } - } catch (CoreException e) { - // do nothing - } /*catch (IOException e) { - // do nothing - }*/ finally { - try { - if (stream != null) stream.close(); - } catch (IOException ex) { - FileBuffersPlugin.getDefault() - .log( - new Status( - IStatus.ERROR, - FileBuffersPlugin.PLUGIN_ID, - IStatus.OK, - FileBuffersMessages.JavaTextFileBuffer_error_closeStream, - ex)); - } - } - - // Use global default - if (fEncoding == null) fEncoding = fManager.getDefaultEncoding(); - } - - /* - * @see org.eclipse.core.internal.filebuffers.FileBuffer#commitFileBufferContent(org.eclipse.core.runtime.IProgressMonitor, boolean) - */ - protected void commitFileBufferContent(IProgressMonitor monitor, boolean overwrite) - throws CoreException { - // if (!isSynchronized() && !overwrite) - // throw new CoreException(new Status(IStatus.WARNING, FileBuffersPlugin.PLUGIN_ID, - // IResourceStatus.OUT_OF_SYNC_LOCAL, FileBuffersMessages.FileBuffer_error_outOfSync, null)); - - String encoding = computeEncoding(); - - Charset charset; - try { - charset = Charset.forName(encoding); - } catch (UnsupportedCharsetException ex) { - String message = - NLSUtility.format( - FileBuffersMessages.ResourceTextFileBuffer_error_unsupported_encoding_message_arg, - encoding); - IStatus s = new Status(IStatus.ERROR, FileBuffersPlugin.PLUGIN_ID, IStatus.OK, message, ex); - throw new CoreException(s); - } catch (IllegalCharsetNameException ex) { - String message = - NLSUtility.format( - FileBuffersMessages.ResourceTextFileBuffer_error_illegal_encoding_message_arg, - encoding); - IStatus s = new Status(IStatus.ERROR, FileBuffersPlugin.PLUGIN_ID, IStatus.OK, message, ex); - throw new CoreException(s); - } - - CharsetEncoder encoder = charset.newEncoder(); - encoder.onMalformedInput(CodingErrorAction.REPLACE); - encoder.onUnmappableCharacter(CodingErrorAction.REPORT); - - byte[] bytes; - int bytesLength; - - try { - ByteBuffer byteBuffer = encoder.encode(CharBuffer.wrap(fDocument.get())); - bytesLength = byteBuffer.limit(); - if (byteBuffer.hasArray()) bytes = byteBuffer.array(); - else { - bytes = new byte[bytesLength]; - byteBuffer.get(bytes); - } - } catch (CharacterCodingException ex) { - Assert.isTrue(ex instanceof UnmappableCharacterException); - String message = - NLSUtility.format( - FileBuffersMessages.ResourceTextFileBuffer_error_charset_mapping_failed_message_arg, - encoding); - IStatus s = - new Status( - IStatus.ERROR, - FileBuffersPlugin.PLUGIN_ID, - IFileBufferStatusCodes.CHARSET_MAPPING_FAILED, - message, - null); - throw new CoreException(s); - } - - IFileInfo fileInfo = fFileStore.fetchInfo(); - if (fileInfo != null && fileInfo.exists()) { - - if (!overwrite) checkSynchronizationState(); - - InputStream stream = new ByteArrayInputStream(bytes, 0, bytesLength); - - /* - * XXX: - * This is a workaround for a corresponding bug in Java readers and writer, - * see http://developer.java.sun.com/developer/bugParade/bugs/4508058.html - */ - if (fHasBOM && CHARSET_UTF_8.equals(encoding)) - stream = - new SequenceInputStream( - new ByteArrayInputStream(IContentDescription.BOM_UTF_8), stream); - - // here the file synchronizer should actually be removed and afterwards added again. However, - // we are already inside an operation, so the delta is sent AFTER we have added the listener - setFileContents(stream, monitor); - // set synchronization stamp to know whether the file synchronizer must become active - fSynchronizationStamp = fFileStore.fetchInfo().getLastModified(); - - // if (fAnnotationModel instanceof IPersistableAnnotationModel) { - // IPersistableAnnotationModel persistableModel= (IPersistableAnnotationModel) - // fAnnotationModel; - // persistableModel.commit(fDocument); - // } - - } else { - fFileStore.getParent().mkdir(EFS.NONE, null); - OutputStream out = fFileStore.openOutputStream(EFS.NONE, null); - try { - /* - * XXX: - * This is a workaround for a corresponding bug in Java readers and writer, - * see http://developer.java.sun.com/developer/bugParade/bugs/4508058.html - */ - if (fHasBOM && CHARSET_UTF_8.equals(encoding)) out.write(IContentDescription.BOM_UTF_8); - - out.write(bytes, 0, bytesLength); - out.flush(); - out.close(); - } catch (IOException x) { - IStatus s = - new Status( - IStatus.ERROR, FileBuffersPlugin.PLUGIN_ID, IStatus.OK, x.getLocalizedMessage(), x); - throw new CoreException(s); - } finally { - try { - out.close(); - } catch (IOException x) { - } - } - - // set synchronization stamp to know whether the file synchronizer must become active - fSynchronizationStamp = fFileStore.fetchInfo().getLastModified(); - } - } - - private String computeEncoding() { - // Make sure cache is up to date - if (!fIsCacheUpdated) cacheEncodingState(); - - // User-defined encoding has first priority - if (fExplicitEncoding != null) return fExplicitEncoding; - - // // Probe content - // Reader reader= new DocumentReader(fDocument); - // try { - // QualifiedName[] options= new QualifiedName[] { IContentDescription.CHARSET, - // IContentDescription.BYTE_ORDER_MARK }; - // IContentDescription description= Platform.getContentTypeManager().getDescriptionFor(reader, - // fFileStore.getName(), options); - // if (description != null) { - // String encoding= description.getCharset(); - // if (encoding != null) - // return encoding; - // } - // } catch (IOException ex) { - // // Try next strategy - // } finally { - // try { - // reader.close(); - // } catch (IOException x) { - // } - // } - - // Use file's encoding if the file has a BOM - if (fHasBOM) return fEncoding; - - // Use global default - return fManager.getDefaultEncoding(); - } - - /** - * Initializes the given document with the given file's content using the given encoding. - * - * @param document the document to be initialized - * @param file the file which delivers the document content - * @param encoding the character encoding for reading the given stream - * @param hasBOM tell whether the given file has a BOM - * @param monitor the progress monitor - * @exception CoreException if the given stream can not be read - */ - private void setDocumentContent( - IDocument document, - IFileStore file, - String encoding, - boolean hasBOM, - IProgressMonitor monitor) - throws CoreException { - InputStream contentStream = getFileContents(file); - if (contentStream == null) return; - - Reader in = null; - try { - - if (encoding == null) encoding = fManager.getDefaultEncoding(); - - /* - * XXX: - * This is a workaround for a corresponding bug in Java readers and writer, - * see http://developer.java.sun.com/developer/bugParade/bugs/4508058.html - */ - if (hasBOM && CHARSET_UTF_8.equals(encoding)) { - int n = 0; - do { - int bytes = contentStream.read(new byte[IContentDescription.BOM_UTF_8.length]); - if (bytes == -1) throw new IOException(); - n += bytes; - } while (n < IContentDescription.BOM_UTF_8.length); - } - - in = new BufferedReader(new InputStreamReader(contentStream, encoding), BUFFER_SIZE); - StringBuffer buffer = new StringBuffer(BUFFER_SIZE); - char[] readBuffer = new char[READER_CHUNK_SIZE]; - int n = in.read(readBuffer); - while (n > 0) { - buffer.append(readBuffer, 0, n); - n = in.read(readBuffer); - } - - document.set(buffer.toString()); - - } catch (IOException x) { - String msg = x.getMessage() == null ? "" : x.getMessage(); // $NON-NLS-1$ - IStatus s = new Status(IStatus.ERROR, FileBuffersPlugin.PLUGIN_ID, IStatus.OK, msg, x); - throw new CoreException(s); - } finally { - try { - if (in != null) in.close(); - else contentStream.close(); - } catch (IOException x) { - } - } - } - - /** - * Checks whether the given file is synchronized with the local file system. If the file has been - * changed, a CoreException is thrown. - * - * @exception CoreException if file has been changed on the file system - */ - private void checkSynchronizationState() throws CoreException { - if (!isSynchronized()) { - Status status = - new Status( - IStatus.ERROR, - FileBuffersPlugin.PLUGIN_ID, - 274 /* IResourceStatus.OUT_OF_SYNC_LOCAL */, - FileBuffersMessages.FileBuffer_error_outOfSync, - null); - throw new CoreException(status); - } - } - - /** - * Returns the location if it is null or the name as IPath otherwise. - * - * @return a non-null IPath - * @since 3.3.1 - */ - private IPath getLocationOrName() { - IPath path = getLocation(); - if (path == null) path = new Path(fFileStore.getName()); - return path; - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/NLSUtility.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/NLSUtility.java deleted file mode 100644 index 8c6fa511a599..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/NLSUtility.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2005, - * 2006 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.internal.filebuffers; - -import java.text.MessageFormat; - -/** - * A number of routines used for string externalization. - * - * @since 3.1 - */ -public class NLSUtility { - - /** - * Formats the given string with the given argument. - * - * @param message the message to format, must not be null - * @param argument the argument used to format the string - * @return the formatted string - */ - public static String format(String message, Object argument) { - return MessageFormat.format(message, new Object[] {argument}); - } - - /** - * Formats the given string with the given argument. - * - * @param message the message to format, must not be null - * @param arguments the arguments used to format the string - * @return the formatted string - */ - public static String format(String message, Object[] arguments) { - return MessageFormat.format(message, arguments); - } - - private NLSUtility() { - // Do not instantiate - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/SynchronizableDocument.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/SynchronizableDocument.java deleted file mode 100644 index 62d4413ee27f..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/SynchronizableDocument.java +++ /dev/null @@ -1,404 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2000, - * 2010 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.internal.filebuffers; - -import org.eclipse.jface.text.BadLocationException; -import org.eclipse.jface.text.BadPartitioningException; -import org.eclipse.jface.text.BadPositionCategoryException; -import org.eclipse.jface.text.Document; -import org.eclipse.jface.text.DocumentRewriteSession; -import org.eclipse.jface.text.DocumentRewriteSessionType; -import org.eclipse.jface.text.IDocumentExtension4; -import org.eclipse.jface.text.IRegion; -import org.eclipse.jface.text.ISynchronizable; -import org.eclipse.jface.text.ITypedRegion; -import org.eclipse.jface.text.Position; - -/** - * Document that can be synchronized with a lock object. - * - *

Initially no locking takes place. - * - * @since 3.2 - */ -public class SynchronizableDocument extends Document implements ISynchronizable { - - private Object fLockObject; - - /* - * @see org.eclipse.jface.text.ISynchronizable#setLockObject(java.lang.Object) - */ - public synchronized void setLockObject(Object lockObject) { - fLockObject = lockObject; - } - - /* - * @see org.eclipse.jface.text.ISynchronizable#getLockObject() - */ - public synchronized Object getLockObject() { - return fLockObject; - } - - /** - * {@inheritDoc} - * - * @deprecated As of 3.1, replaced by {@link - * IDocumentExtension4#startRewriteSession(DocumentRewriteSessionType)} - */ - public void startSequentialRewrite(boolean normalized) { - Object lockObject = getLockObject(); - if (lockObject == null) { - super.startSequentialRewrite(normalized); - return; - } - synchronized (lockObject) { - super.startSequentialRewrite(normalized); - } - } - - /** - * {@inheritDoc} - * - * @deprecated As of 3.1, replaced by {@link - * IDocumentExtension4#stopRewriteSession(DocumentRewriteSession)} - */ - public void stopSequentialRewrite() { - Object lockObject = getLockObject(); - if (lockObject == null) { - super.stopSequentialRewrite(); - return; - } - synchronized (lockObject) { - super.stopSequentialRewrite(); - } - } - - /* - * @see org.eclipse.jface.text.AbstractDocument#startRewriteSession(org.eclipse.jface.text.DocumentRewriteSessionType) - * - * @since 3.5 - */ - public DocumentRewriteSession startRewriteSession(DocumentRewriteSessionType sessionType) { - Object lockObject = getLockObject(); - if (lockObject == null) { - return super.startRewriteSession(sessionType); - } - synchronized (lockObject) { - return super.startRewriteSession(sessionType); - } - } - - /* - * @see org.eclipse.jface.text.AbstractDocument#stopRewriteSession(org.eclipse.jface.text.DocumentRewriteSession) - * - * @since 3.5 - */ - public void stopRewriteSession(DocumentRewriteSession session) { - Object lockObject = getLockObject(); - if (lockObject == null) { - super.stopRewriteSession(session); - return; - } - synchronized (lockObject) { - super.stopRewriteSession(session); - } - } - - /* - * @see IDocument#get() - */ - public String get() { - Object lockObject = getLockObject(); - if (lockObject == null) { - return super.get(); - } - synchronized (lockObject) { - return super.get(); - } - } - - /* - * @see IDocument#get(int, int) - */ - public String get(int offset, int length) throws BadLocationException { - Object lockObject = getLockObject(); - if (lockObject == null) { - return super.get(offset, length); - } - synchronized (lockObject) { - return super.get(offset, length); - } - } - - /* - * @see IDocument#getChar(int) - */ - public char getChar(int offset) throws BadLocationException { - Object lockObject = getLockObject(); - if (lockObject == null) { - return super.getChar(offset); - } - synchronized (lockObject) { - return super.getChar(offset); - } - } - - /* - * @see org.eclipse.jface.text.IDocumentExtension4#getModificationStamp() - * @since 3.1 - */ - public long getModificationStamp() { - Object lockObject = getLockObject(); - if (lockObject == null) { - return super.getModificationStamp(); - } - synchronized (lockObject) { - return super.getModificationStamp(); - } - } - - /* - * @see IDocument#replace(int, int, String) - */ - public void replace(int offset, int length, String text) throws BadLocationException { - Object lockObject = getLockObject(); - if (lockObject == null) { - super.replace(offset, length, text); - return; - } - synchronized (lockObject) { - super.replace(offset, length, text); - } - } - - /* - * @see IDocumentExtension4#replace(int, int, String, long) - */ - public void replace(int offset, int length, String text, long modificationStamp) - throws BadLocationException { - Object lockObject = getLockObject(); - if (lockObject == null) { - super.replace(offset, length, text, modificationStamp); - return; - } - synchronized (lockObject) { - super.replace(offset, length, text, modificationStamp); - } - } - - /* - * @see IDocument#set(String) - */ - public void set(String text) { - Object lockObject = getLockObject(); - if (lockObject == null) { - super.set(text); - return; - } - synchronized (lockObject) { - super.set(text); - } - } - - /* - * @see IDocumentExtension4#set(String, long) - */ - public void set(String text, long modificationStamp) { - Object lockObject = getLockObject(); - if (lockObject == null) { - super.set(text, modificationStamp); - return; - } - synchronized (lockObject) { - super.set(text, modificationStamp); - } - } - - /* - * @see org.eclipse.jface.text.AbstractDocument#addPosition(java.lang.String, org.eclipse.jface.text.Position) - */ - public void addPosition(String category, Position position) - throws BadLocationException, BadPositionCategoryException { - Object lockObject = getLockObject(); - if (lockObject == null) { - super.addPosition(category, position); - return; - } - synchronized (lockObject) { - super.addPosition(category, position); - } - } - - /* - * @see org.eclipse.jface.text.AbstractDocument#removePosition(java.lang.String, org.eclipse.jface.text.Position) - */ - public void removePosition(String category, Position position) - throws BadPositionCategoryException { - Object lockObject = getLockObject(); - if (lockObject == null) { - super.removePosition(category, position); - return; - } - synchronized (lockObject) { - super.removePosition(category, position); - } - } - - /* - * @see org.eclipse.jface.text.AbstractDocument#getPositions(java.lang.String) - */ - public Position[] getPositions(String category) throws BadPositionCategoryException { - Object lockObject = getLockObject(); - if (lockObject == null) { - return super.getPositions(category); - } - synchronized (lockObject) { - return super.getPositions(category); - } - } - - /* - * @see org.eclipse.jface.text.AbstractDocument#getPositions(java.lang.String, int, int, boolean, boolean) - * @since 3.4 - */ - public Position[] getPositions( - String category, int offset, int length, boolean canStartBefore, boolean canEndAfter) - throws BadPositionCategoryException { - Object lockObject = getLockObject(); - if (lockObject == null) { - return super.getPositions(category, offset, length, canStartBefore, canEndAfter); - } - synchronized (lockObject) { - return super.getPositions(category, offset, length, canStartBefore, canEndAfter); - } - } - - /* - * @see org.eclipse.jface.text.AbstractDocument#computePartitioning(java.lang.String, int, int, boolean) - * - * @since 3.5 - */ - public ITypedRegion[] computePartitioning( - String partitioning, int offset, int length, boolean includeZeroLengthPartitions) - throws BadLocationException, BadPartitioningException { - Object lockObject = getLockObject(); - if (lockObject == null) { - return super.computePartitioning(partitioning, offset, length, includeZeroLengthPartitions); - } - synchronized (lockObject) { - return super.computePartitioning(partitioning, offset, length, includeZeroLengthPartitions); - } - } - - /* - * @see org.eclipse.jface.text.AbstractDocument#getLineDelimiter(int) - * - * @since 3.5 - */ - public String getLineDelimiter(int line) throws BadLocationException { - Object lockObject = getLockObject(); - if (lockObject == null) { - return super.getLineDelimiter(line); - } - synchronized (lockObject) { - return super.getLineDelimiter(line); - } - } - - /* - * @see org.eclipse.jface.text.AbstractDocument#getDefaultLineDelimiter() - * - * @since 3.5 - */ - public String getDefaultLineDelimiter() { - Object lockObject = getLockObject(); - if (lockObject == null) { - return super.getDefaultLineDelimiter(); - } - synchronized (lockObject) { - return super.getDefaultLineDelimiter(); - } - } - - /* - * @see org.eclipse.jface.text.AbstractDocument#getLineInformation(int) - * - * @since 3.5 - */ - public IRegion getLineInformation(int line) throws BadLocationException { - Object lockObject = getLockObject(); - if (lockObject == null) { - return super.getLineInformation(line); - } - synchronized (lockObject) { - return super.getLineInformation(line); - } - } - - /* - * @see org.eclipse.jface.text.AbstractDocument#getLineInformationOfOffset(int) - * - * @since 3.5 - */ - public IRegion getLineInformationOfOffset(int offset) throws BadLocationException { - Object lockObject = getLockObject(); - if (lockObject == null) { - return super.getLineInformationOfOffset(offset); - } - synchronized (lockObject) { - return super.getLineInformationOfOffset(offset); - } - } - - /* - * @see org.eclipse.jface.text.AbstractDocument#getLineLength(int) - * - * @since 3.5 - */ - public int getLineLength(int line) throws BadLocationException { - Object lockObject = getLockObject(); - if (lockObject == null) { - return super.getLineLength(line); - } - synchronized (lockObject) { - return super.getLineLength(line); - } - } - - /* - * @see org.eclipse.jface.text.AbstractDocument#getLineOffset(int) - * - * @since 3.5 - */ - public int getLineOffset(int line) throws BadLocationException { - Object lockObject = getLockObject(); - if (lockObject == null) { - return super.getLineOffset(line); - } - synchronized (lockObject) { - return super.getLineOffset(line); - } - } - - /* - * @see org.eclipse.jface.text.AbstractDocument#getLineOfOffset(int) - * - * @since 3.5 - */ - public int getLineOfOffset(int pos) throws BadLocationException { - Object lockObject = getLockObject(); - if (lockObject == null) { - return super.getLineOfOffset(pos); - } - synchronized (lockObject) { - return super.getLineOfOffset(pos); - } - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/TextFileBufferManager.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/TextFileBufferManager.java deleted file mode 100644 index 97973d0cb921..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/java/org/eclipse/core/internal/filebuffers/TextFileBufferManager.java +++ /dev/null @@ -1,852 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2000, - * 2012 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation Andrew Ferguson (Symbian) - - * [api] enable document setup participants to customize behavior based on resource being opened - - * https://bugs.eclipse.org/bugs/show_bug.cgi?id=208881 - * ***************************************************************************** - */ -package org.eclipse.core.internal.filebuffers; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import org.eclipse.core.filebuffers.IFileBuffer; -import org.eclipse.core.filebuffers.IFileBufferListener; -import org.eclipse.core.filebuffers.IFileBufferStatusCodes; -import org.eclipse.core.filebuffers.ISynchronizationContext; -import org.eclipse.core.filebuffers.ITextFileBuffer; -import org.eclipse.core.filebuffers.ITextFileBufferManager; -import org.eclipse.core.filebuffers.LocationKind; -import org.eclipse.core.runtime.Assert; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.ISafeRunnable; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.SafeRunner; -import org.eclipse.core.runtime.Status; -import org.eclipse.jface.text.IDocument; -import org.eclipse.jface.text.IDocumentExtension4; - -/** @since 3.0 */ -public class TextFileBufferManager implements ITextFileBufferManager { - - private abstract static class SafeNotifier implements ISafeRunnable { - public void handleException(Throwable ex) { - // NOTE: Logging is done by SafeRunner - } - } - - // protected static final IContentType TEXT_CONTENT_TYPE= - // Platform.getContentTypeManager().getContentType(IContentTypeManager.CT_TEXT); - - private Map fFilesBuffers = new HashMap(); - private Map fFileStoreFileBuffers = new HashMap(); - private List fFileBufferListeners = new ArrayList(); - protected ExtensionsRegistry fRegistry; - private ISynchronizationContext fSynchronizationContext; - - public TextFileBufferManager() { - fRegistry = new ExtensionsRegistry(); - } - - /** - * {@inheritDoc} - * - * @deprecated As of 3.3, replaced by {@link #connect(IPath, LocationKind, IProgressMonitor)} - */ - public void connect(IPath location, IProgressMonitor monitor) throws CoreException { - connect(location, LocationKind.NORMALIZE, monitor); - } - - /* - * @see org.eclipse.core.filebuffers.IFileBufferManager#connect(org.eclipse.core.runtime.IPath, org.eclipse.core.filebuffers.IFileBufferManager.LocationKind, org.eclipse.core.runtime.IProgressMonitor) - * @since 3.3 - */ - public void connect(IPath location, LocationKind locationKind, IProgressMonitor monitor) - throws CoreException { - Assert.isNotNull(location); - if (locationKind == LocationKind.NORMALIZE) location = normalizeLocation(location); - - AbstractFileBuffer fileBuffer = null; - synchronized (fFilesBuffers) { - fileBuffer = internalGetFileBuffer(location); - if (fileBuffer != null) { - fileBuffer.connect(); - return; - } - } - - fileBuffer = createFileBuffer(location, locationKind); - if (fileBuffer == null) - throw new CoreException( - new Status( - IStatus.ERROR, - FileBuffersPlugin.PLUGIN_ID, - IFileBufferStatusCodes.CREATION_FAILED, - FileBuffersMessages.FileBufferManager_error_canNotCreateFilebuffer, - null)); - - fileBuffer.create(location, monitor); - - synchronized (fFilesBuffers) { - AbstractFileBuffer oldFileBuffer = internalGetFileBuffer(location); - if (oldFileBuffer != null) { - fileBuffer.disconnect(); - fileBuffer.dispose(); - oldFileBuffer.connect(); - return; - } - fileBuffer.connect(); - fFilesBuffers.put(location, fileBuffer); - } - - // Do notification outside synchronized block - fireBufferCreated(fileBuffer); - } - - /* - // * @see org.eclipse.core.filebuffers.IFileBufferManager#connectFileStore(org.eclipse.core.filesystem.IFileStore, org.eclipse.core.runtime.IProgressMonitor) - // * @since 3.3 - // */ - // public void connectFileStore(IFileStore fileStore, IProgressMonitor monitor) throws - // CoreException { - // Assert.isLegal(fileStore != null); - // - // FileStoreFileBuffer fileBuffer= null; - // synchronized (fFileStoreFileBuffers) { - // fileBuffer= internalGetFileBuffer(fileStore); - // if (fileBuffer != null) { - // fileBuffer.connect(); - // return; - // } - // } - // - // fileBuffer= createFileBuffer(fileStore); - // if (fileBuffer == null) - // throw new CoreException(new Status(IStatus.ERROR, FileBuffersPlugin.PLUGIN_ID, - // IFileBufferStatusCodes.CREATION_FAILED, - // FileBuffersMessages.FileBufferManager_error_canNotCreateFilebuffer, null)); - // - // fileBuffer.create(fileStore, monitor); - // - // synchronized (fFileStoreFileBuffers) { - // AbstractFileBuffer oldFileBuffer= internalGetFileBuffer(fileStore); - // if (oldFileBuffer != null) { - // fileBuffer.disconnect(); - // fileBuffer.dispose(); - // oldFileBuffer.connect(); - // return; - // } - // fileBuffer.connect(); - // fFileStoreFileBuffers.put(fileStore, fileBuffer); - // } - // - // // Do notification outside synchronized block - // fireBufferCreated(fileBuffer); - // } - - /** - * {@inheritDoc} - * - * @deprecated As of 3.3, replaced by {@link #disconnect(IPath, LocationKind, IProgressMonitor)} - */ - public void disconnect(IPath location, IProgressMonitor monitor) throws CoreException { - disconnect(location, LocationKind.NORMALIZE, monitor); - } - - /* - * @since 3.3 - */ - protected IPath normalizeLocation(IPath location) { - return location; - } - - /* - * @see org.eclipse.core.filebuffers.IFileBufferManager#disconnect(org.eclipse.core.runtime.IPath, org.eclipse.core.filebuffers.IFileBufferManager.LocationKind, org.eclipse.core.runtime.IProgressMonitor) - * @since 3.3 - */ - public void disconnect(IPath location, LocationKind locationKind, IProgressMonitor monitor) - throws CoreException { - Assert.isNotNull(location); - if (locationKind == LocationKind.NORMALIZE) location = normalizeLocation(location); - - AbstractFileBuffer fileBuffer; - synchronized (fFilesBuffers) { - fileBuffer = internalGetFileBuffer(location); - if (fileBuffer == null) return; - - fileBuffer.disconnect(); - if (!fileBuffer.isDisconnected()) return; - - fFilesBuffers.remove(location); - } - - // Do notification outside synchronized block - fireBufferDisposed(fileBuffer); - fileBuffer.dispose(); - } - - // /* - // * @see - // org.eclipse.core.filebuffers.IFileBufferManager#disconnectFileStore(org.eclipse.core.filesystem.IFileStore, org.eclipse.core.runtime.IProgressMonitor) - // * @since 3.3 - // */ - // public void disconnectFileStore(IFileStore fileStore, IProgressMonitor monitor) throws - // CoreException { - // Assert.isLegal(fileStore != null); - // - // AbstractFileBuffer fileBuffer; - // synchronized (fFileStoreFileBuffers) { - // fileBuffer= internalGetFileBuffer(fileStore); - // if (fileBuffer == null) - // return; - // - // fileBuffer.disconnect(); - // if (!fileBuffer.isDisconnected()) - // return; - // - // fFileStoreFileBuffers.remove(fileStore); - // } - // - // // Do notification outside synchronized block - // fireBufferDisposed(fileBuffer); - // fileBuffer.dispose(); - // } - - // /** - // * {@inheritDoc} - // * - // * @deprecated As of 3.2, replaced by {@link #isTextFileLocation(IPath, boolean)} - // */ - // public boolean isTextFileLocation(IPath location) { - // return isTextFileLocation(location, false); - // } - // - // /** - // * Returns whether a file store at the given location is or can be considered a - // * text file. If the file store exists, the concrete content type of the file store is - // * checked. If the concrete content type for the existing file store can not be - // * determined, this method returns !strict. If the file store does - // * not exist, it is checked whether a text content type is associated with - // * the given location. If no content type is associated with the location, - // * this method returns !strict. - // *

- // * The provided location is either a full path of a workspace resource or an - // * absolute path in the local file system. The file buffer manager does not - // * resolve the location of workspace resources in the case of linked - // * resources. - // *

- // * - // * @param fileStore file store to check - // * @param strict true if a file with unknown content type - // * is not treated as text file, false otherwise - // * @return true if the location is a text file location - // * @since 3.3 - // */ - // protected boolean isTextFileLocation(IFileStore fileStore, boolean strict) { - // if (fileStore == null) - // return false; - // - // IContentTypeManager manager= Platform.getContentTypeManager(); - // IFileInfo fileInfo= fileStore.fetchInfo(); - // if (fileInfo.exists()) { - // InputStream is= null; - // try { - // is= fileStore.openInputStream(EFS.NONE, null); - // IContentDescription description= manager.getDescriptionFor(is, fileStore.getName(), - // IContentDescription.ALL); - // if (description != null) { - // IContentType type= description.getContentType(); - // if (type != null) - // return type.isKindOf(TEXT_CONTENT_TYPE); - // } - // } catch (CoreException ex) { - // // ignore: API specification tells return true if content type can't be determined - // } catch (IOException ex) { - // // ignore: API specification tells return true if content type can't be determined - // } finally { - // if (is != null ) { - // try { - // is.close(); - // } catch (IOException e) { - // // ignore: API specification tells to return true if content type can't be determined - // } - // } - // } - // - // return !strict; - // - // } - // - // IContentType[] contentTypes= manager.findContentTypesFor(fileStore.getName()); - // if (contentTypes != null && contentTypes.length > 0) { - // for (int i= 0; i < contentTypes.length; i++) - // if (contentTypes[i].isKindOf(TEXT_CONTENT_TYPE)) - // return true; - // return false; - // } - // return !strict; - // } - - /* - * @see org.eclipse.core.filebuffers.ITextFileBufferManager#isTextFileLocation(org.eclipse.core.runtime.IPath, boolean) - * @since 3.2 - */ - public boolean isTextFileLocation(IPath location, boolean strict) { - // Assert.isNotNull(location); - // location= normalizeLocation(location); - // try { - // return isTextFileLocation(lo, strict); - // } catch (CoreException ex) { - // return false; - // } - return true; - } - - /** - * {@inheritDoc} - * - * @deprecated As of 3.3, replaced by {@link #getFileBuffer(IPath, LocationKind)} - */ - public IFileBuffer getFileBuffer(IPath location) { - return getFileBuffer(location, LocationKind.NORMALIZE); - } - - /* - * @see org.eclipse.core.filebuffers.IFileBufferManager#getFileBuffer(org.eclipse.core.runtime.IPath, org.eclipse.core.filebuffers.IFileBufferManager.LocationKind) - * @since 3.3 - */ - public IFileBuffer getFileBuffer(IPath location, LocationKind locationKind) { - if (locationKind == LocationKind.NORMALIZE) location = normalizeLocation(location); - return internalGetFileBuffer(location); - } - - // /* - // * @see - // org.eclipse.core.filebuffers.IFileBufferManager#getFileStoreFileBuffer(org.eclipse.core.filesystem.IFileStore) - // * @since 3.3 - // */ - // public IFileBuffer getFileStoreFileBuffer(IFileStore fileStore) { - // Assert.isLegal(fileStore != null); - // return internalGetFileBuffer(fileStore); - // } - - private AbstractFileBuffer internalGetFileBuffer(IPath location) { - synchronized (fFilesBuffers) { - return (AbstractFileBuffer) fFilesBuffers.get(location); - } - } - - // private FileStoreFileBuffer internalGetFileBuffer(IFileStore fileStore) { - // synchronized (fFileStoreFileBuffers) { - // return (FileStoreFileBuffer)fFileStoreFileBuffers.get(fileStore); - // } - // } - - /** - * {@inheritDoc} - * - * @deprecated As of 3.3, replaced by {@link #getTextFileBuffer(IPath, LocationKind)} - */ - public ITextFileBuffer getTextFileBuffer(IPath location) { - return getTextFileBuffer(location, LocationKind.NORMALIZE); - } - - /* - * @see org.eclipse.core.filebuffers.ITextFileBufferManager#getTextFileBuffer(org.eclipse.core.runtime.IPath, org.eclipse.core.filebuffers.IFileBufferManager.LocationKind) - * @since 3.3 - */ - public ITextFileBuffer getTextFileBuffer(IPath location, LocationKind locationKind) { - return (ITextFileBuffer) getFileBuffer(location, locationKind); - } - // - // /* - // * @see - // org.eclipse.core.filebuffers.ITextFileBufferManager#getFileStoreTextFileBuffer(org.eclipse.core.filesystem.IFileStore) - // * @since 3.3 - // */ - // public ITextFileBuffer getFileStoreTextFileBuffer(IFileStore fileStore) { - // Assert.isLegal(fileStore != null); - // return (ITextFileBuffer)getFileStoreFileBuffer(fileStore); - // } - - /* - * @see org.eclipse.core.filebuffers.ITextFileBufferManager#getTextFileBuffer(org.eclipse.jface.text.IDocument) - * @since 3.3 - */ - public ITextFileBuffer getTextFileBuffer(IDocument document) { - Assert.isLegal(document != null); - Iterator iter; - synchronized (fFilesBuffers) { - iter = new ArrayList(fFilesBuffers.values()).iterator(); - } - - while (iter.hasNext()) { - Object buffer = iter.next(); - if (buffer instanceof ITextFileBuffer) { - ITextFileBuffer textFileBuffer = (ITextFileBuffer) buffer; - if (textFileBuffer.getDocument() == document) { - if (!((AbstractFileBuffer) textFileBuffer).isDisconnected()) return textFileBuffer; - return null; - } - } - } - synchronized (fFileStoreFileBuffers) { - iter = new ArrayList(fFileStoreFileBuffers.values()).iterator(); - } - while (iter.hasNext()) { - Object buffer = iter.next(); - if (buffer instanceof ITextFileBuffer) { - ITextFileBuffer textFileBuffer = (ITextFileBuffer) buffer; - if (textFileBuffer.getDocument() == document) { - if (!((AbstractFileBuffer) textFileBuffer).isDisconnected()) return textFileBuffer; - } - } - } - return null; - } - - /* - * @see org.eclipse.core.filebuffers.IFileBufferManager#getFileBuffers() - * @since 3.4 - */ - public IFileBuffer[] getFileBuffers() { - synchronized (fFilesBuffers) { - Collection values = fFilesBuffers.values(); - return (IFileBuffer[]) values.toArray(new IFileBuffer[values.size()]); - } - } - - /* - * @see org.eclipse.core.filebuffers.IFileBufferManager#getFileStoreFileBuffers() - * @since 3.4 - */ - public IFileBuffer[] getFileStoreFileBuffers() { - synchronized (fFileStoreFileBuffers) { - Collection values = fFileStoreFileBuffers.values(); - return (IFileBuffer[]) values.toArray(new IFileBuffer[values.size()]); - } - } - - /* - * @see org.eclipse.core.buffer.text.IBufferedFileManager#getDefaultEncoding() - */ - public String getDefaultEncoding() { - return System.getProperty("file.encoding"); // $NON-NLS-1$; - } - - /** - * {@inheritDoc} - * - * @deprecated As of 3.3, replaced by {@link #createEmptyDocument(IPath, LocationKind)} - */ - public IDocument createEmptyDocument(IPath location) { - return createEmptyDocument(location, LocationKind.NORMALIZE); - } - - /* - * @see org.eclipse.core.filebuffers.ITextFileBufferManager#createEmptyDocument(org.eclipse.core.runtime.IPath, org.eclipse.core.filebuffers.LocationKind) - * @since 3.3 - */ - public IDocument createEmptyDocument(final IPath location, final LocationKind locationKind) { - // IDocument documentFromFactory= createDocumentFromFactory(location, locationKind); - final IDocument document; - // if (documentFromFactory != null) - // document= documentFromFactory; - // else - document = new SynchronizableDocument(); - - if (location == null) return document; - - // Set the initial line delimiter - if (document instanceof IDocumentExtension4) { - String initalLineDelimiter = getLineDelimiterPreference(location, locationKind); - if (initalLineDelimiter != null) - ((IDocumentExtension4) document).setInitialLineDelimiter(initalLineDelimiter); - } - - // final IDocumentSetupParticipant[] participants= - // fRegistry.getDocumentSetupParticipants(location, locationKind); - // if (participants != null) { - // for (int i= 0; i < participants.length; i++) { - // final IDocumentSetupParticipant participant= participants[i]; - // ISafeRunnable runnable= new ISafeRunnable() { - // public void run() throws Exception { - // if (participant instanceof IDocumentSetupParticipantExtension) - // ((IDocumentSetupParticipantExtension)participant).setup(document, location, - // locationKind); - // else - // participant.setup(document); - // - // if (document.getDocumentPartitioner() != null) { - // String message= - // NLSUtility.format(FileBuffersMessages.TextFileBufferManager_warning_documentSetupInstallsDefaultPartitioner, participant.getClass()); - // IStatus status= new Status(IStatus.WARNING, FileBuffersPlugin.PLUGIN_ID, IStatus.OK, - // message, null); - // FileBuffersPlugin.getDefault().log(status); - // } - // } - // public void handleException(Throwable t) { - // IStatus status= new Status(IStatus.ERROR, FileBuffersPlugin.PLUGIN_ID, IStatus.OK, - // FileBuffersMessages.TextFileBufferManager_error_documentSetupFailed, t); - // FileBuffersPlugin.getDefault().log(status); - // } - // }; - // SafeRunner.run(runnable); - // } - // } - - return document; - } - - // /** - // * Helper to get rid of deprecation warnings. - // * - // * @param location the location of the file to be connected - // * @param locationKind the kind of the given location - // * @return the created empty document or null if none got created - // * @since 3.5 - // * @deprecated As of 3.5 - // */ - // private IDocument createDocumentFromFactory(final IPath location, final LocationKind - // locationKind) { - // final IDocument[] runnableResult= new IDocument[1]; - // if (location != null) { - // final org.eclipse.core.filebuffers.IDocumentFactory factory= - // fRegistry.getDocumentFactory(location, locationKind); - // if (factory != null) { - // ISafeRunnable runnable= new ISafeRunnable() { - // public void run() throws Exception { - // runnableResult[0]= factory.createDocument(); - // } - // public void handleException(Throwable t) { - // IStatus status= new Status(IStatus.ERROR, FileBuffersPlugin.PLUGIN_ID, IStatus.OK, - // FileBuffersMessages.TextFileBufferManager_error_documentFactoryFailed, t); - // FileBuffersPlugin.getDefault().log(status); - // } - // }; - // SafeRunner.run(runnable); - // } - // } - // return runnableResult[0]; - // } - - // /** - // * {@inheritDoc} - // * - // * @deprecated As of 3.3, replaced by {@link #createAnnotationModel(IPath, LocationKind)} - // */ - // public IAnnotationModel createAnnotationModel(IPath location) { - // return createAnnotationModel(location, LocationKind.NORMALIZE); - // } - - // /* - // * @see - // org.eclipse.core.filebuffers.ITextFileBufferManager#createAnnotationModel(org.eclipse.core.runtime.IPath, org.eclipse.core.filebuffers.LocationKind) - // * @since 3.3 - // */ - // public IAnnotationModel createAnnotationModel(IPath location, LocationKind locationKind) { - // Assert.isNotNull(location); - // IAnnotationModelFactory factory= fRegistry.getAnnotationModelFactory(location, locationKind); - // if (factory != null) - // return factory.createAnnotationModel(location); - // return null; - // } - // - // /* - // * @see - // org.eclipse.core.filebuffers.IFileBufferManager#addFileBufferListener(org.eclipse.core.filebuffers.IFileBufferListener) - // */ - // public void addFileBufferListener(IFileBufferListener listener) { - // Assert.isNotNull(listener); - // synchronized (fFileBufferListeners) { - // if (!fFileBufferListeners.contains(listener)) - // fFileBufferListeners.add(listener); - // } - // } - // - // /* - // * @see - // org.eclipse.core.filebuffers.IFileBufferManager#removeFileBufferListener(org.eclipse.core.filebuffers.IFileBufferListener) - // */ - // public void removeFileBufferListener(IFileBufferListener listener) { - // Assert.isNotNull(listener); - // synchronized (fFileBufferListeners) { - // fFileBufferListeners.remove(listener); - // } - // } - // - /* - * @see org.eclipse.core.filebuffers.IFileBufferManager#setSynchronizationContext(org.eclipse.core.filebuffers.ISynchronizationContext) - */ - public void setSynchronizationContext(ISynchronizationContext context) { - fSynchronizationContext = context; - } - - /** - * {@inheritDoc} - * - * @deprecated As of 3.1, replaced by {@link - * org.eclipse.core.filebuffers.IFileBuffer#requestSynchronizationContext()} - */ - public void requestSynchronizationContext(IPath location) { - Assert.isNotNull(location); - location = normalizeLocation(location); - - AbstractFileBuffer fileBuffer = internalGetFileBuffer(location); - if (fileBuffer != null) fileBuffer.requestSynchronizationContext(); - } - - /** - * {@inheritDoc} - * - * @deprecated As of 3.1, replaced by {@link IFileBuffer#releaseSynchronizationContext()} - */ - public void releaseSynchronizationContext(IPath location) { - Assert.isNotNull(location); - location = normalizeLocation(location); - - AbstractFileBuffer fileBuffer = internalGetFileBuffer(location); - if (fileBuffer != null) fileBuffer.releaseSynchronizationContext(); - } - - @Override - public void addFileBufferListener(IFileBufferListener listener) { - throw new UnsupportedOperationException(); - } - - @Override - public void removeFileBufferListener(IFileBufferListener listener) { - throw new UnsupportedOperationException(); - } - - /** {@inheritDoc} */ - public void execute(Runnable runnable) { - if (fSynchronizationContext != null) fSynchronizationContext.run(runnable); - else runnable.run(); - } - - private AbstractFileBuffer createFileBuffer(IPath location, LocationKind locationKind) { - /* - * XXX: the following code is commented out for performance - * reasons and because we do not yet create a special binary - * file buffer. - */ - // if (isTextFileLocation(location, false)) - // return createTextFileBuffer(location); - // return createBinaryFileBuffer(location, locationKind); - return createTextFileBuffer(location, locationKind); - } - - /** - * Creates a text file buffer for the given path. - * - * @param location the location of the file to be connected - * @param locationKind the kind of the given location - * @return the text file buffer - * @since 3.3 - */ - protected AbstractFileBuffer createTextFileBuffer(IPath location, LocationKind locationKind) { - // Assert.isLegal(locationKind != LocationKind.IFILE); - return new FileStoreTextFileBuffer(this); - } - - // private AbstractFileBuffer createBinaryFileBuffer(IPath location, LocationKind locationKind) { - // // XXX: should return a binary file buffer - using text file buffer for now - // return createTextFileBuffer(location, locationKind); - // } - - // private FileStoreFileBuffer createFileBuffer(IFileStore location) { - // /* - // * XXX: the following code is commented out for performance - // * reasons and because we do not yet create a special binary - // * file buffer. - // */ - //// if (isTextFileLocation(location, false)) - //// return createTextFileBuffer(location); - //// return createBinaryFileBuffer(location); - // return createTextFileBuffer(location); - // - // } - - // /** - // * Creates a text file buffer for the given file store. - // * - // * @param location the file store - // * @return the text file buffer - // * @since 3.3 - // */ - // protected FileStoreFileBuffer createTextFileBuffer(IFileStore location) { - // return new FileStoreTextFileBuffer(this); - // } - - // private FileStoreFileBuffer createBinaryFileBuffer(FileStore location) { - // // XXX: should return a binary file buffer - using text file buffer for now - // return createTextFileBuffer(location); - // } - - private Iterator getFileBufferListenerIterator() { - synchronized (fFileBufferListeners) { - return new ArrayList(fFileBufferListeners).iterator(); - } - } - - protected void fireDirtyStateChanged(final IFileBuffer buffer, final boolean isDirty) { - Iterator e = getFileBufferListenerIterator(); - while (e.hasNext()) { - final IFileBufferListener l = (IFileBufferListener) e.next(); - SafeRunner.run( - new SafeNotifier() { - public void run() { - l.dirtyStateChanged(buffer, isDirty); - } - }); - } - } - - protected void fireBufferContentAboutToBeReplaced(final IFileBuffer buffer) { - Iterator e = getFileBufferListenerIterator(); - while (e.hasNext()) { - final IFileBufferListener l = (IFileBufferListener) e.next(); - SafeRunner.run( - new SafeNotifier() { - public void run() { - l.bufferContentAboutToBeReplaced(buffer); - } - }); - } - } - - protected void fireBufferContentReplaced(final IFileBuffer buffer) { - Iterator e = getFileBufferListenerIterator(); - while (e.hasNext()) { - final IFileBufferListener l = (IFileBufferListener) e.next(); - SafeRunner.run( - new SafeNotifier() { - public void run() { - l.bufferContentReplaced(buffer); - } - }); - } - } - - protected void fireUnderlyingFileMoved(final IFileBuffer buffer, final IPath target) { - Iterator e = getFileBufferListenerIterator(); - while (e.hasNext()) { - final IFileBufferListener l = (IFileBufferListener) e.next(); - SafeRunner.run( - new SafeNotifier() { - public void run() { - l.underlyingFileMoved(buffer, target); - } - }); - } - } - - protected void fireUnderlyingFileDeleted(final IFileBuffer buffer) { - Iterator e = getFileBufferListenerIterator(); - while (e.hasNext()) { - final IFileBufferListener l = (IFileBufferListener) e.next(); - SafeRunner.run( - new SafeNotifier() { - public void run() { - l.underlyingFileDeleted(buffer); - } - }); - } - } - - protected void fireStateValidationChanged( - final IFileBuffer buffer, final boolean isStateValidated) { - Iterator e = getFileBufferListenerIterator(); - while (e.hasNext()) { - final IFileBufferListener l = (IFileBufferListener) e.next(); - SafeRunner.run( - new SafeNotifier() { - public void run() { - l.stateValidationChanged(buffer, isStateValidated); - } - }); - } - } - - protected void fireStateChanging(final IFileBuffer buffer) { - Iterator e = getFileBufferListenerIterator(); - while (e.hasNext()) { - final IFileBufferListener l = (IFileBufferListener) e.next(); - SafeRunner.run( - new SafeNotifier() { - public void run() { - l.stateChanging(buffer); - } - }); - } - } - - protected void fireStateChangeFailed(final IFileBuffer buffer) { - Iterator e = getFileBufferListenerIterator(); - while (e.hasNext()) { - final IFileBufferListener l = (IFileBufferListener) e.next(); - SafeRunner.run( - new SafeNotifier() { - public void run() { - l.stateChangeFailed(buffer); - } - }); - } - } - - protected void fireBufferCreated(final IFileBuffer buffer) { - Iterator e = getFileBufferListenerIterator(); - while (e.hasNext()) { - final IFileBufferListener l = (IFileBufferListener) e.next(); - SafeRunner.run( - new SafeNotifier() { - public void run() { - l.bufferCreated(buffer); - } - }); - } - } - - protected void fireBufferDisposed(final IFileBuffer buffer) { - Iterator e = getFileBufferListenerIterator(); - while (e.hasNext()) { - final IFileBufferListener l = (IFileBufferListener) e.next(); - SafeRunner.run( - new SafeNotifier() { - public void run() { - l.bufferDisposed(buffer); - } - }); - } - } - - /* - * @see org.eclipse.core.filebuffers.IFileBufferManager#validateState(org.eclipse.core.filebuffers.IFileBuffer[], org.eclipse.core.runtime.IProgressMonitor, java.lang.Object) - * @since 3.1 - */ - public void validateState( - final IFileBuffer[] fileBuffers, IProgressMonitor monitor, final Object computationContext) - throws CoreException {} - - /** - * Returns the line delimiter to be used by the given location. - * - * @param location the location of the file to be connected - * @param locationKind the kind of the given location - * @return the line delimiter - * @since 3.3 - */ - protected String getLineDelimiterPreference(IPath location, LocationKind locationKind) { - return System.getProperty("line.separator"); // $NON-NLS-1$ - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/resources/org/eclipse/core/internal/filebuffers/FileBuffersMessages.properties b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/resources/org/eclipse/core/internal/filebuffers/FileBuffersMessages.properties deleted file mode 100644 index 817d8c2362a0..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filebuffers/src/main/resources/org/eclipse/core/internal/filebuffers/FileBuffersMessages.properties +++ /dev/null @@ -1,39 +0,0 @@ -############################################################################### -# Copyright (c) 2000, 2014 IBM Corporation and others. -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -# -# Contributors: -# IBM Corporation - initial API and implementation -############################################################################### - -ExtensionsRegistry_error_extensionPointNotFound= Extension point "{0}" not found. -ExtensionsRegistry_error_contentTypeDoesNotExist= The content type with id "{0}" specified in the extension point does not exist. - -ResourceFileBuffer_error_cannot_determine_URI= Cannot determine URI for ''{0}''. -ResourceFileBuffer_warning_fileIsDerived= This file is derived and does not allow to be modified. -ResourceFileBuffer_stateValidationFailed= State validation failed. - -FileBuffer_error_outOfSync= The file is not synchronized with the local file system. - -FileBuffer_status_error= Error -FileBuffer_error_queryContentDescription= Could not query content description for: {0} - -FileBufferManager_error_canNotCreateFilebuffer= Cannot create file buffer. - -ResourceTextFileBuffer_error_illegal_encoding_message_arg= Character encoding "{0}" is not a legal character encoding. -ResourceTextFileBuffer_error_unsupported_encoding_message_arg= Character encoding "{0}" is not supported by this platform. -ResourceTextFileBuffer_error_charset_mapping_failed_message_arg=Some characters cannot be mapped using "{0}" character encoding.\nEither change the encoding or remove the characters which are not supported by the "{0}" character encoding. -ResourceTextFileBuffer_task_saving= Saving - -ResourceFileBuffer_task_creatingFileBuffer=creating file buffer - -JavaTextFileBuffer_error_closeStream= Could not close stream. - -TextFileBufferManager_error_documentSetupFailed= A document setup participant failed to setup the document. -TextFileBufferManager_error_documentFactoryFailed= A document factory failed to create the document. -TextFileBufferManager_warning_documentSetupInstallsDefaultPartitioner= ''{0}'' must not install a default partitioner.\n\tWhen a ''org.eclipse.core.filebuffers.documentSetup'' extension wants to install partitioning on the document, it must use the ''org.eclipse.jface.text.IDocumentExtension3'' API and use a unique partitioning. - -DocumentInputStream_error_streamClosed= Stream closed diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/pom.xml b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/pom.xml deleted file mode 100644 index 2e10564c45ed..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/pom.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - - 4.0.0 - - che-plugin-java-ext-jdt-parent - org.eclipse.che.plugin - 6.13.0-SNAPSHOT - - org.eclipse.core.filesystem - jar - Che Plugin :: Java :: org.eclipse.core.filesystem - - false - - - - com.google.inject - guice - - - org.eclipse.birt.runtime - org.eclipse.core.jobs - - - org.eclipse.birt.runtime - org.eclipse.core.runtime - - - org.eclipse.birt.runtime - org.eclipse.equinox.common - - - org.eclipse.core - contenttype - - - org.eclipse.text - org.eclipse.text - - - org.eclipse.tycho - org.eclipse.osgi - - - - - - org.apache.maven.plugins - maven-dependency-plugin - - - analyze - - true - - - - - - com.mycila - license-maven-plugin - - - **/*.png - **/*.gif - **/*.rscjson - **/*.zip - **/*.txt - **/*.jpg - **/*.rsc - **/*.json - **/org/eclipse/core/** - **/org/eclipse/che/** - - - - - - diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/filesystem/EFS.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/filesystem/EFS.java deleted file mode 100644 index c30545d122aa..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/filesystem/EFS.java +++ /dev/null @@ -1,475 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2005, - * 2013 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation Martin Oberhuber (Wind River) - - * [170317] add symbolic link support to API - * ***************************************************************************** - */ -package org.eclipse.core.filesystem; - -import java.io.File; -import java.net.URI; -import org.eclipse.core.internal.filesystem.LocalFile; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IProgressMonitor; - -/** - * This class is the main entry point for clients of the Eclipse file system API. This class has - * factory methods for obtaining instances of file systems and file stores, and provides constants - * for option values and error codes. - * - * @since org.eclipse.core.filesystem 1.0 - * @noextend This class is not intended to be subclassed by clients. - * @noinstantiate This class is not intended to be instantiated by clients. - */ -public class EFS { - - /** - * The unique identifier constant (value "org.eclipse.core.filesystem") of the Core - * file system plug-in. - */ - public static final String PI_FILE_SYSTEM = "org.eclipse.core.filesystem"; // $NON-NLS-1$ - - /** - * The simple identifier constant (value "filesystems") of the extension point of the - * Core file system plug-in where plug-ins declare file system implementations. - */ - public static final String PT_FILE_SYSTEMS = "filesystems"; // $NON-NLS-1$ - - /** - * A constant known to be zero (0), used in operations which take bit flags to indicate that "no - * bits are set". This value is also used as a default value in cases where a file system - * attribute cannot be computed. - * - * @see IFileInfo#getLength() - * @see IFileInfo#getLastModified() - */ - public static final int NONE = 0; - - /** - * Option flag constant (value 1 <<0) indicating a file opened for appending data to the - * end. - * - * @see IFileStore#openOutputStream(int, IProgressMonitor) - */ - public static final int APPEND = 1 << 0; - - /** - * Option flag constant (value 1 <<1) indicating that existing files may be overwritten. - * - * @see IFileStore#copy(IFileStore, int, IProgressMonitor) - * @see IFileStore#move(IFileStore, int, IProgressMonitor) - */ - public static final int OVERWRITE = 1 << 1; - - /** - * Option flag constant (value 1 <<2) indicating that an operation acts on a single file or - * directory, and not its parents or children. - * - * @see IFileStore#copy(IFileStore, int, IProgressMonitor) - * @see IFileStore#mkdir(int, IProgressMonitor) - */ - public static final int SHALLOW = 1 << 2; - - /** - * Option flag constant (value 1 <<10) indicating that a file's attributes should be - * updated. - * - * @see IFileStore#putInfo(IFileInfo, int, IProgressMonitor) - */ - public static final int SET_ATTRIBUTES = 1 << 10; - - /** - * Option flag constant (value 1 <<11) indicating that a file's last modified time should be - * updated. - * - * @see IFileStore#putInfo(IFileInfo, int, IProgressMonitor) - */ - public static final int SET_LAST_MODIFIED = 1 << 11; - - /** - * Option flag constant (value 1 <<12) indicating that a cached representation of a file - * should be returned. - * - * @see IFileStore#toLocalFile(int, IProgressMonitor) - */ - public static final int CACHE = 1 << 12; - - /** - * Attribute constant (value 1 <<1) indicating that a file is read only. - * - * @see IFileStore#fetchInfo() - * @see IFileStore#putInfo(IFileInfo, int, IProgressMonitor) - * @see IFileInfo#getAttribute(int) - * @see IFileInfo#setAttribute(int, boolean) - */ - public static final int ATTRIBUTE_READ_ONLY = 1 << 1; - - /** - * Attribute constant (value 1 <<21) indicating that a file is marked with immutable flag. - * - * @see IFileStore#fetchInfo() - * @see IFileStore#putInfo(IFileInfo, int, IProgressMonitor) - * @see IFileInfo#getAttribute(int) - * @see IFileInfo#setAttribute(int, boolean) - * @since org.eclipse.core.filesystem 1.3 - */ - public static final int ATTRIBUTE_IMMUTABLE = 1 << 21; - - /** - * Attribute constant (value 1 <<22) indicating that a file's owner has a read permission. - * - * @see IFileStore#fetchInfo() - * @see IFileStore#putInfo(IFileInfo, int, IProgressMonitor) - * @see IFileInfo#getAttribute(int) - * @see IFileInfo#setAttribute(int, boolean) - * @since org.eclipse.core.filesystem 1.3 - */ - public static final int ATTRIBUTE_OWNER_READ = 1 << 22; - - /** - * Attribute constant (value 1 <<23) indicating that file's owner has a write permission. - * - * @see IFileStore#fetchInfo() - * @see IFileStore#putInfo(IFileInfo, int, IProgressMonitor) - * @see IFileInfo#getAttribute(int) - * @see IFileInfo#setAttribute(int, boolean) - * @since org.eclipse.core.filesystem 1.3 - */ - public static final int ATTRIBUTE_OWNER_WRITE = 1 << 23; - - /** - * Attribute constant (value 1 <<24) indicating that file's owner has an execute permission. - * - * @see IFileStore#fetchInfo() - * @see IFileStore#putInfo(IFileInfo, int, IProgressMonitor) - * @see IFileInfo#getAttribute(int) - * @see IFileInfo#setAttribute(int, boolean) - * @since org.eclipse.core.filesystem 1.3 - */ - public static final int ATTRIBUTE_OWNER_EXECUTE = 1 << 24; - - /** - * Attribute constant (value 1 <<25) indicating that users in file's group have a read - * permission. - * - * @see IFileStore#fetchInfo() - * @see IFileStore#putInfo(IFileInfo, int, IProgressMonitor) - * @see IFileInfo#getAttribute(int) - * @see IFileInfo#setAttribute(int, boolean) - * @since org.eclipse.core.filesystem 1.3 - */ - public static final int ATTRIBUTE_GROUP_READ = 1 << 25; - - /** - * Attribute constant (value 1 <<26) indicating that users in file's group have a write - * permission. - * - * @see IFileStore#fetchInfo() - * @see IFileStore#putInfo(IFileInfo, int, IProgressMonitor) - * @see IFileInfo#getAttribute(int) - * @see IFileInfo#setAttribute(int, boolean) - * @since org.eclipse.core.filesystem 1.3 - */ - public static final int ATTRIBUTE_GROUP_WRITE = 1 << 26; - - /** - * Attribute constant (value 1 <<27) indicating that users in file's group have an execute - * permission. - * - * @see IFileStore#fetchInfo() - * @see IFileStore#putInfo(IFileInfo, int, IProgressMonitor) - * @see IFileInfo#getAttribute(int) - * @see IFileInfo#setAttribute(int, boolean) - * @since org.eclipse.core.filesystem 1.3 - */ - public static final int ATTRIBUTE_GROUP_EXECUTE = 1 << 27; - - /** - * Attribute constant (value 1 <<28) indicating that other users have a read permission. - * - * @see IFileStore#fetchInfo() - * @see IFileStore#putInfo(IFileInfo, int, IProgressMonitor) - * @see IFileInfo#getAttribute(int) - * @see IFileInfo#setAttribute(int, boolean) - * @since org.eclipse.core.filesystem 1.3 - */ - public static final int ATTRIBUTE_OTHER_READ = 1 << 28; - - /** - * Attribute constant (value 1 <<29) indicating that other users have a write permission. - * - * @see IFileStore#fetchInfo() - * @see IFileStore#putInfo(IFileInfo, int, IProgressMonitor) - * @see IFileInfo#getAttribute(int) - * @see IFileInfo#setAttribute(int, boolean) - * @since org.eclipse.core.filesystem 1.3 - */ - public static final int ATTRIBUTE_OTHER_WRITE = 1 << 29; - - /** - * Attribute constant (value 1 <<30) indicating that other users have an execute permission. - * - * @see IFileStore#fetchInfo() - * @see IFileStore#putInfo(IFileInfo, int, IProgressMonitor) - * @see IFileInfo#getAttribute(int) - * @see IFileInfo#setAttribute(int, boolean) - * @since org.eclipse.core.filesystem 1.3 - */ - public static final int ATTRIBUTE_OTHER_EXECUTE = 1 << 30; - - /** - * Attribute constant (value 1 <<2) indicating that a file is a executable. - * - * @see IFileStore#fetchInfo() - * @see IFileStore#putInfo(IFileInfo, int, IProgressMonitor) - * @see IFileInfo#getAttribute(int) - * @see IFileInfo#setAttribute(int, boolean) - */ - public static final int ATTRIBUTE_EXECUTABLE = 1 << 2; - - /** - * Attribute constant (value 1 <<3) indicating that a file is an archive. - * - * @see IFileStore#fetchInfo() - * @see IFileStore#putInfo(IFileInfo, int, IProgressMonitor) - * @see IFileInfo#getAttribute(int) - * @see IFileInfo#setAttribute(int, boolean) - */ - public static final int ATTRIBUTE_ARCHIVE = 1 << 3; - - /** - * Attribute constant (value 1 <<4) indicating that a file is hidden. - * - * @see IFileStore#fetchInfo() - * @see IFileStore#putInfo(IFileInfo, int, IProgressMonitor) - * @see IFileInfo#getAttribute(int) - * @see IFileInfo#setAttribute(int, boolean) - */ - public static final int ATTRIBUTE_HIDDEN = 1 << 4; - - /** - * Attribute constant (value 1 <<5) indicating that a file is a symbolic link. - * - *

If this attribute is true for a given {@link IFileInfo} instance, a String - * value may be associated with the attribute holding the symbolic link target. This link target - * can be retrieved with {@link IFileInfo#getStringAttribute(int)} with attribute type {@link - * #ATTRIBUTE_LINK_TARGET}. - * - *

Symbolic links are handled transparently, as implemented by the underlying operating system. - * This means, that all other attributes of a {@link IFileInfo} apply to the link target instead - * of the link. Reading or writing a file, or changing attributes applies to the link target and - * not the link itself. In case a symbolic link points to another symbolic link, the chain of - * links is transparently followed and operations apply to the actual file or directory being - * referenced by the chain of symbolic links. - * - *

Broken symbolic links (which do not reference any valid file or directory) are being - * returned by {@link IFileStore#childInfos(int, IProgressMonitor)}, but {@link - * IFileInfo#exists()} returns false for these. Operations like reading or writing on - * broken symbolic links throw a "file not found" exception. - * - * @see IFileStore#fetchInfo() - * @see IFileStore#putInfo(IFileInfo, int, IProgressMonitor) - * @see IFileInfo#getAttribute(int) - * @see IFileInfo#setAttribute(int, boolean) - * @since org.eclipse.core.filesystem 1.1 - */ - public static final int ATTRIBUTE_SYMLINK = 1 << 5; - - /** - * Attribute constant (value 1 <<6) for a string attribute indicating the target file name - * of a symbolic link. - * - *

Note that setting the link target attribute does not cause a symbolic link to be created, or - * changed to link to a different file. Rather, this attribute is set by file system - * implementations based on the current state of a link. - * - * @see IFileInfo#getStringAttribute(int) - * @see FileInfo#setStringAttribute(int, String) - * @see #ATTRIBUTE_SYMLINK - * @since org.eclipse.core.filesystem 1.1 - */ - public static final int ATTRIBUTE_LINK_TARGET = 1 << 6; - - /** - * Scheme constant (value "file") indicating the local file system scheme. - * - * @see EFS#getLocalFileSystem() - */ - public static final String SCHEME_FILE = "file"; // $NON-NLS-1$ - - /** - * Scheme constant (value "null") indicating the null file system scheme. - * - * @see EFS#getNullFileSystem() - */ - public static final String SCHEME_NULL = "null"; // $NON-NLS-1$ - - /* - * Status code definitions - */ - // Errors [266-298] - /** - * Status code constant (value 268) indicating a store unexpectedly exists on the file system. - * Severity: error. Category: file system. - */ - public static final int ERROR_EXISTS = 268; - - /** - * Status code constant (value 269) indicating a store unexpectedly does not exist on the file - * system. Severity: error. Category: file system. - */ - public static final int ERROR_NOT_EXISTS = 269; - - /** - * Status code constant (value 270) indicating the file system location for a store could not be - * computed. Severity: error. Category: file system. - */ - public static final int ERROR_NO_LOCATION = 270; - - /** - * Status code constant (value 271) indicating an error occurred while reading from the file - * system. Severity: error. Category: file system. - */ - public static final int ERROR_READ = 271; - - /** - * Status code constant (value 272) indicating an error occurred while writing to the file system. - * Severity: error. Category: file system. - */ - public static final int ERROR_WRITE = 272; - - /** - * Status code constant (value 273) indicating an error occurred while deleting from the file - * system. Severity: error. Category: file system. - */ - public static final int ERROR_DELETE = 273; - - /** - * Status code constant (value 275) indicating this file system is not case sensitive and a file - * that differs only in case unexpectedly exists on the file system. Severity: error. Category: - * file system. - */ - public static final int ERROR_CASE_VARIANT_EXISTS = 275; - - /** - * Status code constant (value 276) indicating a file exists in the file system but is not of the - * expected type (file instead of directory, or vice-versa). Severity: error. Category: file - * system. - */ - public static final int ERROR_WRONG_TYPE = 276; - - /** - * Status code constant (value 277) indicating that the parent file in the file system is marked - * as read-only. Severity: error. Category: file system. - */ - public static final int ERROR_PARENT_READ_ONLY = 277; - - /** - * Status code constant (value 279) indicating that the file in the file system is marked as - * read-only. Severity: error. Category: file system. - */ - public static final int ERROR_READ_ONLY = 279; - - /** - * Status code constant (value 280) indicating that the file system failed to authenticate the - * request. This can be caused by missing or incorrect authentication information being supplied. - * Severity: error. Category: file system. - * - * @since 1.4 - */ - public static final int ERROR_AUTH_FAILED = 280; - - /** - * Status code constant (value 566) indicating an internal error has occurred. Severity: error. - * Category: internal. - */ - public static final int ERROR_INTERNAL = 566; - - private static String WS_PATH; - - // /** - // * Creates an empty file information object. The resulting information - // * will represent a non-existent file with no name and no attributes set. - // * - // * @see IFileStore#putInfo(IFileInfo, int, IProgressMonitor) - // * @return an empty file information object. - // */ - // public static IFileInfo createFileInfo() { - // return new FileInfo(); - // } - - // /** - // * Returns a file system corresponding to the given scheme. - // * - // * @param scheme The file system URI scheme - // * @return The corresponding file system for the given scheme - // * @exception CoreException if this method fails. Reasons include: - // *

- // */ - // public static IFileSystem getFileSystem(String scheme) throws CoreException { - // return InternalFileSystemCore.getInstance().getFileSystem(scheme); - // } - // - // /** - // * Returns the local file system. - // * - // * @return The local file system - // */ - // public static IFileSystem getLocalFileSystem() { - // return InternalFileSystemCore.getInstance().getLocalFileSystem(); - // } - // - // /** - // * Returns the null file system. The null file system can be used - // * to represent a non-existent or unresolved file system. An example - // * of a null file system is a file system whose location is relative to an undefined - // * variable, or a system whose scheme is unknown. - // *

- // * Basic handle-based queries can be performed on the null file system, but all - // * operations that actually require file system access will fail. - // * - // * @return The null file system - // */ - // public static IFileSystem getNullFileSystem() { - // return InternalFileSystemCore.getInstance().getNullFileSystem(); - // } - - /** - * Returns the file store corresponding to the provided URI. - * - * @param uri The URI of the file store to return - * @return The file store - * @exception CoreException if this method fails. Reasons include: - *

- */ - public static IFileStore getStore(URI uri) throws CoreException { - // return InternalFileSystemCore.getInstance().getStore(uri); - // throw new UnsupportedOperationException("getStore"); - String pathname = uri.getSchemeSpecificPart(); - return new LocalFile(new File(WS_PATH + pathname)); - } - - /** This class is not intended to be instantiated. */ - private EFS() { - super(); - } - - public static IFileSystem getLocalFileSystem() { - throw new UnsupportedOperationException("getLocalFileSystem is not supported"); - } - - public static void setWsPath(String wsPath) { - EFS.WS_PATH = wsPath; - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/filesystem/IFileInfo.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/filesystem/IFileInfo.java deleted file mode 100644 index 02ba0e8106bf..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/filesystem/IFileInfo.java +++ /dev/null @@ -1,139 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2005, - * 2012 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation Martin Oberhuber (Wind River) - - * [170317] add symbolic link support to API - * ***************************************************************************** - */ -package org.eclipse.core.filesystem; - -import org.eclipse.core.runtime.IProgressMonitor; - -/** - * A file info is a simple structure holding information about a file or directory. The information - * contained here is static; changes to this object will not cause corresponding changes to any file - * on disk, and changes to files on disk are not reflected in this object. At best, an IFileInfo - * represents a snapshot of the state of a file at a particular moment in time. - * - * @see IFileStore#fetchInfo(int, IProgressMonitor) - * @see IFileStore#putInfo(IFileInfo, int, IProgressMonitor) - * @since org.eclipse.core.filesystem 1.0 - * @noimplement This interface is not intended to be implemented by clients. File store - * implementations should use the concrete class {@link - * org.eclipse.core.filesystem.provider.FileStore} - */ -public interface IFileInfo extends Comparable, Cloneable { - /** - * The constant indicating that file information was retrieved successfully. - * - * @since 1.4 - */ - public static final int NONE = 0; - /** - * The constant indicating that an I/O error was encountered while retrieving file information. - * - * @since 1.4 - */ - public static final int IO_ERROR = 5; // The value is chosen to match EIO Linux errno value. - - /** - * Returns whether this file or directory exists. - * - * @return true if this file exists, and false if the file does not - * exist or an I/O error was encountered. - */ - public abstract boolean exists(); - - /** - * Checks whether an I/O error was encountered while accessing this file or directory. - * - * @return {@link #IO_ERROR} if an I/O error was encountered, or {@link #NONE} otherwise. - * @since 1.4 - */ - public abstract int getError(); - - /** - * Returns the value of the specified attribute for this file. The attribute must be one of the - * EFS#ATTRIBUTE_* constants. Returns false if this file does not exist, - * could not be accessed, or the provided attribute does not apply to this file system. - * - * @param attribute The attribute to retrieve the value for - * @return the value of the specified attribute for this file. - * @see IFileSystem#attributes() - */ - public abstract boolean getAttribute(int attribute); - - /** - * Returns the value of the specified attribute for this file. The attribute must be one of the - * EFS#ATTRIBUTE_* constants. Returns null if this file does not exist, - * could not be accessed, or the provided attribute does not apply to this file system. - * - * @param attribute The kind of attribute to return. Currently only {@link - * EFS#ATTRIBUTE_LINK_TARGET} is supported. - * @return the value of the extended String attribute for this file. - * @see IFileSystem#attributes() - * @since org.eclipse.core.filesystem 1.1 - */ - public abstract String getStringAttribute(int attribute); - - /** - * Returns the last modified time for this file, or {@link EFS#NONE} if the file does not exist or - * the last modified time could not be computed. - * - *

The time is represented as the number of Universal Time (UT) milliseconds since the epoch - * (00:00:00 GMT, January 1, 1970). - * - * @return the last modified time for this file, or {@link EFS#NONE} - */ - public abstract long getLastModified(); - - /** - * Returns the length of this file, or {@link EFS#NONE} if the file does not exist, or the length - * could not be computed. For directories, the return value is unspecified. - * - * @return the length of this file, or {@link EFS#NONE} - */ - public abstract long getLength(); - - /** - * Returns the name of this file. - * - * @return the name of this file. - */ - public abstract String getName(); - - /** - * Returns whether this file is a directory, or false if this file does not exist. - * - * @return true if this file is a directory, and false otherwise. - */ - public abstract boolean isDirectory(); - - /** - * Sets the value of the specified attribute for this file info. The attribute must be one of the - * EFS#ATTRIBUTE_* constants. Note that not all attributes are applicable in a given - * file system. - * - *

Users must call {@link IFileStore#putInfo(IFileInfo, int, IProgressMonitor)} before changes - * made to this info take effect in an underlying file. - * - * @param attribute The attribute to set the value for - * @param value the value of the specified attribute for this file. - * @see IFileSystem#attributes() - */ - public abstract void setAttribute(int attribute, boolean value); - - /** - * Sets the last modified time for this file. A value of {@link EFS#NONE} indicates the file does - * not exist or the last modified time could not be computed. - * - *

Users must call {@link IFileStore#putInfo(IFileInfo, int, IProgressMonitor)} before changes - * made to this info take effect in an underlying file. - * - * @param time the last modified time for this file, or {@link EFS#NONE} - */ - public abstract void setLastModified(long time); -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/filesystem/IFileStore.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/filesystem/IFileStore.java deleted file mode 100644 index c2c7968ad99f..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/filesystem/IFileStore.java +++ /dev/null @@ -1,503 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2005, - * 2009 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation Martin Oberhuber (Wind River) - - * [170317] add symbolic link support to API - * ***************************************************************************** - */ -package org.eclipse.core.filesystem; - -import java.io.InputStream; -import java.io.OutputStream; -import java.net.URI; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IAdaptable; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IProgressMonitor; - -/** - * A file store is responsible for storage and retrieval of a single file in some file system. The - * actual protocols and media used for communicating with the file system are abstracted away by - * this interface, apart from the store's ability to represent itself as a hierarchical {@link URI}. - * - *

File store instances are lightweight handle objects; a store knows how to access and store - * file information, but does not retain a large memory footprint or operating system connections - * such as sockets or file handles. The presence of a file store instance does not imply the - * existence of a corresponding file in the file system represented by that store. A store that has - * a corresponding file in its file system is said to exist. - * - *

As much as possible, implementations of this API maintain the characteristics of the - * underlying file system represented by this store. For example, store instances will be - * case-sensitive and case-preserving only when representing case-sensitive and case-preserving file - * systems. - * - * @since org.eclipse.core.filesystem 1.0 - * @noimplement This interface is not intended to be implemented by clients. File store - * implementations must subclass {@link FileStore} rather than implementing this interface - * directly. - */ -public interface IFileStore extends IAdaptable { - - /** - * Returns an {@link IFileInfo} instance for each file and directory contained within this store. - * - * @param options bit-wise or of option flag constants (currently only {@link EFS#NONE} is - * applicable). - * @param monitor a progress monitor, or null if progress reporting and cancellation - * are not desired - * @return An array of information about the children of this store, or an empty array if this - * store has no children. - * @exception CoreException if this method fails. Reasons include: - *

- * - * @see IFileTree#getChildInfos(IFileStore) - */ - public IFileInfo[] childInfos(int options, IProgressMonitor monitor) throws CoreException; - - /** - * Returns the names of the files and directories contained within this store. - * - * @param options bit-wise or of option flag constants (currently only {@link EFS#NONE} is - * applicable). - * @param monitor a progress monitor, or null if progress reporting and cancellation - * are not desired - * @return The names of the children of this store, or an empty array if this store has no - * children. - * @exception CoreException if this method fails. Reasons include: - * - */ - public String[] childNames(int options, IProgressMonitor monitor) throws CoreException; - - /** - * Returns an {@link IFileStore} instance for each file and directory contained within this store. - * - * @param options bit-wise or of option flag constants (currently only {@link EFS#NONE} is - * applicable). - * @param monitor a progress monitor, or null if progress reporting and cancellation - * are not desired - * @return The children of this store, or an empty array if this store has no children. - * @exception CoreException if this method fails. Reasons include: - * - * - * @see IFileTree#getChildStores(IFileStore) - */ - public IFileStore[] childStores(int options, IProgressMonitor monitor) throws CoreException; - - /** - * Copies the file represented by this store to the provided destination store. Copying occurs - * with best-effort semantics; if some files cannot be copied, exceptions are recorded but other - * files will continue to be copied if possible. - * - *

The {@link EFS#OVERWRITE} option flag indicates how this method deals with files that - * already exist at the copy destination. If the OVERWRITE flag is present, then - * existing files at the destination are overwritten with the corresponding files from the source - * of the copy operation. When this flag is not present, existing files at the destination are not - * overwritten and an exception is thrown indicating what files could not be copied. No exception - * is thrown for directories that already exist at the destination. - * - *

Copying a file into a directory of the same name or vice versa always throws a - * CoreException, regardless of whether the OVERWRITE flag is specified or - * not. - * - *

The {@link EFS#SHALLOW} option flag indicates how this method deals with copying of - * directories. If the SHALLOW flag is present, then a directory will be copied but - * the files and directories within it will not. When this flag is not present, all child - * directories and files of a directory are copied recursively. - * - *

In case of a recursive directory copy exception throwing may be deferred. Part of the copy - * task may be executed without rollback until the exception occurs. The order of copy operations - * is not specified. - * - * @param destination The destination of the copy. - * @param options bit-wise or of option flag constants ( {@link EFS#OVERWRITE} or {@link - * EFS#SHALLOW}). - * @param monitor a progress monitor, or null if progress reporting and cancellation - * are not desired - * @exception CoreException if this method fails. Reasons include: - *

- */ - public void copy(IFileStore destination, int options, IProgressMonitor monitor) - throws CoreException; - - /** - * Deletes the files and directories represented by this store. Deletion of a file that does not - * exist has no effect. - * - *

Deletion occurs with best-effort semantics; if some files cannot be deleted, exceptions are - * recorded but other files will continue to be deleted if possible. - * - *

Deletion of a file with attribute {@link EFS#ATTRIBUTE_SYMLINK} will always delete the link, - * rather than the target of the link. - * - * @param options bit-wise or of option flag constants (currently only {@link EFS#NONE} is - * applicable). - * @param monitor a progress monitor, or null if progress reporting and cancellation - * are not desired - * @exception CoreException if this method fails. Reasons include: - *

- * - * @see EFS#ATTRIBUTE_SYMLINK - */ - public void delete(int options, IProgressMonitor monitor) throws CoreException; - - /** - * Fetches and returns information about this file from the underlying file system. Returns a file - * info representing a non-existent file if the underlying file system could not be contacted. - * - *

This is a convenience method, similar to: fetchInfo(EFS.NONE, null). This - * method is intended as a convenience when dealing with fast, highly available file systems such - * as the local file system. Clients that require progress reporting and error handling, for - * example when dealing with remote file systems, should use {@link #fetchInfo(int, - * IProgressMonitor)} instead. - * - * @return A structure containing information about this file. - * @see #fetchInfo(int, IProgressMonitor) - */ - public IFileInfo fetchInfo(); - - /** - * Fetches and returns information about this file from the underlying file system. - * - *

This method succeeds regardless of whether a corresponding file currently exists in the - * underlying file system. In the case of a non-existent file, the returned info will include the - * file's name and will return false when IFileInfo#exists() is called, but all other - * information will assume default values. - * - * @param options bit-wise or of option flag constants (currently only {@link EFS#NONE} is - * applicable). - * @param monitor a progress monitor, or null if progress reporting and cancellation - * are not desired - * @return A structure containing information about this file. - * @exception CoreException if this method fails. Reasons include: - *

- * - * @see IFileTree#getFileInfo(IFileStore) - */ - public IFileInfo fetchInfo(int options, IProgressMonitor monitor) throws CoreException; - - /** - * Returns a child of this store as specified by the provided path. The path is treated as - * relative to this store. This is equivalent to - * - *
-   *    IFileStore result = this;
-   *    for (int i = 0; i < path.segmentCount(); i++) {
-   *       result = result.getChild(path.segment(i));
-   *    return result;
-   * 
- * - *

This is a handle-only method; a child is provided regardless of whether this store or the - * child store exists, or whether this store represents a directory or not. - * - *

The provided path must not contain segments that are self references (".") or parent - * references (".."). - * - * @param path The path of the child store to return - * @return A child file store. - * @deprecated use {@link #getFileStore(IPath)} instead - */ - public IFileStore getChild(IPath path); - - /** - * Returns a handle to the member store identified by the given path. The path is treated as - * relative to this store. - * - *

This is a handle-only method; a store is provided regardless of whether this store or the - * member store exists, or whether this store represents a directory or not. - * - * @param path the path of the member store - * @return the member store - * @since org.eclipse.core.filesystem 1.2 - */ - public IFileStore getFileStore(IPath path); - - /** - * Returns a child store with the provided name whose parent is this store. This is a handle-only - * method; a child is provided regardless of whether this store or the child store exists, or - * whether this store represents a directory or not. - * - * @param name The name of the child store to return - * @return A child file store. - */ - public IFileStore getChild(String name); - - // /** - // * Returns the file system this store belongs to. - // * - // * @return The file system this store belongs to. - // */ - // public IFileSystem getFileSystem(); - - /** - * Returns the name of this store. This is a handle-only method; the name is returned regardless - * of whether this store exists. - * - *

Note that when dealing with case-insensitive file systems, this name may differ in case from - * the name of the corresponding file in the file system. To obtain the exact name used in the - * file system, use fetchInfo().getName(). - * - * @return The name of this store - */ - public String getName(); - - /** - * Returns the parent of this store. This is a handle only method; the parent is returned - * regardless of whether this store or the parent store exists. This method returns null - * when this store represents the root directory of a file system. - * - * @return The parent store, or null if this store is the root of a file system. - */ - public IFileStore getParent(); - - /** - * Returns whether this store is a parent of the provided store. This is equivalent to, but - * typically more efficient than, the following: - * while (true) { - * other = other.getParent(); - * if (other == null) - * return false; - * if (this.equals(other)) - * return true; - * } - * - * - *

This is a handle only method; this test works regardless of whether this store or the - * parameter store exists. - * - * @param other The store to test for parentage. - * @return true if this store is a parent of the provided store, and false - * otherwise. - */ - public boolean isParentOf(IFileStore other); - - /** - * Creates a directory, and optionally its parent directories. If the directory already exists, - * this method has no effect. - * - *

The {@link EFS#SHALLOW} option flag indicates how this method deals with creation when the - * parent directory does not exist. If the SHALLOW flag is present, this method will - * fail if the parent directory does not exist. When the flag is not present, all necessary parent - * directories are also created. - * - * @param options bit-wise or of option flag constants ({@link EFS#SHALLOW}). - * @param monitor a progress monitor, or null if progress reporting and cancellation - * are not desired - * @return This directory - * @exception CoreException if this method fails. Reasons include: - *

- */ - public IFileStore mkdir(int options, IProgressMonitor monitor) throws CoreException; - - /** - * Moves the file represented by this store to the provided destination store. Moving occurs with - * best-effort semantics; if some files cannot be moved, exceptions are recorded but other files - * will continue to be moved if possible. - * - *

The {@link EFS#OVERWRITE} option flag indicates how this method deals with files that - * already exist at the move destination. If the OVERWRITE flag is present, then - * existing files at the destination are overwritten with the corresponding files from the source - * of the move operation. When this flag is not present, existing files at the destination are not - * overwritten and an exception is thrown indicating what files could not be moved. - * - * @param destination The destination of the move. - * @param options bit-wise or of option flag constants ({@link EFS#OVERWRITE}). - * @param monitor a progress monitor, or null if progress reporting and cancellation - * are not desired - * @exception CoreException if this method fails. Reasons include: - *

- */ - public void move(IFileStore destination, int options, IProgressMonitor monitor) - throws CoreException; - - /** - * Returns an open input stream on the contents of this file. The number of concurrently open - * streams depends on the implementation and can be limited. The caller is responsible for closing - * the provided stream when it is no longer needed. - * - *

The returned stream is not guaranteed to be buffered efficiently. When reading large blocks - * of data from the stream, a BufferedInputStream wrapper should be used, or some - * other form of content buffering. - * - *

It depends on the implementation how the limit of concurrently opened streams is handled. - * CoreException may be thrown, when the limit is exceeded. - * - * @param options bit-wise or of option flag constants (currently only {@link EFS#NONE} is - * applicable). - * @param monitor a progress monitor, or null if progress reporting and cancellation - * are not desired - * @return An input stream on the contents of this file. - * @exception CoreException if this method fails. Reasons include: - *

- */ - public InputStream openInputStream(int options, IProgressMonitor monitor) throws CoreException; - - /** - * Returns an open output stream on the contents of this file. The number of concurrently open - * streams depends on implementation and can be limited. The caller is responsible for closing the - * provided stream when it is no longer needed. This file need not exist in the underlying file - * system at the time this method is called. - * - *

The returned stream is not guaranteed to be buffered efficiently. When writing large blocks - * of data to the stream, a BufferedOutputStream wrapper should be used, or some - * other form of content buffering. - * - *

It depends on the implementation how the limit of concurrently opened streams is handled. - * CoreException may be thrown, when the limit is exceeded. - * - *

The {@link EFS#APPEND} update flag controls where output is written to the file. If this - * flag is specified, content written to the stream will be appended to the end of the file. If - * this flag is not specified, the contents of the existing file, if any, is truncated to zero and - * the new output will be written from the start of the file. - * - * @param options bit-wise or of option flag constants ( {@link EFS#APPEND}). - * @param monitor a progress monitor, or null if progress reporting and cancellation - * are not desired - * @return An output stream on the contents of this file. - * @exception CoreException if this method fails. Reasons include: - *

- */ - public OutputStream openOutputStream(int options, IProgressMonitor monitor) throws CoreException; - - /** - * Writes information about this file to the underlying file system. Only certain parts of the - * file information structure can be written using this method, as specified by the option flags. - * Other changed information in the provided info will be ignored. This method has no effect when - * no option flags are provided. The following example sets the last modified time for a file - * store, leaving other values unchanged: - * - *
-   *    IFileInfo info = EFS#createFileInfo();
-   *    info.setLastModified(System.currentTimeMillis());
-   *    store.putInfo(info, EFS.SET_LAST_MODIFIED, monitor);
-   * 
- * - *

The {@link EFS#SET_ATTRIBUTES} update flag controls whether the file's attributes are - * changed. When this flag is specified, the EFS#ATTRIBUTE_* values, with the - * exception of EFS#ATTRIBUTE_DIRECTORY, EFS#ATTRIBUTE_SYMLINK and - * EFS#ATTRIBUTE_LINK_TARGET, are set for this file. When this flag is not specified, - * changed attributes on the provided file info are ignored. - * - *

Since Eclipse 3.6, implementations shall also make a best effort to consult UNIX umask in - * order to set the same attributes for other access groups. This setting of attributes for others - * may change the file system state even if an attribute appears to be set for the current user - * already. - * - *

Clearing an attribute causes clearing it for all access groups. This means setting and - * clearing an attribute might not restore previous file system state as these operations are not - * symmetrical. - * - *

The {@link EFS#SET_LAST_MODIFIED} update flag controls whether the file's last modified time - * is changed. When this flag is specified, the last modified time for the file in the underlying - * file system is updated to the value in the provided info object. Due to the different - * granularities of file systems, the time that is set might not exact match the provided time. - * - * @param info The file information instance containing the values to set. - * @param options bit-wise or of option flag constants ( {@link EFS#SET_ATTRIBUTES} or {@link - * EFS#SET_LAST_MODIFIED}). - * @param monitor a progress monitor, or null if progress reporting and cancellation - * are not desired - * @exception CoreException if this method fails. Reasons include: - *

- * - * @see EFS#createFileInfo() - */ - public void putInfo(IFileInfo info, int options, IProgressMonitor monitor) throws CoreException; - - /** - * Returns a file in the local file system with the same state as this file. - * - *

The {@link EFS#CACHE} option flag indicates whether this method should return the actual - * underlying file or a cached local copy. When the {@link EFS#CACHE} flag is specified, this - * method will return a cached local file with the same state and contents as this file. When the - * {@link EFS#CACHE} flag is not specified, this method will return the actual underlying local - * file, or null if this store is not a local file. - * - *

In the case of a cached file, the returned file is intended to be used for read operations - * only. No guarantee is made about synchronization between the returned file and this store. If - * the cached file is modified in any way, those changes may not be reflected in this store, but - * may affect other callers who are using the local representation of this store. - * - *

While the implementation of this method may use caching to return the same result for - * multiple calls to this method, it is guaranteed that the returned file will reflect the state - * of this file store at the time of this call. As such, this method will always contact the - * backing file system of this store, either to validate cache consistency or to fetch new - * contents. - * - *

The caller is not responsible for deleting this file when they are done with using it. If - * the returned file is a cached copy, it will be deleted automatically at the end of this session - * (Eclipse shutdown or virtual machine exit). - * - * @param options bit-wise or of option flag constants ( only {@link EFS#CACHE} applies). - * @param monitor a progress monitor, or null if progress reporting and cancellation - * are not desired - * @return A local file with the same state as this file or null if {@link EFS#CACHE} - * is not specified and this is not a local file. - * @exception CoreException if this method fails. Reasons include: - *

- * - * @see IFileSystem#fromLocalFile(java.io.File) - */ - public java.io.File toLocalFile(int options, IProgressMonitor monitor) throws CoreException; - - /** - * Returns a string representation of this store. The string will be translated if applicable, and - * suitable for displaying in error messages to an end-user. The actual format of the string is - * unspecified. - * - * @return A string representation of this store. - */ - public String toString(); - - /** - * Returns a URI instance corresponding to this store. The resulting URI, when passed to {@link - * EFS#getStore(URI)}, will return a store equal to this instance. - * - * @return A URI corresponding to this store. - * @see EFS#getStore(URI) - */ - public URI toURI(); -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/filesystem/IFileSystem.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/filesystem/IFileSystem.java deleted file mode 100644 index 44ba04ac8404..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/filesystem/IFileSystem.java +++ /dev/null @@ -1,132 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) - * 2014-2015 Red Hat, Inc. 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: Red Hat, Inc. - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.filesystem; - -import java.net.URI; -import org.eclipse.core.runtime.IAdaptable; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IProgressMonitor; - -/** - * This is the main interface to a single file system. Each file system instance manages interaction - * with all files in the backing store represented by a particular URI scheme. - * - *

File systems are registered using the "filesystems" extension point. - * - * @see EFS#getFileSystem(String) - * @since org.eclipse.core.filesystem 1.0 - * @noimplement This interface is not intended to be implemented by clients. File system - * implementations must subclass {@link FileSystem} rather than implementing this interface - * directly. - */ -public interface IFileSystem extends IAdaptable { - - /** - * Returns the file attributes supported by this file system. This value is a bit mask of the - * EFS.ATTRIBUTE_* constants. - * - * @return the file attributes supported by this file system. - */ - public int attributes(); - - /** - * Returns whether this file system supports deletion - * - * @return true if this file system allows deletion of files and directories, and - * false otherwise - */ - public boolean canDelete(); - - /** - * Returns whether this file system supports modification. - * - * @return true if this file system allows modification of files and directories, and - * false otherwise - */ - public boolean canWrite(); - - // /** - // * Returns a file tree containing information about the complete sub-tree - // * rooted at the given store. Returns null if this file - // * system does not support the creation of such file trees. - // *

- // * A file tree accurately represents the state of a portion of a file system - // * at the time it is created, but it is never updated. Clients using a file - // * tree must tolerate the fact that the actual file system contents may - // * change after the tree is generated. - // *

- // * - // * @param root The store to use as the root of the file tree - // * @param monitor a progress monitor, or null if progress - // * reporting and cancellation are not desired - // * @return an {@link IFileTree} containing the sub-tree of the given store, - // * or null - // * @exception CoreException if this method fails. Reasons include: - // * - // * @see IFileTree - // */ - // public IFileTree fetchFileTree(IFileStore root, IProgressMonitor monitor) throws CoreException; - - /** - * Returns the file store in this file system corresponding to the given local file. Returns - * null if this file system cannot provide an {@link IFileStore} corresponding to a - * local file. - * - * @param file The file to be converted - * @return The {@link IFileStore} corresponding to the given file, or null - * @see IFileStore#toLocalFile(int, IProgressMonitor) - */ - public IFileStore fromLocalFile(java.io.File file); - - /** - * Returns the URI scheme of this file system. - * - * @return the URI scheme of this file system. - */ - public String getScheme(); - - /** - * Returns a handle to a file store in this file system. This is a handle-only method; this method - * succeeds regardless of whether a file exists at that path in this file system. - * - *

This is a convenience method for file systems that do not make use of the authority {@link - * URI} component, such as a host or user information. The provided path argument is interpreted - * as the path component of the file system's {@link URI}. For example, this method can be used to - * safely navigate within the local file system. - * - * @param path A path to a file store within the scheme of this file system. - * @return A handle to a file store in this file system - * @see EFS#getLocalFileSystem() - */ - public IFileStore getStore(IPath path); - - /** - * Returns a handle to a file store in this file system. This is a handle-only method; this method - * succeeds regardless of whether a file exists at that path in this file system. The provided URI - * must have the appropriate scheme and component parts for the file system on which this method - * is called. - * - * @param uri The URI of the file store to return. - * @return A handle to a file store in this file system - */ - public IFileStore getStore(URI uri); - - /** - * Returns whether this file system is case sensitive. A case sensitive file system treats files - * with names that differ only in case as different files. For example, "HELLO", "Hello", and - * "hello" would be three different files or directories in a case sensitive file system. - * - * @return true if this file system is case sensitive, and false - * otherwise. - */ - public boolean isCaseSensitive(); -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/filesystem/URIUtil.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/filesystem/URIUtil.java deleted file mode 100644 index fb02b8e3f08f..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/filesystem/URIUtil.java +++ /dev/null @@ -1,103 +0,0 @@ -package org.eclipse.core.filesystem; - -import java.io.File; -import java.net.URI; -import java.net.URISyntaxException; -import org.eclipse.core.runtime.Assert; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.Path; - -/** @author Evgen Vidolob */ -public class URIUtil { - /** - * Returns an {@link IPath} representing this {@link URI} in the local file system, or null - * if this URI does not represent a file in the local file system. - * - * @param uri The URI to convert - * @return The path representing the provided URI, null - */ - public static IPath toPath(URI uri) { - Assert.isNotNull(uri); - // Special treatment for LocalFileSystem. For performance only. - if (EFS.SCHEME_FILE.equals(uri.getScheme())) return new Path(uri.getSchemeSpecificPart()); - // Relative path - if (uri.getScheme() == null) return new Path(uri.getPath()); - // General case - try { - IFileStore store = EFS.getStore(uri); - if (store == null) return null; - File file = store.toLocalFile(EFS.NONE, null); - if (file == null) return null; - return new Path(file.getAbsolutePath()); - } catch (CoreException e) { - // Fall through to return null. - } - return null; - } - - /** - * Converts an {@link IPath} representing a local file system path to a {@link URI}. - * - * @param path The path to convert - * @return The URI representing the provided path - */ - public static URI toURI(IPath path) { - if (path == null) return null; - if (path.isAbsolute()) return toURI(path.toFile().getAbsolutePath(), true); - // Must use the relativize method to properly construct a relative URI - URI base = toURI(Path.ROOT.setDevice(path.getDevice())); - return base.relativize(toURI(path.makeAbsolute())); - } - - /** - * Converts a String representing a local file system path to a {@link URI}. For example, this - * method can be used to create a URI from the output of {@link File#getAbsolutePath()}. - * - *

The forceAbsolute flag controls how this method handles relative paths. If the - * value is true, then the input path is always treated as an absolute path, and the - * returned URI will be an absolute URI. If the value is false, then a relative path - * provided as input will result in a relative URI being returned. - * - * @param pathString The path string to convert - * @param forceAbsolute if true the path is treated as an absolute path - * @return The URI representing the provided path string - * @since org.eclipse.core.filesystem 1.2 - */ - public static URI toURI(String pathString, boolean forceAbsolute) { - if (File.separatorChar != '/') pathString = pathString.replace(File.separatorChar, '/'); - final int length = pathString.length(); - StringBuffer pathBuf = new StringBuffer(length + 1); - // mark if path is relative - if (length > 0 && (pathString.charAt(0) != '/') && forceAbsolute) { - pathBuf.append('/'); - } - // additional double-slash for UNC paths to distinguish from host separator - if (pathString.startsWith("//")) // $NON-NLS-1$ - pathBuf.append('/').append('/'); - pathBuf.append(pathString); - try { - String scheme = null; - if (length > 0 && (pathBuf.charAt(0) == '/')) { - scheme = EFS.SCHEME_FILE; - } - return new URI(scheme, null, pathBuf.toString(), null); - } catch (URISyntaxException e) { - // try java.io implementation - return new File(pathString).toURI(); - } - } - - /** - * Converts a String representing a local file system path to a {@link URI}. For example, this - * method can be used to create a URI from the output of {@link File#getAbsolutePath()}. The - * provided path string is always treated as an absolute path. - * - * @param pathString The absolute path string to convert - * @return The URI representing the provided path string - */ - public static URI toURI(String pathString) { - IPath path = new Path(pathString); - return toURI(path); - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/filesystem/provider/FileInfo.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/filesystem/provider/FileInfo.java deleted file mode 100644 index 0e1414fa56a9..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/filesystem/provider/FileInfo.java +++ /dev/null @@ -1,267 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2005, - * 2012 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation Martin Oberhuber (Wind River) - - * [170317] add symbolic link support to API - * ***************************************************************************** - */ -package org.eclipse.core.filesystem.provider; - -import org.eclipse.core.filesystem.EFS; -import org.eclipse.core.filesystem.IFileInfo; - -/** - * This class should be used by file system providers in their implementation of API methods that - * return {@link IFileInfo} objects. - * - * @since org.eclipse.core.filesystem 1.0 - * @noextend This class is not intended to be subclassed by clients. - */ -public class FileInfo implements IFileInfo { - /** Internal attribute indicating if the file is a directory */ - private static final int ATTRIBUTE_DIRECTORY = 1 << 0; - - /** Internal attribute indicating if the file exists. */ - private static final int ATTRIBUTE_EXISTS = 1 << 16; - - /** Bit field of file attributes. Initialized to specify a writable resource. */ - private int attributes = EFS.ATTRIBUTE_OWNER_WRITE | EFS.ATTRIBUTE_OWNER_READ; - - private int errorCode = NONE; - - /** The last modified time. */ - private long lastModified = EFS.NONE; - - /** The file length. */ - private long length = EFS.NONE; - - /** The file name. */ - private String name = ""; // $NON-NLS-1$ - - /** The target file name if this is a symbolic link */ - private String linkTarget = null; - - /** Creates a new file information object with default values. */ - public FileInfo() { - super(); - } - - /** - * Creates a new file information object. All values except the file name will have default - * values. - * - * @param name The name of this file - */ - public FileInfo(String name) { - super(); - this.name = name; - } - - /** - * Convenience method to clear a masked region of the attributes bit field. - * - * @param mask The mask to be cleared - */ - private void clear(int mask) { - attributes &= ~mask; - } - - /* - * (non-Javadoc) - * @see java.lang.Object#clone() - */ - public Object clone() { - try { - return super.clone(); - } catch (CloneNotSupportedException e) { - // we know this object is cloneable - return null; - } - } - - /* - * (non-Javadoc) - * @see java.lang.Comparable#compareTo(java.lang.Object) - */ - public int compareTo(Object o) { - return name.compareTo(((FileInfo) o).name); - } - - /* (non-Javadoc) - * @see org.eclipse.core.filesystem.IFileInfo#exists() - */ - public boolean exists() { - return getAttribute(ATTRIBUTE_EXISTS); - } - - /** - * @since 1.4 - * @see IFileInfo#getError() - */ - public int getError() { - return errorCode; - } - - public boolean getAttribute(int attribute) { - if (attribute == EFS.ATTRIBUTE_READ_ONLY && isAttributeSuported(EFS.ATTRIBUTE_OWNER_WRITE)) - return (!isSet(EFS.ATTRIBUTE_OWNER_WRITE)) || isSet(EFS.ATTRIBUTE_IMMUTABLE); - else if (attribute == EFS.ATTRIBUTE_EXECUTABLE - && isAttributeSuported(EFS.ATTRIBUTE_OWNER_EXECUTE)) - return isSet(EFS.ATTRIBUTE_OWNER_EXECUTE); - else return isSet(attribute); - } - - /* (non-Javadoc) - * @see org.eclipse.core.filesystem.IFileInfo#getStringAttribute(int) - */ - public String getStringAttribute(int attribute) { - if (attribute == EFS.ATTRIBUTE_LINK_TARGET) return this.linkTarget; - return null; - } - - /* (non-Javadoc) - * @see org.eclipse.core.filesystem.IFileInfo#lastModified() - */ - public long getLastModified() { - return lastModified; - } - - /* (non-Javadoc) - * @see org.eclipse.core.filesystem.IFileInfo#length() - */ - public long getLength() { - return length; - } - - /* (non-Javadoc) - * @see org.eclipse.core.filesystem.IFileInfo#getName() - */ - public String getName() { - return name; - } - - /* (non-Javadoc) - * @see org.eclipse.core.filesystem.IFileInfo#isDirectory() - */ - public boolean isDirectory() { - return isSet(ATTRIBUTE_DIRECTORY); - } - - private boolean isSet(long mask) { - return (attributes & mask) != 0; - } - - private void set(int mask) { - attributes |= mask; - } - - /* (non-Javadoc) - * @see org.eclipse.core.filesystem.IFileInfo#setAttribute(int, boolean) - */ - public void setAttribute(int attribute, boolean value) { - if (attribute == EFS.ATTRIBUTE_READ_ONLY && isAttributeSuported(EFS.ATTRIBUTE_OWNER_WRITE)) { - if (value) { - clear(EFS.ATTRIBUTE_OWNER_WRITE | EFS.ATTRIBUTE_OTHER_WRITE | EFS.ATTRIBUTE_GROUP_WRITE); - set(EFS.ATTRIBUTE_IMMUTABLE); - } else { - set(EFS.ATTRIBUTE_OWNER_WRITE | EFS.ATTRIBUTE_OWNER_READ); - clear(EFS.ATTRIBUTE_IMMUTABLE); - } - } else if (attribute == EFS.ATTRIBUTE_EXECUTABLE - && isAttributeSuported(EFS.ATTRIBUTE_OWNER_EXECUTE)) { - if (value) set(EFS.ATTRIBUTE_OWNER_EXECUTE); - else - clear( - EFS.ATTRIBUTE_OWNER_EXECUTE - | EFS.ATTRIBUTE_GROUP_EXECUTE - | EFS.ATTRIBUTE_OTHER_EXECUTE); - } else { - if (value) set(attribute); - else clear(attribute); - } - } - - private static boolean isAttributeSuported(int value) { - // return (LocalFileNativesManager.getSupportedAttributes() & value) != 0; - return true; - } - - /** - * Sets whether this is a file or directory. - * - * @param value true if this is a directory, and false if this is a - * file. - */ - public void setDirectory(boolean value) { - if (value) set(ATTRIBUTE_DIRECTORY); - else clear(ATTRIBUTE_DIRECTORY); - } - - /** - * Sets whether this file or directory exists. - * - * @param value true if this file exists, and false otherwise. - */ - public void setExists(boolean value) { - if (value) set(ATTRIBUTE_EXISTS); - else clear(ATTRIBUTE_EXISTS); - } - - /** - * Sets the error code indicating whether an I/O error was encountered when accessing the file. - * - * @param errorCode {@link IFileInfo#IO_ERROR} if this file has an I/O error, and {@link - * IFileInfo#NONE} otherwise. - * @since 1.4 - */ - public void setError(int errorCode) { - this.errorCode = errorCode; - } - - /* (non-Javadoc) - * @see org.eclipse.core.filesystem.IFileInfo#setLastModified(long) - */ - public void setLastModified(long value) { - lastModified = value; - } - - /** - * Sets the length of this file. A value of {@link EFS#NONE} indicates the file does not exist, is - * a directory, or the length could not be computed. - * - * @param value the length of this file, or {@link EFS#NONE} - */ - public void setLength(long value) { - this.length = value; - } - - /** - * Sets the name of this file. - * - * @param name The file name - */ - public void setName(String name) { - if (name == null) throw new IllegalArgumentException(); - this.name = name; - } - - /** - * Sets or clears a String attribute, e.g. symbolic link target. - * - * @param attribute The kind of attribute to set. Currently only {@link EFS#ATTRIBUTE_LINK_TARGET} - * is supported. - * @param value The String attribute, or null to clear the attribute - * @since org.eclipse.core.filesystem 1.1 - */ - public void setStringAttribute(int attribute, String value) { - if (attribute == EFS.ATTRIBUTE_LINK_TARGET) this.linkTarget = value; - } - - /** For debugging purposes only. */ - public String toString() { - return name; - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/filesystem/provider/FileStore.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/filesystem/provider/FileStore.java deleted file mode 100644 index 5e6754d853c2..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/filesystem/provider/FileStore.java +++ /dev/null @@ -1,494 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2005, - * 2011 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation James Blackburn (Broadcom - * Corp.) - ongoing development - * ***************************************************************************** - */ -package org.eclipse.core.filesystem.provider; - -import java.io.File; -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; -import java.net.URI; -import org.eclipse.core.filesystem.EFS; -import org.eclipse.core.filesystem.IFileInfo; -import org.eclipse.core.filesystem.IFileStore; -import org.eclipse.core.internal.filesystem.Messages; -import org.eclipse.core.internal.filesystem.Policy; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.osgi.util.NLS; - -/** - * The abstract superclass of all {@link IFileStore} implementations. All file stores must subclass - * this base class, implementing all abstract methods according to their specification in the {@link - * IFileStore} API. - * - *

Clients may subclass this class. - * - * @since org.eclipse.core.filesystem 1.0 - */ -public abstract class FileStore /* extends PlatformObject*/ implements IFileStore { - /** - * Singleton buffer created to avoid buffer creations in the transferStreams method. Used as an - * optimization, based on the assumption that multiple writes won't happen in a given instance of - * FileStore. - */ - private static final byte[] buffer = new byte[8192]; - - /** - * A file info array of size zero that can be used as a return value for methods that return - * IFileInfo[] to avoid creating garbage objects. - */ - protected static final IFileInfo[] EMPTY_FILE_INFO_ARRAY = new IFileInfo[0]; - - /** - * A string array of size zero that can be used as a return value for methods that return String[] - * to avoid creating garbage objects. - */ - protected static final String[] EMPTY_STRING_ARRAY = new String[0]; - - /** - * Transfers the contents of an input stream to an output stream, using a large buffer. - * - * @param source The input stream to transfer - * @param destination The destination stream of the transfer - * @param path A path representing the data being transferred for use in error messages. - * @param monitor A progress monitor. The monitor is assumed to have already done beginWork with - * one unit of work allocated per buffer load of contents to be transferred. - * @throws CoreException - */ - private static final void transferStreams( - InputStream source, OutputStream destination, String path, IProgressMonitor monitor) - throws CoreException { - monitor = Policy.monitorFor(monitor); - try { - /* - * Note: although synchronizing on the buffer is thread-safe, - * it may result in slower performance in the future if we want - * to allow concurrent writes. - */ - synchronized (buffer) { - while (true) { - int bytesRead = -1; - try { - bytesRead = source.read(buffer); - } catch (IOException e) { - String msg = NLS.bind(Messages.failedReadDuringWrite, path); - Policy.error(EFS.ERROR_READ, msg, e); - } - try { - if (bytesRead == -1) { - destination.close(); - break; - } - destination.write(buffer, 0, bytesRead); - } catch (IOException e) { - String msg = NLS.bind(Messages.couldNotWrite, path); - Policy.error(EFS.ERROR_WRITE, msg, e); - } - monitor.worked(1); - } - } - } finally { - Policy.safeClose(source); - Policy.safeClose(destination); - } - } - - /** - * The default implementation of {@link IFileStore#childInfos(int, IProgressMonitor)}. Subclasses - * should override this method where a more efficient implementation is possible. This default - * implementation calls {@link #fetchInfo()} on each child, which will result in a file system - * call for each child. - */ - public IFileInfo[] childInfos(int options, IProgressMonitor monitor) throws CoreException { - IFileStore[] childStores = childStores(options, monitor); - IFileInfo[] childInfos = new IFileInfo[childStores.length]; - for (int i = 0; i < childStores.length; i++) { - childInfos[i] = childStores[i].fetchInfo(); - } - return childInfos; - } - - /* (non-Javadoc) - * @see org.eclipse.core.filesystem.IFileStore#childNames(int, org.eclipse.core.runtime.IProgressMonitor) - */ - public abstract String[] childNames(int options, IProgressMonitor monitor) throws CoreException; - - /** - * The default implementation of {@link IFileStore#childStores(int, IProgressMonitor)}. Subclasses - * may override. - */ - public IFileStore[] childStores(int options, IProgressMonitor monitor) throws CoreException { - String[] children = childNames(options, monitor); - IFileStore[] wrapped = new IFileStore[children.length]; - for (int i = 0; i < wrapped.length; i++) wrapped[i] = getChild(children[i]); - return wrapped; - } - - /** - * The default implementation of {@link IFileStore#copy(IFileStore, int, IProgressMonitor)}. This - * implementation performs a copy by using other primitive methods. Subclasses may override this - * method. - */ - public void copy(IFileStore destination, int options, IProgressMonitor monitor) - throws CoreException { - monitor = Policy.monitorFor(monitor); - Policy.checkCanceled(monitor); - final IFileInfo sourceInfo = fetchInfo(EFS.NONE, null); - if (sourceInfo.isDirectory()) copyDirectory(sourceInfo, destination, options, monitor); - else copyFile(sourceInfo, destination, options, monitor); - } - - /** - * Recursively copies a directory as specified by {@link IFileStore#copy(IFileStore, int, - * IProgressMonitor)}. - * - * @param sourceInfo The current file information for the source of the move - * @param destination The destination of the copy. - * @param options bit-wise or of option flag constants ( {@link EFS#OVERWRITE} or {@link - * EFS#SHALLOW}). - * @param monitor a progress monitor, or null if progress reporting and cancellation - * are not desired - * @exception CoreException if this method fails. Reasons include: - *

- */ - protected void copyDirectory( - IFileInfo sourceInfo, IFileStore destination, int options, IProgressMonitor monitor) - throws CoreException { - try { - IFileStore[] children = null; - int opWork = 1; - if ((options & EFS.SHALLOW) == 0) { - children = childStores(EFS.NONE, null); - opWork += children.length; - } - monitor.beginTask("", opWork); // $NON-NLS-1$ - monitor.subTask(NLS.bind(Messages.copying, toString())); - // create directory - destination.mkdir(EFS.NONE, Policy.subMonitorFor(monitor, 1)); - // copy attributes - transferAttributes(sourceInfo, destination); - - if (children == null) return; - // copy children - for (int i = 0; i < children.length; i++) - children[i].copy( - destination.getChild(children[i].getName()), options, Policy.subMonitorFor(monitor, 1)); - } finally { - monitor.done(); - } - } - - /** - * Copies a file as specified by {@link IFileStore#copy(IFileStore, int, IProgressMonitor)}. - * - * @param sourceInfo The current file information for the source of the move - * @param destination The destination of the copy. - * @param options bit-wise or of option flag constants ( {@link EFS#OVERWRITE} or {@link - * EFS#SHALLOW}). - * @param monitor a progress monitor, or null if progress reporting and cancellation - * are not desired - * @exception CoreException if this method fails. Reasons include: - * - */ - protected void copyFile( - IFileInfo sourceInfo, IFileStore destination, int options, IProgressMonitor monitor) - throws CoreException { - try { - if ((options & EFS.OVERWRITE) == 0 && destination.fetchInfo().exists()) - Policy.error(EFS.ERROR_EXISTS, NLS.bind(Messages.fileExists, destination)); - long length = sourceInfo.getLength(); - int totalWork; - if (length == -1) totalWork = IProgressMonitor.UNKNOWN; - else totalWork = 1 + (int) (length / buffer.length); - String sourcePath = toString(); - monitor.beginTask(NLS.bind(Messages.copying, sourcePath), totalWork); - InputStream in = null; - OutputStream out = null; - try { - in = openInputStream(EFS.NONE, Policy.subMonitorFor(monitor, 0)); - out = destination.openOutputStream(EFS.NONE, Policy.subMonitorFor(monitor, 0)); - transferStreams(in, out, sourcePath, monitor); - transferAttributes(sourceInfo, destination); - } catch (CoreException e) { - Policy.safeClose(in); - Policy.safeClose(out); - // if we failed to write, try to cleanup the half written file - if (!destination.fetchInfo(0, null).exists()) destination.delete(EFS.NONE, null); - throw e; - } - } finally { - monitor.done(); - } - } - - /** - * The default implementation of {@link IFileStore#delete(int, IProgressMonitor)}. This - * implementation always throws an exception indicating that deletion is not supported by this - * file system. This method should be overridden for all file systems on which deletion is - * supported. - * - * @param options bit-wise or of option flag constants - * @param monitor a progress monitor, or null if progress reporting and cancellation - * are not desired - */ - public void delete(int options, IProgressMonitor monitor) throws CoreException { - Policy.error(EFS.ERROR_DELETE, NLS.bind(Messages.noImplDelete, toString())); - } - - /** - * This implementation of {@link Object#equals(Object)} defines equality based on the file store's - * URI. Subclasses should override this method to return true if and only if the two - * file stores represent the same resource in the backing file system. Issues to watch out for - * include whether the file system is case-sensitive, and whether trailing slashes are considered - * significant. Subclasses that override this method should also override {@link #hashCode()}. - * - * @param obj The object to compare with the receiver for equality - * @return true if this object is equal to the provided object, and false - * otherwise. - * @since org.eclipse.core.filesystem 1.1 - */ - public boolean equals(Object obj) { - if (this == obj) return true; - if (!(obj instanceof FileStore)) return false; - return toURI().equals(((FileStore) obj).toURI()); - } - - /** - * The default implementation of {@link IFileStore#fetchInfo()}. This implementation forwards to - * {@link IFileStore#fetchInfo(int, IProgressMonitor)}. Subclasses may override this method. - */ - public IFileInfo fetchInfo() { - try { - return fetchInfo(EFS.NONE, null); - } catch (CoreException e) { - // there was an error contacting the file system, so treat it as non-existent file - FileInfo result = new FileInfo(getName()); - result.setExists(false); - return result; - } - } - - /* (non-Javadoc) - * @see org.eclipse.core.filesystem.IFileStore#fetchInfo(int, org.eclipse.core.runtime.IProgressMonitor) - */ - public abstract IFileInfo fetchInfo(int options, IProgressMonitor monitor) throws CoreException; - - /** - * The default implementation of {@link IFileStore#getChild(IPath)}. Subclasses may override. - * - * @deprecated - */ - public IFileStore getChild(IPath path) { - IFileStore result = this; - for (int i = 0, imax = path.segmentCount(); i < imax; i++) - result = result.getChild(path.segment(i)); - return result; - } - - /** - * The default implementation of {@link IFileStore#getFileStore(IPath)} Subclasses may override. - * - * @since org.eclipse.core.filesystem 1.2 - */ - public IFileStore getFileStore(IPath path) { - IFileStore result = this; - String segment = null; - for (int i = 0, imax = path.segmentCount(); i < imax; i++) { - segment = path.segment(i); - if (segment.equals(".")) // $NON-NLS-1$ - continue; - else if (segment.equals("..") && result.getParent() != null) // $NON-NLS-1$ - result = result.getParent(); - else result = result.getChild(segment); - } - return result; - } - - /* (non-Javadoc) - * @see org.eclipse.core.filesystem.IFileStore#getChild(java.lang.String) - */ - public abstract IFileStore getChild(String name); - - // /** - // * The default implementation of {@link IFileStore#getFileSystem()}. - // * Subclasses may override. - // */ - // public IFileSystem getFileSystem() { - // try { - // return EFS.getFileSystem(toURI().getScheme()); - // } catch (CoreException e) { - // //this will only happen if toURI() has been incorrectly implemented - // throw new RuntimeException(e); - // } - // } - - /* (non-Javadoc) - * @see org.eclipse.core.filesystem.IFileStore#getName() - */ - public abstract String getName(); - - /* (non-Javadoc) - * @see org.eclipse.core.filesystem.IFileStore#getParent() - */ - public abstract IFileStore getParent(); - - /** - * This implementation of {@link Object#hashCode()} uses a definition of equality based on - * equality of the file store's URI. Subclasses that override {@link #equals(Object)} should also - * override this method to ensure the contract of {@link Object#hashCode()} is honored. - * - * @return A hash code value for this file store - * @since org.eclipse.core.filesystem 1.1 - */ - public int hashCode() { - return toURI().hashCode(); - } - - /** - * The default implementation of {@link IFileStore#isParentOf(IFileStore)}. This implementation - * performs parent calculation using other primitive methods. Subclasses may override this method. - * - * @param other The store to test for parentage. - * @return true if this store is a parent of the provided store, and false - * otherwise. - */ - public boolean isParentOf(IFileStore other) { - while (true) { - other = other.getParent(); - if (other == null) return false; - if (this.equals(other)) return true; - } - } - - /** - * The default implementation of {@link IFileStore#mkdir(int, IProgressMonitor)}. This - * implementation always throws an exception indicating that this file system is read only. This - * method should be overridden for all writable file systems. - * - * @param options bit-wise or of option flag constants - * @param monitor a progress monitor, or null if progress reporting and cancellation - * are not desired - */ - public IFileStore mkdir(int options, IProgressMonitor monitor) throws CoreException { - Policy.error(EFS.ERROR_WRITE, NLS.bind(Messages.noImplWrite, toString())); - return null; // can't get here - } - - /** - * The default implementation of {@link IFileStore#move(IFileStore, int, IProgressMonitor)}. This - * implementation performs a move by using other primitive methods. Subclasses may override this - * method. - */ - public void move(IFileStore destination, int options, IProgressMonitor monitor) - throws CoreException { - monitor = Policy.monitorFor(monitor); - try { - monitor.beginTask(NLS.bind(Messages.moving, destination.toString()), 100); - copy(destination, options & EFS.OVERWRITE, Policy.subMonitorFor(monitor, 70)); - delete(EFS.NONE, Policy.subMonitorFor(monitor, 30)); - } catch (CoreException e) { - // throw new error to indicate failure occurred during a move - String message = NLS.bind(Messages.couldNotMove, toString()); - Policy.error(EFS.ERROR_WRITE, message, e); - } finally { - monitor.done(); - } - } - - /* (non-Javadoc) - * @see org.eclipse.core.filesystem.IFileStore#openInputStream(int, IProgressMonitor) - */ - public abstract InputStream openInputStream(int options, IProgressMonitor monitor) - throws CoreException; - - /** - * The default implementation of {@link IFileStore#openOutputStream(int, IProgressMonitor)}. This - * implementation always throws an exception indicating that this file system is read only. This - * method should be overridden for all writable file systems. - * - *

Implementations of this method are responsible for ensuring that the exact sequence of bytes - * written to the output stream are returned on a subsequent call to {@link #openInputStream(int, - * IProgressMonitor)}, unless there have been intervening modifications to the file in the file - * system. For example, the implementation of this method must not perform conversion of line - * terminator characters on text data in the stream. - * - * @param options bit-wise or of option flag constants - * @param monitor a progress monitor, or null if progress reporting and cancellation - * are not desired - */ - public OutputStream openOutputStream(int options, IProgressMonitor monitor) throws CoreException { - Policy.error(EFS.ERROR_WRITE, NLS.bind(Messages.noImplWrite, toString())); - return null; // can't get here - } - - /** - * The default implementation of {@link IFileStore#putInfo(IFileInfo, int, IProgressMonitor)}. - * This implementation always throws an exception indicating that this file system is read only. - * This method should be overridden for all writable file systems. - * - * @param options bit-wise or of option flag constants - * @param monitor a progress monitor, or null if progress reporting and cancellation - * are not desired - */ - public void putInfo(IFileInfo info, int options, IProgressMonitor monitor) throws CoreException { - Policy.error(EFS.ERROR_WRITE, NLS.bind(Messages.noImplWrite, toString())); - } - - /** - * The default implementation of {@link IFileStore#toLocalFile(int, IProgressMonitor)}. When the - * {@link EFS#CACHE} option is specified, this method returns a cached copy of this store in the - * local file system, or null if this store does not exist. - */ - public File toLocalFile(int options, IProgressMonitor monitor) throws CoreException { - // monitor = Policy.monitorFor(monitor); - // //caching is the only recognized option - // if (options != EFS.CACHE) - // return null; - // return FileCache.getCache().cache(this, monitor); - throw new UnsupportedOperationException(); - } - - @Override - public Object getAdapter(Class aClass) { - throw new UnsupportedOperationException("getAdapter"); - } - - /** - * Default implementation of {@link IFileStore#toString()}. This default implementation returns a - * string equal to the one returned by #toURI().toString(). Subclasses may override to provide a - * more specific string representation of this store. - * - * @return A string representation of this store. - */ - public String toString() { - return toURI().toString(); - } - - /* (non-Javadoc) - * @see org.eclipse.core.filesystem.IFileStore#toURI() - */ - public abstract URI toURI(); - - private void transferAttributes(IFileInfo sourceInfo, IFileStore destination) - throws CoreException { - int options = EFS.SET_ATTRIBUTES | EFS.SET_LAST_MODIFIED; - destination.putInfo(sourceInfo, options, null); - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/internal/filesystem/LocalFile.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/internal/filesystem/LocalFile.java deleted file mode 100644 index 3aca516d4a87..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/internal/filesystem/LocalFile.java +++ /dev/null @@ -1,435 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2005, - * 2014 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation Martin Oberhuber (Wind River) - - * [294429] Avoid substring baggage in FileInfo Martin Lippert (VMware) - [394607] Poor performance - * when using findFilesForLocationURI Sergey Prigogin (Google) - Fix for bug 435519 - * ***************************************************************************** - */ -package org.eclipse.core.internal.filesystem; - -import java.io.File; -import java.io.FileInputStream; -import java.io.FileNotFoundException; -import java.io.FileOutputStream; -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; -import java.net.URI; -import org.eclipse.core.filesystem.EFS; -import org.eclipse.core.filesystem.IFileInfo; -import org.eclipse.core.filesystem.IFileStore; -import org.eclipse.core.filesystem.URIUtil; -import org.eclipse.core.filesystem.provider.FileInfo; -import org.eclipse.core.filesystem.provider.FileStore; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.MultiStatus; -import org.eclipse.core.runtime.NullProgressMonitor; -import org.eclipse.core.runtime.OperationCanceledException; -import org.eclipse.core.runtime.Path; -import org.eclipse.core.runtime.Status; -import org.eclipse.osgi.util.NLS; - -/** - * File system implementation based on storage of files in the local operating system's file system. - */ -public class LocalFile extends FileStore { - /** The java.io.File that this store represents. */ - protected final File file; - /** The absolute file system path of the file represented by this store. */ - protected final String filePath; - - /** cached value for the toURI method */ - private URI uri; - - private static int attributes(File aFile) { - if (!aFile.exists() || aFile.canWrite()) return EFS.NONE; - return EFS.ATTRIBUTE_READ_ONLY; - } - - /** - * Creates a new local file. - * - * @param file The file this local file represents - */ - public LocalFile(File file) { - this.file = file; - this.filePath = file.getAbsolutePath(); - } - - /** - * This method is called after a failure to modify a file or directory. Check to see if the parent - * is read-only and if so then throw an exception with a more specific message and error code. - * - * @param target The file that we failed to modify - * @param exception The low level exception that occurred, or null - * @throws CoreException A more specific exception if the parent is read-only - */ - private void checkReadOnlyParent(File target, Throwable exception) throws CoreException { - File parent = target.getParentFile(); - if (parent != null && (attributes(parent) & EFS.ATTRIBUTE_READ_ONLY) != 0) { - String message = NLS.bind(Messages.readOnlyParent, target.getAbsolutePath()); - Policy.error(EFS.ERROR_PARENT_READ_ONLY, message, exception); - } - } - - /** - * This method is called after a failure to modify a directory. Check to see if the target is not - * writable (e.g. device doesn't not exist) and if so then throw an exception with a more specific - * message and error code. - * - * @param target The directory that we failed to modify - * @param exception The low level exception that occurred, or null - * @throws CoreException A more specific exception if the target is not writable - */ - private void checkTargetIsNotWritable(File target, Throwable exception) throws CoreException { - if (!target.canWrite()) { - String message = NLS.bind(Messages.couldNotWrite, target.getAbsolutePath()); - Policy.error(EFS.ERROR_WRITE, message); - } - } - - public String[] childNames(int options, IProgressMonitor monitor) { - String[] names = file.list(); - return (names == null ? EMPTY_STRING_ARRAY : names); - } - - public void copy(IFileStore destFile, int options, IProgressMonitor monitor) - throws CoreException { - if (destFile instanceof LocalFile) { - File source = file; - File destination = ((LocalFile) destFile).file; - // handle case variants on a case-insensitive OS, or copying between - // two equivalent files in an environment that supports symbolic links. - // in these nothing needs to be copied (and doing so would likely lose data) - try { - if (source.getCanonicalFile().equals(destination.getCanonicalFile())) { - // nothing to do - return; - } - } catch (IOException e) { - String message = NLS.bind(Messages.couldNotRead, source.getAbsolutePath()); - Policy.error(EFS.ERROR_READ, message, e); - } - } - // fall through to super implementation - super.copy(destFile, options, monitor); - } - - public void delete(int options, IProgressMonitor monitor) throws CoreException { - if (monitor == null) monitor = new NullProgressMonitor(); - // else - // monitor = new InfiniteProgress(monitor); - try { - monitor.beginTask(NLS.bind(Messages.deleting, this), 200); - String message = Messages.deleteProblem; - MultiStatus result = new MultiStatus(Policy.PI_FILE_SYSTEM, EFS.ERROR_DELETE, message, null); - internalDelete(file, filePath, result, monitor); - if (!result.isOK()) throw new CoreException(result); - } finally { - monitor.done(); - } - } - - public boolean equals(Object obj) { - if (!(obj instanceof LocalFile)) return false; - // Mac oddity: file.equals returns false when case is different even when - // file system is not case sensitive (Radar bug 3190672) - LocalFile otherFile = (LocalFile) obj; - // if (LocalFileSystem.MACOSX) - // return filePath.toLowerCase().equals(otherFile.filePath.toLowerCase()); - return file.equals(otherFile.file); - } - - public IFileInfo fetchInfo(int options, IProgressMonitor monitor) { - // if (LocalFileNativesManager.isUsingNatives()) { - // FileInfo info = LocalFileNativesManager.fetchFileInfo(filePath); - // //natives don't set the file name on all platforms - // if (info.getName().length() == 0) { - // String name = file.getName(); - // //Bug 294429: make sure that substring baggage is removed - // info.setName(new String(name.toCharArray())); - // } - // return info; - // } - // in-lined non-native implementation - FileInfo info = new FileInfo(file.getName()); - final long lastModified = file.lastModified(); - if (lastModified <= 0) { - // if the file doesn't exist, all other attributes should be default values - info.setExists(false); - return info; - } - info.setLastModified(lastModified); - info.setExists(true); - info.setLength(file.length()); - info.setDirectory(file.isDirectory()); - info.setAttribute(EFS.ATTRIBUTE_READ_ONLY, file.exists() && !file.canWrite()); - info.setAttribute(EFS.ATTRIBUTE_HIDDEN, file.isHidden()); - return info; - } - - public IFileStore getChild(IPath path) { - return new LocalFile(new File(file, path.toOSString())); - } - - public IFileStore getFileStore(IPath path) { - return new LocalFile(new Path(file.getPath()).append(path).toFile()); - } - - public IFileStore getChild(String name) { - return new LocalFile(new File(file, name)); - } - - // /* - // * (non-Javadoc) - // * @see org.eclipse.core.filesystem.IFileStore#getFileSystem() - // */ - // public IFileSystem getFileSystem() { - // return LocalFileSystem.getInstance(); - // } - - public String getName() { - return file.getName(); - } - - public IFileStore getParent() { - File parent = file.getParentFile(); - return parent == null ? null : new LocalFile(parent); - } - - public int hashCode() { - // if (LocalFileSystem.MACOSX) - // return filePath.toLowerCase().hashCode(); - return file.hashCode(); - } - - /** - * Deletes the given file recursively, adding failure info to the provided status object. The - * filePath is passed as a parameter to optimize java.io.File object creation. - */ - private boolean internalDelete( - File target, String pathToDelete, MultiStatus status, IProgressMonitor monitor) { - // first try to delete - this should succeed for files and symbolic links to directories - if (monitor.isCanceled()) { - throw new OperationCanceledException(); - } - if (target.delete() || !target.exists()) return true; - if (target.isDirectory()) { - monitor.subTask(NLS.bind(Messages.deleting, target)); - String[] list = target.list(); - if (list == null) list = EMPTY_STRING_ARRAY; - int parentLength = pathToDelete.length(); - boolean failedRecursive = false; - for (int i = 0, imax = list.length; i < imax; i++) { - if (monitor.isCanceled()) { - throw new OperationCanceledException(); - } - // optimized creation of child path object - StringBuffer childBuffer = new StringBuffer(parentLength + list[i].length() + 1); - childBuffer.append(pathToDelete); - childBuffer.append(File.separatorChar); - childBuffer.append(list[i]); - String childName = childBuffer.toString(); - // try best effort on all children so put logical OR at end - failedRecursive = - !internalDelete(new File(childName), childName, status, monitor) || failedRecursive; - monitor.worked(1); - } - try { - // don't try to delete the root if one of the children failed - if (!failedRecursive && target.delete()) return true; - } catch (Exception e) { - // we caught a runtime exception so log it - String message = NLS.bind(Messages.couldnotDelete, target.getAbsolutePath()); - status.add(new Status(IStatus.ERROR, Policy.PI_FILE_SYSTEM, EFS.ERROR_DELETE, message, e)); - return false; - } - } - // if we got this far, we failed - String message = null; - if (fetchInfo().getAttribute(EFS.ATTRIBUTE_READ_ONLY)) - message = NLS.bind(Messages.couldnotDeleteReadOnly, target.getAbsolutePath()); - else message = NLS.bind(Messages.couldnotDelete, target.getAbsolutePath()); - status.add(new Status(IStatus.ERROR, Policy.PI_FILE_SYSTEM, EFS.ERROR_DELETE, message, null)); - return false; - } - - public boolean isParentOf(IFileStore other) { - if (!(other instanceof LocalFile)) return false; - String thisPath = filePath; - String thatPath = ((LocalFile) other).filePath; - int thisLength = thisPath.length(); - int thatLength = thatPath.length(); - // if equal then not a parent - if (thisLength >= thatLength) return false; - // if (getFileSystem().isCaseSensitive()) { - if (thatPath.indexOf(thisPath) != 0) return false; - // } else { - // if (thatPath.toLowerCase().indexOf(thisPath.toLowerCase()) != 0) - // return false; - // } - // The common portion must end with a separator character for this to be a parent of that - return thisPath.charAt(thisLength - 1) == File.separatorChar - || thatPath.charAt(thisLength) == File.separatorChar; - } - - public IFileStore mkdir(int options, IProgressMonitor monitor) throws CoreException { - boolean shallow = (options & EFS.SHALLOW) != 0; - // must be a directory - if (shallow) file.mkdir(); - else file.mkdirs(); - if (!file.isDirectory()) { - checkReadOnlyParent(file, null); - checkTargetIsNotWritable(file, null); - String message = NLS.bind(Messages.failedCreateWrongType, filePath); - Policy.error(EFS.ERROR_WRONG_TYPE, message); - } - return this; - } - - public void move(IFileStore destFile, int options, IProgressMonitor monitor) - throws CoreException { - if (!(destFile instanceof LocalFile)) { - super.move(destFile, options, monitor); - return; - } - File source = file; - File destination = ((LocalFile) destFile).file; - boolean overwrite = (options & EFS.OVERWRITE) != 0; - monitor = Policy.monitorFor(monitor); - try { - monitor.beginTask(NLS.bind(Messages.moving, source.getAbsolutePath()), 10); - // this flag captures case renaming on a case-insensitive OS, or moving - // two equivalent files in an environment that supports symbolic links. - // in these cases we NEVER want to delete anything - boolean sourceEqualsDest = false; - try { - sourceEqualsDest = source.getCanonicalFile().equals(destination.getCanonicalFile()); - } catch (IOException e) { - String message = NLS.bind(Messages.couldNotMove, source.getAbsolutePath()); - Policy.error(EFS.ERROR_WRITE, message, e); - } - if (!sourceEqualsDest && !overwrite && destination.exists()) { - String message = NLS.bind(Messages.fileExists, destination.getAbsolutePath()); - Policy.error(EFS.ERROR_EXISTS, message); - } - if (source.renameTo(destination)) { - // double-check to ensure we really did move - // since java.io.File#renameTo sometimes lies - if (!sourceEqualsDest && source.exists()) { - // XXX: document when this occurs - if (destination.exists()) { - // couldn't delete the source so remove the destination and throw an error - // XXX: if we fail deleting the destination, the destination (root) may still exist - new LocalFile(destination).delete(EFS.NONE, null); - String message = NLS.bind(Messages.couldnotDelete, source.getAbsolutePath()); - Policy.error(EFS.ERROR_DELETE, message); - } - // source exists but destination doesn't so try to copy below - } else { - // destination.exists() returns false for broken links, this has to be handled explicitly - if (!destination.exists() && !destFile.fetchInfo().getAttribute(EFS.ATTRIBUTE_SYMLINK)) { - // neither the source nor the destination exist. this is REALLY bad - String message = - NLS.bind( - Messages.failedMove, source.getAbsolutePath(), destination.getAbsolutePath()); - Policy.error(EFS.ERROR_WRITE, message); - } - // the move was successful - monitor.worked(10); - return; - } - } - // for some reason renameTo didn't work - if (sourceEqualsDest) { - String message = NLS.bind(Messages.couldNotMove, source.getAbsolutePath()); - Policy.error(EFS.ERROR_WRITE, message, null); - } - // fall back to default implementation - super.move(destFile, options, Policy.subMonitorFor(monitor, 10)); - } finally { - monitor.done(); - } - } - - public InputStream openInputStream(int options, IProgressMonitor monitor) throws CoreException { - monitor = Policy.monitorFor(monitor); - try { - monitor.beginTask("", 1); // $NON-NLS-1$ - return new FileInputStream(file); - } catch (FileNotFoundException e) { - String message; - if (!file.exists()) message = NLS.bind(Messages.fileNotFound, filePath); - else if (file.isDirectory()) message = NLS.bind(Messages.notAFile, filePath); - else message = NLS.bind(Messages.couldNotRead, filePath); - Policy.error(EFS.ERROR_READ, message, e); - return null; - } finally { - monitor.done(); - } - } - - public OutputStream openOutputStream(int options, IProgressMonitor monitor) throws CoreException { - monitor = Policy.monitorFor(monitor); - try { - monitor.beginTask("", 1); // $NON-NLS-1$ - return new FileOutputStream(file, (options & EFS.APPEND) != 0); - } catch (FileNotFoundException e) { - checkReadOnlyParent(file, e); - String message; - String path = filePath; - if (file.isDirectory()) message = NLS.bind(Messages.notAFile, path); - else message = NLS.bind(Messages.couldNotWrite, path); - Policy.error(EFS.ERROR_WRITE, message, e); - return null; - } finally { - monitor.done(); - } - } - - public void putInfo(IFileInfo info, int options, IProgressMonitor monitor) throws CoreException { - boolean success = true; - if ((options & EFS.SET_ATTRIBUTES) != 0) { - // if (LocalFileNativesManager.isUsingNatives()) - // success &= LocalFileNativesManager.putFileInfo(filePath, info, options); - } - // native does not currently set last modified - if ((options & EFS.SET_LAST_MODIFIED) != 0) - success &= file.setLastModified(info.getLastModified()); - if (!success && !file.exists()) - Policy.error(EFS.ERROR_NOT_EXISTS, NLS.bind(Messages.fileNotFound, filePath)); - } - - /* (non-Javadoc) - * @see org.eclipse.core.filesystem.provider.FileStore#toLocalFile(int, org.eclipse.core.runtime.IProgressMonitor) - */ - public File toLocalFile(int options, IProgressMonitor monitor) throws CoreException { - // if (options == EFS.CACHE) - // return super.toLocalFile(options, monitor); - return file; - } - - /* (non-Javadoc) - * @see org.eclipse.core.filesystem.IFileStore#toString() - */ - public String toString() { - return file.toString(); - } - - /* (non-Javadoc) - * @see org.eclipse.core.filesystem.IFileStore#toURI() - */ - public URI toURI() { - if (this.uri == null) { - this.uri = URIUtil.toURI(filePath); - } - return this.uri; - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/internal/filesystem/Messages.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/internal/filesystem/Messages.java deleted file mode 100644 index dcf1a3b4ccbe..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/internal/filesystem/Messages.java +++ /dev/null @@ -1,45 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2005, - * 2010 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM - Initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.internal.filesystem; - -import org.eclipse.osgi.util.NLS; - -/** Provides translatable messages for the file system bundle */ -public class Messages extends NLS { - private static final String BUNDLE_NAME = - "org.eclipse.core.internal.filesystem.messages"; // $NON-NLS-1$ - - public static String copying; - public static String couldnotDelete; - public static String couldnotDeleteReadOnly; - public static String couldNotLoadLibrary; - public static String couldNotMove; - public static String couldNotRead; - public static String couldNotWrite; - public static String deleteProblem; - public static String deleting; - public static String failedCreateWrongType; - public static String failedMove; - public static String failedReadDuringWrite; - public static String fileExists; - public static String fileNotFound; - public static String moving; - public static String noFileSystem; - public static String noImplDelete; - public static String noImplWrite; - public static String noScheme; - public static String notAFile; - public static String readOnlyParent; - - static { - // initialize resource bundles - NLS.initializeMessages(BUNDLE_NAME, Messages.class); - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/internal/filesystem/Policy.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/internal/filesystem/Policy.java deleted file mode 100644 index 80568f8360a3..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/java/org/eclipse/core/internal/filesystem/Policy.java +++ /dev/null @@ -1,87 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2000, - * 2014 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.internal.filesystem; - -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; -import java.util.Date; -import org.eclipse.core.internal.runtime.RuntimeLog; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.NullProgressMonitor; -import org.eclipse.core.runtime.OperationCanceledException; -import org.eclipse.core.runtime.Status; -import org.eclipse.core.runtime.SubProgressMonitor; - -/** Grab bag of utility methods for the file system plugin */ -public class Policy { - public static final String PI_FILE_SYSTEM = "org.eclipse.core.filesystem"; // $NON-NLS-1$ - - public static void checkCanceled(IProgressMonitor monitor) { - if (monitor.isCanceled()) throw new OperationCanceledException(); - } - - /** - * Print a debug message to the console. Pre-pend the message with the current date and the name - * of the current thread. - */ - public static void debug(String message) { - StringBuffer buffer = new StringBuffer(); - buffer.append(new Date(System.currentTimeMillis())); - buffer.append(" - ["); // $NON-NLS-1$ - buffer.append(Thread.currentThread().getName()); - buffer.append("] "); // $NON-NLS-1$ - buffer.append(message); - System.out.println(buffer.toString()); - } - - public static void error(int code, String message) throws CoreException { - error(code, message, null); - } - - public static void error(int code, String message, Throwable exception) throws CoreException { - int severity = code == 0 ? 0 : 1 << (code % 100 / 33); - throw new CoreException(new Status(severity, PI_FILE_SYSTEM, code, message, exception)); - } - - public static void log(int severity, String message, Throwable t) { - if (message == null) message = ""; // $NON-NLS-1$ - RuntimeLog.log(new Status(severity, PI_FILE_SYSTEM, 1, message, t)); - } - - public static IProgressMonitor monitorFor(IProgressMonitor monitor) { - return monitor == null ? new NullProgressMonitor() : monitor; - } - - /** Closes a stream and ignores any resulting exception. */ - public static void safeClose(InputStream in) { - try { - if (in != null) in.close(); - } catch (IOException e) { - // ignore - } - } - - /** Closes a stream and ignores any resulting exception. */ - public static void safeClose(OutputStream out) { - try { - if (out != null) out.close(); - } catch (IOException e) { - // ignore - } - } - - public static IProgressMonitor subMonitorFor(IProgressMonitor monitor, int ticks) { - if (monitor == null) return new NullProgressMonitor(); - if (monitor instanceof NullProgressMonitor) return monitor; - return new SubProgressMonitor(monitor, ticks); - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/resources/org/eclipse/core/internal/filesystem/messages.properties b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/resources/org/eclipse/core/internal/filesystem/messages.properties deleted file mode 100644 index 98aca605c041..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-filesystem/src/main/resources/org/eclipse/core/internal/filesystem/messages.properties +++ /dev/null @@ -1,33 +0,0 @@ -############################################################################### -# Copyright (c) 2005, 2010 IBM Corporation and others. -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -# -# Contributors: -# IBM Corporation - initial API and implementation -############################################################################### -### File store plugin messages. - -copying = Copying: {0}. -couldnotDelete = Could not delete: {0}. -couldnotDeleteReadOnly = Could not delete read-only file: {0}. -couldNotLoadLibrary = Could not load library: {0}. This library provides platform-specific optimizations for certain file system operations. This library is not present on all platforms, so this may not be an error. The resources plug-in will safely fall back to using java.io.File functionality. -couldNotMove = Could not move: {0}. -couldNotRead = Could not read file: {0}. -couldNotWrite = Could not write file: {0}. -deleteProblem = Problems encountered while deleting files. -deleting = Deleting: {0}. -failedCreateWrongType=Cannot create file because existing file of wrong type exists: {0}. -failedMove = Critical failure moving: {0} to: {1}. Content is lost. -failedReadDuringWrite = Could not read from source when writing file: {0} -fileExists = File already exists on disk: {0}. -fileNotFound = File not found: {0}. -moving = Moving: {0}. -noFileSystem=No file system is defined for scheme: {0} -noImplDelete = This file system does not support deletion: {0}. -noImplWrite = This file system is read only: {0}. -noScheme=Must specify a URI scheme: -notAFile = Resource is not a file: {0}. -readOnlyParent = Parent of resource: {0} is marked as read-only. diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/pom.xml b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/pom.xml deleted file mode 100644 index 855321a9d84e..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/pom.xml +++ /dev/null @@ -1,116 +0,0 @@ - - - - 4.0.0 - - che-plugin-java-ext-jdt-parent - org.eclipse.che.plugin - 6.13.0-SNAPSHOT - - org.eclipse.core.resources - jar - Che Plugin :: Java :: org.eclipse.core.resources - - false - - - - com.google.inject - guice - - - javax.annotation - javax.annotation-api - - - org.eclipse.birt.runtime - org.eclipse.core.jobs - - - org.eclipse.birt.runtime - org.eclipse.core.runtime - - - org.eclipse.birt.runtime - org.eclipse.equinox.common - - - org.eclipse.che.core - che-core-api-core - - - org.eclipse.che.core - che-core-api-project - - - org.eclipse.che.core - che-core-api-project-shared - - - org.eclipse.che.core - che-core-api-workspace - - - org.eclipse.che.plugin - org.eclipse.core.filesystem - - - org.eclipse.core - contenttype - - - org.eclipse.core - org.eclipse.core.commands - - - org.eclipse.equinox - preferences - - - org.eclipse.tycho - org.eclipse.osgi - - - org.slf4j - slf4j-api - - - - - - com.mycila - license-maven-plugin - - - **/*.png - **/*.gif - **/*.rscjson - **/*.zip - **/*.txt - **/*.jpg - **/*.rsc - **/*.json - **/org/eclipse/core/** - **/org/eclipse/che/core/internal/resources/ChePreferences.java - **/org/eclipse/che/core/internal/resources/FileUtil.java - **/org/eclipse/che/core/internal/resources/ResourceStatus.java - **/org/eclipse/che/core/internal/resources/Rules.java - **/org/eclipse/che/core/internal/utils/Policy.java - - - - - - diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/preferences/ChePreferences.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/preferences/ChePreferences.java deleted file mode 100644 index d9a587a62757..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/preferences/ChePreferences.java +++ /dev/null @@ -1,779 +0,0 @@ -/* - * Copyright (c) 2012-2018 Red Hat, Inc. - * This program and the accompanying materials are made - * available under the terms of the Eclipse Public License 2.0 - * which is available at https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Red Hat, Inc. - initial API and implementation - */ -package org.eclipse.che.core.internal.preferences; - -import java.io.ByteArrayOutputStream; -import java.io.File; -import java.io.FileNotFoundException; -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; -import java.util.Collections; -import java.util.Comparator; -import java.util.Enumeration; -import java.util.Iterator; -import java.util.Map; -import java.util.Properties; -import java.util.Set; -import java.util.TreeSet; -import org.eclipse.core.internal.preferences.Base64; -import org.eclipse.core.internal.preferences.ImmutableMap; -import org.eclipse.core.internal.preferences.PrefsMessages; -import org.eclipse.core.internal.preferences.SafeFileInputStream; -import org.eclipse.core.internal.preferences.SafeFileOutputStream; -import org.eclipse.core.resources.ResourcesPlugin; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.Status; -import org.eclipse.core.runtime.preferences.IEclipsePreferences; -import org.eclipse.core.runtime.preferences.IPreferenceNodeVisitor; -import org.osgi.service.prefs.BackingStoreException; -import org.osgi.service.prefs.Preferences; - -/** @author Evgen Vidolob */ -public class ChePreferences implements IEclipsePreferences { - - protected static final String VERSION_KEY = "eclipse.preferences.version"; // $NON-NLS-1$ - protected static final String VERSION_VALUE = "1"; // $NON-NLS-1$ - protected static final String DOUBLE_SLASH = "//"; // $NON-NLS-1$ - protected static final String EMPTY_STRING = ""; // $NON-NLS-1$ - private static final String FALSE = "false"; // $NON-NLS-1$ - private static final String TRUE = "true"; // $NON-NLS-1$ - /** Protects write access to properties and children. */ - protected ImmutableMap properties = ImmutableMap.EMPTY; - - private final Object childAndPropertyLock = new Object(); - protected boolean dirty = false; - private final String filePath; - - public ChePreferences(String filePath) { - this.filePath = filePath; - } - - /** - * Loads the preference node. This method returns silently if the node does not exist in the - * backing store (for example non-existent project). - * - * @throws BackingStoreException if the node exists in the backing store but it could not be - * loaded - */ - protected void load() throws BackingStoreException { - load(filePath); - } - - protected void load(String location) throws BackingStoreException { - if (location == null) { - return; - } - Properties fromDisk = loadProperties(location); - convertFromProperties(this, fromDisk, false); - } - - protected static Properties loadProperties(String location) throws BackingStoreException { - // if (DEBUG_PREFERENCE_GENERAL) - // PrefsMessages.message("Loading preferences from file: " + location); //$NON-NLS-1$ - InputStream input = null; - Properties result = new Properties(); - try { - input = new SafeFileInputStream(new File(location)); - result.load(input); - } catch (FileNotFoundException e) { - // file doesn't exist but that's ok. - // if (DEBUG_PREFERENCE_GENERAL) - // PrefsMessages.message("Preference file does not exist: " + location); - // //$NON-NLS-1$ - return result; - } catch (IOException e) { - // String message = NLS.bind(PrefsMessages.preferences_loadException, location); - // log(new Status(IStatus.INFO, PrefsMessages.OWNER_NAME, IStatus.INFO, message, - // e)); - throw new BackingStoreException(e.getMessage(), e); - } finally { - if (input != null) - try { - input.close(); - } catch (IOException e) { - // ignore - } - } - return result; - } - - /* - * Helper method to convert this node to a Properties file suitable - * for persistence. - */ - protected Properties convertToProperties(Properties result, String prefix) - throws BackingStoreException { - // add the key/value pairs from this node - boolean addSeparator = prefix.length() != 0; - // thread safety: copy reference in case of concurrent change - ImmutableMap temp; - synchronized (childAndPropertyLock) { - temp = properties; - } - String[] keys = temp.keys(); - for (int i = 0, imax = keys.length; i < imax; i++) { - String value = temp.get(keys[i]); - if (value != null) result.put(encodePath(prefix, keys[i]), value); - } - // // recursively add the child information - // IEclipsePreferences[] childNodes = getChildren(true); - // for (int i = 0; i < childNodes.length; i++) { - // ChePreferences child = (ChePreferences) childNodes[i]; - // String fullPath = addSeparator ? prefix + PATH_SEPARATOR + child.name() : - // child.name(); - // child.convertToProperties(result, fullPath); - // } - return result; - } - - /* - * Encode the given path and key combo to a form which is suitable for - * persisting or using when searching. If the key contains a slash character - * then we must use a double-slash to indicate the end of the - * path/the beginning of the key. - */ - public static String encodePath(String path, String key) { - String result; - int pathLength = path == null ? 0 : path.length(); - if (key.indexOf(IPath.SEPARATOR) == -1) { - if (pathLength == 0) result = key; - else result = path + IPath.SEPARATOR + key; - } else { - if (pathLength == 0) result = DOUBLE_SLASH + key; - else result = path + DOUBLE_SLASH + key; - } - return result; - } - - /* - * Version 1 (current version) - * path/key=value - */ - protected static void convertFromProperties( - ChePreferences node, Properties table, boolean notify) { - String version = table.getProperty(VERSION_KEY); - if (version == null || !VERSION_VALUE.equals(version)) { - // ignore for now - } - table.remove(VERSION_KEY); - for (Iterator i = table.keySet().iterator(); i.hasNext(); ) { - String fullKey = (String) i.next(); - String value = table.getProperty(fullKey); - if (value != null) { - String[] splitPath = decodePath(fullKey); - String path = splitPath[0]; - path = makeRelative(path); - String key = splitPath[1]; - // if (DEBUG_PREFERENCE_SET) - // PrefsMessages.message("Setting preference: " + path + '/' + key + '=' - // + value); //$NON-NLS-1$ - // use internal methods to avoid notifying listeners - ChePreferences childNode = (ChePreferences) node.internalNode(path, false, null); - String oldValue = childNode.internalPut(key, value); - // // notify listeners if applicable - // if (notify && !value.equals(oldValue)) - // childNode.firePreferenceEvent(key, oldValue, value); - } - } - // PreferencesService.getDefault().shareStrings(); - } - - /** - * Stores the given (key,value) pair, performing lazy initialization of the properties field if - * necessary. Returns the old value for the given key, or null if no value existed. - */ - protected String internalPut(String key, String newValue) { - synchronized (childAndPropertyLock) { - // illegal state if this node has been removed - // checkRemoved(); - String oldValue = properties.get(key); - if (oldValue != null && oldValue.equals(newValue)) return oldValue; - // if (DEBUG_PREFERENCE_SET) - // PrefsMessages.message("Setting preference: " + absolutePath() + '/' + key + - // '=' + newValue); //$NON-NLS-1$ - properties = properties.put(key, newValue); - return oldValue; - } - } - - /** Implements the node(String) method, and optionally notifies listeners. */ - protected IEclipsePreferences internalNode(String path, boolean notify, Object context) { - - // illegal state if this node has been removed - // checkRemoved(); - - // short circuit this node - // if (path.length() == 0) - // TODO only - return this; - // - // // if we have an absolute path use the root relative to - // // this node instead of the global root - // // in case we have a different hierarchy. (e.g. export) - // if (path.charAt(0) == IPath.SEPARATOR) - // return (IEclipsePreferences) calculateRoot().node(path.substring(1)); - // - // int index = path.indexOf(IPath.SEPARATOR); - // String key = index == -1 ? path : path.substring(0, index); - // boolean added = false; - // IEclipsePreferences child = getChild(key, context, true); - // if (child == null) { - // child = create(this, key, context); - // added = true; - // } - // // notify listeners if a child was added - // if (added && notify) - // fireNodeEvent(new NodeChangeEvent(this, child), true); - // return (IEclipsePreferences) child.node(index == -1 ? EMPTY_STRING : - // path.substring(index + 1)); - } - - // /** - // * Thread safe way to obtain a child for a given key. Returns the child - // * that matches the given key, or null if there is no matching child. - // */ - // protected IEclipsePreferences getChild(String key, Object context, boolean create) { - // synchronized (childAndPropertyLock) { - // if (children == null) - // return null; - // Object value = children.get(key); - // if (value == null) - // return null; - // if (value instanceof IEclipsePreferences) - // return (IEclipsePreferences) value; - // // if we aren't supposed to create this node, then - // // just return null - // if (!create) - // return null; - // } - // return addChild(key, create(this, key, context)); - // } - - private IEclipsePreferences calculateRoot() { - IEclipsePreferences result = this; - while (result.parent() != null) result = (IEclipsePreferences) result.parent(); - return result; - } - /* - * Return a relative path - */ - public static String makeRelative(String path) { - String result = path; - if (path == null) return EMPTY_STRING; - if (path.length() > 0 && path.charAt(0) == IPath.SEPARATOR) - result = path.length() == 0 ? EMPTY_STRING : path.substring(1); - return result; - } - - /* - * Return a 2 element String array. - * element 0 - the path - * element 1 - the key - * The path may be null. - * The key is never null. - */ - public static String[] decodePath(String fullPath) { - String key = null; - String path = null; - - // check to see if we have an indicator which tells us where the path ends - int index = fullPath.indexOf(DOUBLE_SLASH); - if (index == -1) { - // we don't have a double-slash telling us where the path ends - // so the path is up to the last slash character - int lastIndex = fullPath.lastIndexOf(IPath.SEPARATOR); - if (lastIndex == -1) { - key = fullPath; - } else { - path = fullPath.substring(0, lastIndex); - key = fullPath.substring(lastIndex + 1); - } - } else { - // the child path is up to the double-slash and the key - // is the string after it - path = fullPath.substring(0, index); - key = fullPath.substring(index + 2); - } - - // adjust if we have an absolute path - if (path != null) - if (path.length() == 0) path = null; - else if (path.charAt(0) == IPath.SEPARATOR) path = path.substring(1); - - return new String[] {path, key}; - } - - @Override - public void addNodeChangeListener(INodeChangeListener listener) { - throw new UnsupportedOperationException(); - } - - @Override - public void removeNodeChangeListener(INodeChangeListener listener) { - throw new UnsupportedOperationException(); - } - - @Override - public void addPreferenceChangeListener(IPreferenceChangeListener listener) { - throw new UnsupportedOperationException(); - } - - @Override - public void removePreferenceChangeListener(IPreferenceChangeListener listener) { - throw new UnsupportedOperationException(); - } - - @Override - public void removeNode() throws BackingStoreException { - throw new UnsupportedOperationException(); - } - - @Override - public String name() { - throw new UnsupportedOperationException(); - } - - @Override - public String absolutePath() { - throw new UnsupportedOperationException(); - } - - @Override - public void flush() throws BackingStoreException { - IEclipsePreferences toFlush = null; - synchronized (childAndPropertyLock) { - toFlush = internalFlush(); - } - // if we aren't at the right level, then flush the appropriate node - if (toFlush != null) toFlush.flush(); - } - - /* - * Do the real flushing in a non-synchronized internal method so sub-classes - * (mainly ProjectPreferences and ProfilePreferences) don't cause deadlocks. - * - * If this node is not responsible for persistence (a load level), then this method - * returns the node that should be flushed. Returns null if this method performed - * the flush. - */ - protected IEclipsePreferences internalFlush() throws BackingStoreException { - // illegal state if this node has been removed - // checkRemoved(); - - // IEclipsePreferences loadLevel = null;//getLoadLevel(); - - // // if this node or a parent is not the load level, then flush the children - // if (loadLevel == null) { - // String[] childrenNames = childrenNames(); - // for (int i = 0; i < childrenNames.length; i++) - // node(childrenNames[i]).flush(); - // return null; - // } - // - // // a parent is the load level for this node - // if (this != loadLevel) - // return loadLevel; - - // this node is a load level - // any work to do? - if (!dirty) return null; - // remove dirty bit before saving, to ensure that concurrent - // changes during save mark the store as dirty - dirty = false; - try { - save(); - } catch (BackingStoreException e) { - // mark it dirty again because the save failed - dirty = true; - throw e; - } - return null; - } - - /** - * Saves the preference node. This method returns silently if the node does not exist in the - * backing store (for example non-existent project) - * - * @throws BackingStoreException if the node exists in the backing store but it could not be saved - */ - protected void save() throws BackingStoreException { - // if (descriptor == null) { - save(filePath); - // } else { - // descriptor.save(absolutePath(), convertToProperties(new Properties(), "")); - // //$NON-NLS-1$ - // } - } - - protected void save(String location) throws BackingStoreException { - if (location == null) { - // if (DEBUG_PREFERENCE_GENERAL) - // PrefsMessages.message("Unable to determine location of preference file for - // node: " + absolutePath()); //$NON-NLS-1$ - return; - } - // if (DEBUG_PREFERENCE_GENERAL) - // PrefsMessages.message("Saving preferences to file: " + location); //$NON-NLS-1$ - Properties table = convertToProperties(new SortedProperties(), EMPTY_STRING); - if (table.isEmpty()) { - File file = new File(location); - // nothing to save. delete existing file if one exists. - if (file.exists() && !file.delete()) { - // String message = NLS.bind(PrefsMessages.preferences_failedDelete, - // location); - ResourcesPlugin.log( - new Status( - IStatus.WARNING, - PrefsMessages.OWNER_NAME, - IStatus.WARNING, - "preferences save failed, file was delete", - null)); - } - return; - } - table.put(VERSION_KEY, VERSION_VALUE); - write(table, location); - } - - /* - * Helper method to persist a Properties object to the filesystem. We use this - * helper so we can remove the date/timestamp that Properties#store always - * puts in the file. - */ - protected static void write(Properties properties, String location) throws BackingStoreException { - // create the parent directories if they don't exist - // File parentFile = new File(location); - // if (parentFile == null) - // return; - // parentFile.mkdirs(); - - OutputStream output = null; - try { - File file = new File(location); - if (!file.exists()) { - File parentFile = file.getParentFile(); - if (!parentFile.exists()) { - parentFile.mkdirs(); - } - file.createNewFile(); - } - output = new SafeFileOutputStream(file); - output.write(removeTimestampFromTable(properties).getBytes("UTF-8")); // $NON-NLS-1$ - output.flush(); - } catch (IOException e) { - // String message = NLS.bind(PrefsMessages.preferences_saveException, location); - ResourcesPlugin.log( - new Status( - IStatus.ERROR, - PrefsMessages.OWNER_NAME, - IStatus.ERROR, - "preferences_saveException", - e)); - throw new BackingStoreException("preferences_saveException"); - } finally { - if (output != null) - try { - output.close(); - } catch (IOException e) { - // ignore - } - } - } - - protected static String removeTimestampFromTable(Properties properties) throws IOException { - // store the properties in a string and then skip the first line (date/timestamp) - ByteArrayOutputStream output = new ByteArrayOutputStream(); - try { - properties.store(output, null); - } finally { - output.close(); - } - String string = output.toString("UTF-8"); // $NON-NLS-1$ - String separator = System.getProperty("line.separator"); // $NON-NLS-1$ - return string.substring(string.indexOf(separator) + separator.length()); - } - - @Override - public void sync() throws BackingStoreException { - load(); - flush(); - } - - @Override - public void put(String key, String newValue) { - if (key == null || newValue == null) throw new NullPointerException(); - String oldValue = internalPut(key, newValue); - if (!newValue.equals(oldValue)) { - makeDirty(); - // firePreferenceEvent(key, oldValue, newValue); - } - } - - protected void makeDirty() { - // EclipsePreferences node = this; - // while (node != null && !node.removed) { - dirty = true; - // node = (EclipsePreferences) node.parent(); - // } - } - - @Override - public String get(String key, String defaultValue) { - String value = internalGet(key); - return value == null ? defaultValue : value; - } - - /** Returns the existing value at the given key, or null if no such value exists. */ - protected String internalGet(String key) { - // throw NPE if key is null - if (key == null) throw new NullPointerException(); - // illegal state if this node has been removed - // checkRemoved(); - String result; - synchronized (childAndPropertyLock) { - result = properties.get(key); - } - // if (DEBUG_PREFERENCE_GET) - // PrefsMessages.message("Getting preference value: " + absolutePath() + '/' + key + - // "->" + result); //$NON-NLS-1$ //$NON-NLS-2$ - return result; - } - - @Override - public void remove(String key) { - String oldValue; - synchronized (childAndPropertyLock) { - // illegal state if this node has been removed - // checkRemoved(); - oldValue = properties.get(key); - if (oldValue == null) return; - properties = properties.removeKey(key); - } - makeDirty(); - } - - @Override - public void clear() throws BackingStoreException { - // illegal state if this node has been removed - // checkRemoved(); - // call each one separately (instead of Properties.clear) so - // clients get change notification - String[] keys; - synchronized (childAndPropertyLock) { - keys = properties.keys(); - } - // don't synchronize remove call because it calls listeners - for (int i = 0; i < keys.length; i++) remove(keys[i]); - makeDirty(); - } - - @Override - public void putInt(String key, int value) { - if (key == null) throw new NullPointerException(); - String newValue = Integer.toString(value); - String oldValue = internalPut(key, newValue); - if (!newValue.equals(oldValue)) { - makeDirty(); - // firePreferenceEvent(key, oldValue, newValue); - } - } - - @Override - public int getInt(String key, int defaultValue) { - String value = internalGet(key); - int result = defaultValue; - if (value != null) - try { - result = Integer.parseInt(value); - } catch (NumberFormatException e) { - // use default - } - return result; - } - - @Override - public void putLong(String key, long value) { - if (key == null) throw new NullPointerException(); - String newValue = Long.toString(value); - String oldValue = internalPut(key, newValue); - if (!newValue.equals(oldValue)) { - makeDirty(); - // firePreferenceEvent(key, oldValue, newValue); - } - } - - @Override - public long getLong(String key, long defaultValue) { - String value = internalGet(key); - long result = defaultValue; - if (value != null) - try { - result = Long.parseLong(value); - } catch (NumberFormatException e) { - // use default - } - return result; - } - - @Override - public void putBoolean(String key, boolean value) { - if (key == null) throw new NullPointerException(); - String newValue = value ? TRUE : FALSE; - String oldValue = internalPut(key, newValue); - if (!newValue.equals(oldValue)) { - makeDirty(); - // firePreferenceEvent(key, oldValue, newValue); - } - } - - @Override - public boolean getBoolean(String key, boolean defaultValue) { - String value = internalGet(key); - return value == null ? defaultValue : TRUE.equalsIgnoreCase(value); - } - - @Override - public void putFloat(String key, float value) { - if (key == null) throw new NullPointerException(); - String newValue = Float.toString(value); - String oldValue = internalPut(key, newValue); - if (!newValue.equals(oldValue)) { - makeDirty(); - // firePreferenceEvent(key, oldValue, newValue); - } - } - - @Override - public float getFloat(String key, float defaultValue) { - String value = internalGet(key); - float result = defaultValue; - if (value != null) - try { - result = Float.parseFloat(value); - } catch (NumberFormatException e) { - // use default - } - return result; - } - - @Override - public void putDouble(String key, double value) { - if (key == null) throw new NullPointerException(); - String newValue = Double.toString(value); - String oldValue = internalPut(key, newValue); - if (!newValue.equals(oldValue)) { - makeDirty(); - // firePreferenceEvent(key, oldValue, newValue); - } - } - - @Override - public double getDouble(String key, double defaultValue) { - String value = internalGet(key); - double result = defaultValue; - if (value != null) - try { - result = Double.parseDouble(value); - } catch (NumberFormatException e) { - // use default - } - return result; - } - - @Override - public void putByteArray(String key, byte[] value) { - if (key == null || value == null) throw new NullPointerException(); - String newValue = new String(Base64.encode(value)); - String oldValue = internalPut(key, newValue); - if (!newValue.equals(oldValue)) { - makeDirty(); - // firePreferenceEvent(key, oldValue, newValue); - } - } - - @Override - public byte[] getByteArray(String key, byte[] defaultValue) { - String value = internalGet(key); - return value == null ? defaultValue : Base64.decode(value.getBytes()); - } - - @Override - public String[] keys() throws BackingStoreException { - // illegal state if this node has been removed - synchronized (childAndPropertyLock) { - // checkRemoved(); - return properties.keys(); - } - } - - @Override - public String[] childrenNames() throws BackingStoreException { - throw new UnsupportedOperationException(); - } - - @Override - public Preferences parent() { - throw new UnsupportedOperationException(); - } - - @Override - public Preferences node(String path) { - throw new UnsupportedOperationException(); - } - - @Override - public boolean nodeExists(String pathName) throws BackingStoreException { - return false; - } - - @Override - public void accept(IPreferenceNodeVisitor visitor) throws BackingStoreException { - throw new UnsupportedOperationException(); - } - - protected class SortedProperties extends Properties { - - private static final long serialVersionUID = 1L; - - public SortedProperties() { - super(); - } - - /* (non-Javadoc) - * @see java.util.Hashtable#keys() - */ - public synchronized Enumeration keys() { - TreeSet set = new TreeSet(); - for (Enumeration e = super.keys(); e.hasMoreElements(); ) set.add(e.nextElement()); - return Collections.enumeration(set); - } - - /* (non-Javadoc) - * @see java.util.Hashtable#entrySet() - */ - public Set entrySet() { - TreeSet set = - new TreeSet( - new Comparator() { - public int compare(Object e1, Object e2) { - String s1 = (String) ((Map.Entry) e1).getKey(); - String s2 = (String) ((Map.Entry) e2).getKey(); - return s1.compareTo(s2); - } - }); - for (Iterator i = super.entrySet().iterator(); i.hasNext(); ) set.add(i.next()); - return set; - } - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/Container.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/Container.java deleted file mode 100644 index e069e6098ad1..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/Container.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Copyright (c) 2012-2018 Red Hat, Inc. - * This program and the accompanying materials are made - * available under the terms of the Eclipse Public License 2.0 - * which is available at https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Red Hat, Inc. - initial API and implementation - */ -package org.eclipse.che.core.internal.resources; - -import org.eclipse.core.resources.FileInfoMatcherDescription; -import org.eclipse.core.resources.IContainer; -import org.eclipse.core.resources.IFile; -import org.eclipse.core.resources.IFolder; -import org.eclipse.core.resources.IResource; -import org.eclipse.core.resources.IResourceFilterDescription; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IProgressMonitor; - -/** @author Evgen Vidolob */ -public abstract class Container extends Resource implements IContainer { - protected Container(IPath path, Workspace workspace) { - super(path, workspace); - } - - @Override - public IResourceFilterDescription createFilter( - int type, - FileInfoMatcherDescription matcherDescription, - int updateFlags, - IProgressMonitor monitor) - throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public boolean exists(IPath childPath) { - return workspace.getResourceInfo(getFullPath().append(childPath)) != null; - } - - @Override - public IResource findMember(String memberPath, boolean phantom) { - IPath childPath = getFullPath().append(memberPath); - ResourceInfo info = workspace.getResourceInfo(childPath); - return info == null ? null : workspace.newResource(childPath, info.getType()); - } - - @Override - public IResource findMember(String memberPath) { - return findMember(memberPath, false); - } - - @Override - public IResource findMember(IPath childPath) { - return findMember(childPath, false); - } - - @Override - public IResource findMember(IPath childPath, boolean phantom) { - childPath = getFullPath().append(childPath); - ResourceInfo info = workspace.getResourceInfo(childPath); - return (info == null) ? null : workspace.newResource(childPath, info.getType()); - } - - @Override - public IResourceFilterDescription[] getFilters() throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public IFile getFile(IPath childPath) { - return (IFile) workspace.newResource(getFullPath().append(childPath), FILE); - } - - @Override - public IFolder getFolder(IPath childPath) { - return (IFolder) workspace.newResource(getFullPath().append(childPath), FOLDER); - } - - @Override - public IResource[] members() throws CoreException { - // forward to central method - return members(IResource.NONE); - } - - @Override - public IResource[] members(boolean phantom) throws CoreException { - // forward to central method - return members(phantom ? INCLUDE_PHANTOMS : IResource.NONE); - } - - @Override - public IResource[] members(int memberFlags) throws CoreException { - return workspace.getChildren(path); - } - - @Override - public String getDefaultCharset() throws CoreException { - return getDefaultCharset(true); - } - - @Override - public IFile[] findDeletedMembersWithHistory(int depth, IProgressMonitor monitor) - throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public void setDefaultCharset(String charset) throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public void setDefaultCharset(String newCharset, IProgressMonitor monitor) throws CoreException { - // throw new UnsupportedOperationException(); - } - - /* (non-Javadoc) - * @see IFolder#getFolder(String) and IProject#getFolder(String) - */ - public IFolder getFolder(String name) { - return (IFolder) workspace.newResource(getFullPath().append(name), FOLDER); - } - - /* (non-Javadoc) - * @see IFolder#getFile(String) and IProject#getFile(String) - */ - public IFile getFile(String name) { - return (IFile) workspace.newResource(getFullPath().append(name), FILE); - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/File.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/File.java deleted file mode 100644 index 762ca6c84edd..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/File.java +++ /dev/null @@ -1,207 +0,0 @@ -/* - * Copyright (c) 2012-2018 Red Hat, Inc. - * This program and the accompanying materials are made - * available under the terms of the Eclipse Public License 2.0 - * which is available at https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Red Hat, Inc. - initial API and implementation - */ -package org.eclipse.che.core.internal.resources; - -import java.io.ByteArrayInputStream; -import java.io.FileInputStream; -import java.io.FileNotFoundException; -import java.io.InputStream; -import java.io.Reader; -import org.eclipse.che.core.internal.utils.Policy; -import org.eclipse.core.internal.utils.Messages; -import org.eclipse.core.resources.IFile; -import org.eclipse.core.resources.IFileState; -import org.eclipse.core.resources.IResource; -import org.eclipse.core.resources.ResourcesPlugin; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.OperationCanceledException; -import org.eclipse.core.runtime.Status; -import org.eclipse.core.runtime.content.IContentDescription; -import org.eclipse.core.runtime.jobs.ISchedulingRule; -import org.eclipse.osgi.util.NLS; - -/** @author Evgen Vidolob */ -public class File extends Resource implements IFile { - - protected File(IPath path, Workspace workspace) { - super(path, workspace); - } - - @Override - public void appendContents( - InputStream content, boolean force, boolean keepHistory, IProgressMonitor monitor) - throws CoreException { - // funnel all operations to central method - int updateFlags = force ? IResource.FORCE : IResource.NONE; - updateFlags |= keepHistory ? IResource.KEEP_HISTORY : IResource.NONE; - appendContents(content, updateFlags, monitor); - } - - @Override - public void appendContents(InputStream content, int updateFlags, IProgressMonitor monitor) - throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public void create(InputStream content, boolean force, IProgressMonitor monitor) - throws CoreException { - // funnel all operations to central method - create(content, (force ? IResource.FORCE : IResource.NONE), monitor); - } - - @Override - public void create(InputStream content, int updateFlags, IProgressMonitor monitor) - throws CoreException { - workspace.createResource(this, updateFlags); - internalSetContents(content); - } - - protected void internalSetContents(InputStream content) { - workspace.setFileContent(this, content); - } - - @Override - public String getCharset() throws CoreException { - return getCharset(true); - } - - @Override - public String getCharset(boolean checkImplicit) throws CoreException { - return "UTF-8"; - } - - @Override - public String getCharsetFor(Reader contents) throws CoreException { - return "UTF-8"; - } - - @Override - public IContentDescription getContentDescription() throws CoreException { - // throw new UnsupportedOperationException(); - return null; - } - - @Override - public InputStream getContents() throws CoreException { - return getContents(true); - } - - @Override - public InputStream getContents(boolean force) throws CoreException { - try { - return new FileInputStream(workspace.getFile(path)); - } catch (FileNotFoundException e) { - throw new CoreException( - new Status( - 0, - ResourcesPlugin.getPluginId(), - IStatus.ERROR, - "Error while getting content of file:" + getFullPath().toOSString(), - e)); - } - } - - @Override - public int getEncoding() throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public IFileState[] getHistory(IProgressMonitor iProgressMonitor) throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public void setCharset(String s) throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public void setCharset(String s, IProgressMonitor iProgressMonitor) throws CoreException { - // throw new UnsupportedOperationException(); - } - - @Override - public void setContents( - InputStream content, boolean force, boolean keepHistory, IProgressMonitor monitor) - throws CoreException { - // funnel all operations to central method - int updateFlags = force ? IResource.FORCE : IResource.NONE; - updateFlags |= keepHistory ? IResource.KEEP_HISTORY : IResource.NONE; - setContents(content, updateFlags, monitor); - } - - @Override - public void setContents( - IFileState source, boolean force, boolean keepHistory, IProgressMonitor monitor) - throws CoreException { - // funnel all operations to central method - int updateFlags = force ? IResource.FORCE : IResource.NONE; - updateFlags |= keepHistory ? IResource.KEEP_HISTORY : IResource.NONE; - setContents(source.getContents(), updateFlags, monitor); - } - - @Override - public void setContents(InputStream content, int updateFlags, IProgressMonitor monitor) - throws CoreException { - monitor = Policy.monitorFor(monitor); - try { - String message = NLS.bind(Messages.resources_settingContents, getFullPath()); - monitor.beginTask(message, Policy.totalWork); - // if (workspace.shouldValidate) - // workspace.validateSave(this); - final ISchedulingRule rule = workspace.getRuleFactory().modifyRule(this); - try { - workspace.prepareOperation(rule, monitor); - ResourceInfo info = getResourceInfo(false, false); - // checkAccessible(getFlags(info)); - workspace.beginOperation(true); - // IFileInfo fileInfo = getStore().fetchInfo(); - internalSetContents( - content, updateFlags, false, Policy.subMonitorFor(monitor, Policy.opWork)); - } catch (OperationCanceledException e) { - workspace.getWorkManager().operationCanceled(); - throw e; - } finally { - workspace.endOperation(rule, true, Policy.subMonitorFor(monitor, Policy.endOpWork)); - } - } finally { - monitor.done(); - FileUtil.safeClose(content); - } - } - - protected void internalSetContents( - InputStream content, int updateFlags, boolean append, IProgressMonitor monitor) - throws CoreException { - if (content == null) content = new ByteArrayInputStream(new byte[0]); - workspace.write(this, content, updateFlags, append, monitor); - - // workspace.getAliasManager().updateAliases(this, getStore(), IResource.DEPTH_ZERO, - // monitor); - } - - @Override - public void setContents(IFileState content, int updateFlags, IProgressMonitor monitor) - throws CoreException { - setContents(content.getContents(), updateFlags, monitor); - } - - @Override - public int getType() { - return FILE; - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/FileUtil.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/FileUtil.java deleted file mode 100644 index ee0892cb5f19..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/FileUtil.java +++ /dev/null @@ -1,330 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2005, - * 2012 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation Martin Oberhuber (Wind River) - - * [44107] Add symbolic links to ResourceAttributes API James Blackburn (Broadcom Corp.) - ongoing - * development ***************************************************************************** - */ -package org.eclipse.che.core.internal.resources; - -import java.io.Closeable; -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; -import java.net.URI; -import org.eclipse.core.filesystem.EFS; -import org.eclipse.core.filesystem.URIUtil; -import org.eclipse.core.internal.resources.ResourceException; -import org.eclipse.core.internal.utils.Messages; -import org.eclipse.core.resources.IResourceStatus; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.Path; -import org.eclipse.osgi.util.NLS; - -/** Static utility methods for manipulating Files and URIs. */ -public class FileUtil { - /** - * Singleton buffer created to prevent buffer creations in the transferStreams method. Used as an - * optimization, based on the assumption that multiple writes won't happen in a given instance of - * FileStore. - */ - private static final byte[] buffer = new byte[8192]; - - // /** - // * Converts a ResourceAttributes object into an IFileInfo object. - // * @param attributes The resource attributes - // * @return The file info - // */ - // public static IFileInfo attributesToFileInfo(ResourceAttributes attributes) { - // IFileInfo fileInfo = EFS.createFileInfo(); - // fileInfo.setAttribute(EFS.ATTRIBUTE_READ_ONLY, attributes.isReadOnly()); - // fileInfo.setAttribute(EFS.ATTRIBUTE_EXECUTABLE, attributes.isExecutable()); - // fileInfo.setAttribute(EFS.ATTRIBUTE_ARCHIVE, attributes.isArchive()); - // fileInfo.setAttribute(EFS.ATTRIBUTE_HIDDEN, attributes.isHidden()); - // fileInfo.setAttribute(EFS.ATTRIBUTE_SYMLINK, attributes.isSymbolicLink()); - // fileInfo.setAttribute(EFS.ATTRIBUTE_GROUP_READ, attributes.isSet(EFS.ATTRIBUTE_GROUP_READ)); - // fileInfo.setAttribute(EFS.ATTRIBUTE_GROUP_WRITE, attributes.isSet(EFS.ATTRIBUTE_GROUP_WRITE)); - // fileInfo.setAttribute(EFS.ATTRIBUTE_GROUP_EXECUTE, - // attributes.isSet(EFS.ATTRIBUTE_GROUP_EXECUTE)); - // fileInfo.setAttribute(EFS.ATTRIBUTE_OTHER_READ, attributes.isSet(EFS.ATTRIBUTE_OTHER_READ)); - // fileInfo.setAttribute(EFS.ATTRIBUTE_OTHER_WRITE, attributes.isSet(EFS.ATTRIBUTE_OTHER_WRITE)); - // fileInfo.setAttribute(EFS.ATTRIBUTE_OTHER_EXECUTE, - // attributes.isSet(EFS.ATTRIBUTE_OTHER_EXECUTE)); - // return fileInfo; - // } - - /** Converts an IPath into its canonical form for the local file system. */ - public static IPath canonicalPath(IPath path) { - if (path == null) return null; - try { - final String pathString = path.toOSString(); - final String canonicalPath = new java.io.File(pathString).getCanonicalPath(); - // only create a new path if necessary - if (canonicalPath.equals(pathString)) return path; - return new Path(canonicalPath); - } catch (IOException e) { - return path; - } - } - - /** Converts a URI into its canonical form. */ - public static URI canonicalURI(URI uri) { - if (uri == null) return null; - if (EFS.SCHEME_FILE.equals(uri.getScheme())) { - // only create a new URI if it is different - final IPath inputPath = URIUtil.toPath(uri); - final IPath canonicalPath = canonicalPath(inputPath); - if (inputPath == canonicalPath) return uri; - return URIUtil.toURI(canonicalPath); - } - return uri; - } - - /** - * Returns true if the given file system locations overlap. If "bothDirections" is true, this - * means they are the same, or one is a proper prefix of the other. If "bothDirections" is false, - * this method only returns true if the locations are the same, or the first location is a prefix - * of the second. Returns false if the locations do not overlap Does the right thing with respect - * to case insensitive platforms. - */ - private static boolean computeOverlap(IPath location1, IPath location2, boolean bothDirections) { - IPath one = location1; - IPath two = location2; - // If we are on a case-insensitive file system then convert to all lower case. - if (!Workspace.caseSensitive) { - one = new Path(location1.toOSString().toLowerCase()); - two = new Path(location2.toOSString().toLowerCase()); - } - return one.isPrefixOf(two) || (bothDirections && two.isPrefixOf(one)); - } - - // /** - // * Returns true if the given file system locations overlap. If "bothDirections" is true, - // * this means they are the same, or one is a proper prefix of the other. If "bothDirections" - // * is false, this method only returns true if the locations are the same, or the first location - // * is a prefix of the second. Returns false if the locations do not overlap - // */ - // private static boolean computeOverlap(URI location1, URI location2, boolean bothDirections) { - // if (location1.equals(location2)) - // return true; - // String scheme1 = location1.getScheme(); - // String scheme2 = location2.getScheme(); - // if (scheme1 == null ? scheme2 != null : !scheme1.equals(scheme2)) - // return false; - // if (EFS.SCHEME_FILE.equals(scheme1) && EFS.SCHEME_FILE.equals(scheme2)) - // return computeOverlap(URIUtil.toPath(location1), URIUtil.toPath(location2), bothDirections); - // IFileSystem system = null; - // try { - // system = EFS.getFileSystem(scheme1); - // } catch (CoreException e) { - // //handled below - // } - // if (system == null) { - // //we are stuck with string comparison - // String string1 = location1.toString(); - // String string2 = location2.toString(); - // return string1.startsWith(string2) || (bothDirections && string2.startsWith(string1)); - // } - // IFileStore store1 = system.getStore(location1); - // IFileStore store2 = system.getStore(location2); - // return store1.equals(store2) || store1.isParentOf(store2) || (bothDirections && - // store2.isParentOf(store1)); - // } - // - // /** - // * Converts an IFileInfo object into a ResourceAttributes object. - // * @param fileInfo The file info - // * @return The resource attributes - // */ - // public static ResourceAttributes fileInfoToAttributes(IFileInfo fileInfo) { - // ResourceAttributes attributes = new ResourceAttributes(); - // attributes.setReadOnly(fileInfo.getAttribute(EFS.ATTRIBUTE_READ_ONLY)); - // attributes.setArchive(fileInfo.getAttribute(EFS.ATTRIBUTE_ARCHIVE)); - // attributes.setExecutable(fileInfo.getAttribute(EFS.ATTRIBUTE_EXECUTABLE)); - // attributes.setHidden(fileInfo.getAttribute(EFS.ATTRIBUTE_HIDDEN)); - // attributes.setSymbolicLink(fileInfo.getAttribute(EFS.ATTRIBUTE_SYMLINK)); - // attributes.set(EFS.ATTRIBUTE_GROUP_READ, fileInfo.getAttribute(EFS.ATTRIBUTE_GROUP_READ)); - // attributes.set(EFS.ATTRIBUTE_GROUP_WRITE, fileInfo.getAttribute(EFS.ATTRIBUTE_GROUP_WRITE)); - // attributes.set(EFS.ATTRIBUTE_GROUP_EXECUTE, - // fileInfo.getAttribute(EFS.ATTRIBUTE_GROUP_EXECUTE)); - // attributes.set(EFS.ATTRIBUTE_OTHER_READ, fileInfo.getAttribute(EFS.ATTRIBUTE_OTHER_READ)); - // attributes.set(EFS.ATTRIBUTE_OTHER_WRITE, fileInfo.getAttribute(EFS.ATTRIBUTE_OTHER_WRITE)); - // attributes.set(EFS.ATTRIBUTE_OTHER_EXECUTE, - // fileInfo.getAttribute(EFS.ATTRIBUTE_OTHER_EXECUTE)); - // return attributes; - // } - // - // private static String getLineSeparatorFromPreferences(Preferences node) { - // try { - // // be careful looking up for our node so not to create any nodes as side effect - // if (node.nodeExists(Platform.PI_RUNTIME)) - // return node.node(Platform.PI_RUNTIME).get(Platform.PREF_LINE_SEPARATOR, null); - // } catch (BackingStoreException e) { - // // ignore - // } - // return null; - // } - // - // /** - // * Returns line separator appropriate for the given file. The returned value - // * will be the first available value from the list below: - // *

    - // *
  1. Line separator currently used in that file. - // *
  2. Line separator defined in project preferences. - // *
  3. Line separator defined in instance preferences. - // *
  4. Line separator defined in default preferences. - // *
  5. Operating system default line separator. - // *
- // * @param file the file for which line separator should be returned - // * @return line separator for the given file - // */ - // public static String getLineSeparator(IFile file) { - // if (file.exists()) { - // InputStream input = null; - // try { - // input = file.getContents(); - // int c = input.read(); - // while (c != -1 && c != '\r' && c != '\n') - // c = input.read(); - // if (c == '\n') - // return "\n"; //$NON-NLS-1$ - // if (c == '\r') { - // if (input.read() == '\n') - // return "\r\n"; //$NON-NLS-1$ - // return "\r"; //$NON-NLS-1$ - // } - // } catch (CoreException e) { - // // ignore - // } catch (IOException e) { - // // ignore - // } finally { - // safeClose(input); - // } - // } - // Preferences rootNode = Platform.getPreferencesService().getRootNode(); - // String value = null; - // // if the file does not exist or has no content yet, try with project preferences - // value = - // getLineSeparatorFromPreferences(rootNode.node(ProjectScope.SCOPE).node(file.getProject().getName())); - // if (value != null) - // return value; - // // try with instance preferences - // value = getLineSeparatorFromPreferences(rootNode.node(InstanceScope.SCOPE)); - // if (value != null) - // return value; - // // try with default preferences - // value = getLineSeparatorFromPreferences(rootNode.node(DefaultScope.SCOPE)); - // if (value != null) - // return value; - // // if there is no preference set, fall back to OS default value - // return System.getProperty("line.separator"); //$NON-NLS-1$ - // } - // - // /** - // * Returns true if the given file system locations overlap, and false otherwise. - // * Overlap means the locations are the same, or one is a proper prefix of the other. - // */ - // public static boolean isOverlapping(URI location1, URI location2) { - // return computeOverlap(location1, location2, true); - // } - // - // /** - // * Returns true if location1 is the same as, or a proper prefix of, location2. - // * Returns false otherwise. - // */ - // public static boolean isPrefixOf(IPath location1, IPath location2) { - // return computeOverlap(location1, location2, false); - // } - // - // /** - // * Returns true if location1 is the same as, or a proper prefix of, location2. - // * Returns false otherwise. - // */ - // public static boolean isPrefixOf(URI location1, URI location2) { - // return computeOverlap(location1, location2, false); - // } - - /** - * Closes a stream and ignores any resulting exception. This is useful when doing stream cleanup - * in a finally block where secondary exceptions are not worth logging. - * - *

WARNING: If the API contract requires notifying clients of I/O problems, - * then you must explicitly close() output streams outside of safeClose(). Some - * OutputStreams will defer an IOException from write() to close(). So while the writes may - * 'succeed', ignoring the IOExcpetion will result in silent data loss. - * - *

This method should only be used as a fail-safe to ensure resources are not leaked. See also: - * https://bugs.eclipse.org/bugs/show_bug.cgi?id=332543 - */ - public static void safeClose(Closeable stream) { - try { - if (stream != null) stream.close(); - } catch (IOException e) { - // ignore - } - } - - /** - * Converts a URI to an IPath. Returns null if the URI cannot be represented as an IPath. - * - *

Note this method differs from URIUtil in its handling of relative URIs as being relative to - * path variables. - */ - public static IPath toPath(URI uri) { - if (uri == null) return null; - final String scheme = uri.getScheme(); - // null scheme represents path variable - if (scheme == null || EFS.SCHEME_FILE.equals(scheme)) - return new Path(uri.getSchemeSpecificPart()); - return null; - } - - public static final void transferStreams( - InputStream source, OutputStream destination, String path, IProgressMonitor monitor) - throws CoreException { - // monitor = Policy.monitorFor(monitor); - try { - /* - * Note: although synchronizing on the buffer is thread-safe, - * it may result in slower performance in the future if we want - * to allow concurrent writes. - */ - synchronized (buffer) { - while (true) { - int bytesRead = -1; - try { - bytesRead = source.read(buffer); - } catch (IOException e) { - String msg = NLS.bind(Messages.localstore_failedReadDuringWrite, path); - throw new ResourceException(IResourceStatus.FAILED_READ_LOCAL, new Path(path), msg, e); - } - try { - if (bytesRead == -1) { - // Bug 332543 - ensure we don't ignore failures on close() - destination.close(); - break; - } - destination.write(buffer, 0, bytesRead); - } catch (IOException e) { - String msg = NLS.bind(Messages.localstore_couldNotWrite, path); - throw new ResourceException(IResourceStatus.FAILED_WRITE_LOCAL, new Path(path), msg, e); - } - // monitor.worked(1); - } - } - } finally { - safeClose(source); - safeClose(destination); - } - } - - /** Not intended for instantiation. */ - private FileUtil() { - super(); - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/Folder.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/Folder.java deleted file mode 100644 index f536ded6081f..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/Folder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) 2012-2018 Red Hat, Inc. - * This program and the accompanying materials are made - * available under the terms of the Eclipse Public License 2.0 - * which is available at https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Red Hat, Inc. - initial API and implementation - */ -package org.eclipse.che.core.internal.resources; - -import org.eclipse.core.resources.IFolder; -import org.eclipse.core.resources.IResource; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IProgressMonitor; - -/** @author Evgen Vidolob */ -public class Folder extends Container implements IFolder { - - protected Folder(IPath path, Workspace workspace) { - super(path, workspace); - } - - @Override - public void create(boolean force, boolean local, IProgressMonitor monitor) throws CoreException { - // funnel all operations to central method - create((force ? IResource.FORCE : IResource.NONE), local, monitor); - } - - @Override - public void create(int updateFlags, boolean local, IProgressMonitor monitor) - throws CoreException { - workspace.createResource(this, 0); - } - - @Override - public String getDefaultCharset(boolean b) throws CoreException { - return "UTF-8"; - } - - @Override - public int getType() { - return FOLDER; - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/Project.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/Project.java deleted file mode 100644 index 63d3f4d95d17..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/Project.java +++ /dev/null @@ -1,329 +0,0 @@ -/* - * Copyright (c) 2012-2018 Red Hat, Inc. - * This program and the accompanying materials are made - * available under the terms of the Eclipse Public License 2.0 - * which is available at https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Red Hat, Inc. - initial API and implementation - */ -package org.eclipse.che.core.internal.resources; - -import java.net.URI; -import java.util.List; -import java.util.Map; -import java.util.Optional; -import org.eclipse.che.api.project.shared.RegisteredProject; -import org.eclipse.core.resources.IBuildConfiguration; -import org.eclipse.core.resources.ICommand; -import org.eclipse.core.resources.IContainer; -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.ResourcesPlugin; -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.IStatus; -import org.eclipse.core.runtime.Status; -import org.eclipse.core.runtime.content.IContentTypeMatcher; - -/** @author Evgen Vidolob */ -public class Project extends Container implements IProject { - - protected Project(IPath path, Workspace workspace) { - super(path, workspace); - } - - @Override - public void build(int i, String s, Map map, IProgressMonitor iProgressMonitor) - throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public void build(int i, IProgressMonitor iProgressMonitor) throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public void build( - IBuildConfiguration iBuildConfiguration, int i, IProgressMonitor iProgressMonitor) - throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public void close(IProgressMonitor iProgressMonitor) throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public void create(IProjectDescription description, IProgressMonitor monitor) - throws CoreException { - create(description, IResource.NONE, monitor); - } - - @Override - public void create(IProgressMonitor monitor) throws CoreException { - create(null, monitor); - } - - @Override - public void create(IProjectDescription description, int updateFlags, IProgressMonitor monitor) - throws CoreException { - workspace.createResource(this, updateFlags); - } - - @Override - public IBuildConfiguration getActiveBuildConfig() throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public IBuildConfiguration getBuildConfig(String s) throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public IBuildConfiguration[] getBuildConfigs() throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public IContentTypeMatcher getContentTypeMatcher() throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public String getName() { - return path.toOSString().substring(1); - } - - @Override - public IProjectDescription getDescription() throws CoreException { - return new IProjectDescription() { - @Override - public IBuildConfiguration[] getBuildConfigReferences(String s) { - return new IBuildConfiguration[0]; - } - - @Override - public ICommand[] getBuildSpec() { - return new ICommand[0]; - } - - @Override - public String getComment() { - return null; - } - - @Override - public IProject[] getDynamicReferences() { - return new IProject[0]; - } - - @Override - public IPath getLocation() { - return null; - } - - @Override - public URI getLocationURI() { - return null; - } - - @Override - public String getName() { - return null; - } - - @Override - public String[] getNatureIds() { - Optional project = workspace.getProjectRegistry().get(path.toString()); - if (!project.isPresent()) { - ResourcesPlugin.log( - new Status(IStatus.ERROR, "resource", "Can't find project: " + path.toOSString())); - return new String[0]; - } - Map> attributes = project.get().getAttributes(); - String language = ""; - if (attributes.containsKey("language")) { - language = attributes.get("language").get(0); - } - return "java".equals(language) - ? new String[] {"org.eclipse.jdt.core.javanature"} - : new String[] {language}; - } - - @Override - public IProject[] getReferencedProjects() { - return new IProject[0]; - } - - @Override - public boolean hasNature(String s) { - String[] natureIds = getNatureIds(); - for (String id : natureIds) { - if (s.equals(id)) { - return true; - } - } - return false; - } - - @Override - public ICommand newCommand() { - return null; - } - - @Override - public void setActiveBuildConfig(String s) {} - - @Override - public void setBuildConfigs(String[] strings) {} - - @Override - public void setBuildConfigReferences(String s, IBuildConfiguration[] iBuildConfigurations) {} - - @Override - public void setBuildSpec(ICommand[] iCommands) {} - - @Override - public void setComment(String s) {} - - @Override - public void setDynamicReferences(IProject[] iProjects) {} - - @Override - public void setLocation(IPath iPath) {} - - @Override - public void setLocationURI(URI uri) {} - - @Override - public void setName(String s) {} - - @Override - public void setNatureIds(String[] strings) {} - - @Override - public void setReferencedProjects(IProject[] iProjects) {} - }; - } - - @Override - public IProjectNature getNature(String s) throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public IPath getPluginWorkingLocation(IPluginDescriptor iPluginDescriptor) { - throw new UnsupportedOperationException(); - } - - @Override - public IPath getWorkingLocation(String s) { - throw new UnsupportedOperationException(); - } - - @Override - public IProject[] getReferencedProjects() throws CoreException { - // TODO need to use Project API to solve this - return new IProject[0]; - } - - @Override - public IProject[] getReferencingProjects() { - // throw new UnsupportedOperationException(); - // TODO need to use Project API to solve this - return new IProject[0]; - } - - @Override - public IBuildConfiguration[] getReferencedBuildConfigs(String s, boolean b) throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public boolean hasBuildConfig(String s) throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public boolean hasNature(String s) throws CoreException { - return getDescription().hasNature(s); - } - - @Override - public boolean isNatureEnabled(String s) throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public boolean isOpen() { - // throw new UnsupportedOperationException(); - return true; - } - - @Override - public void loadSnapshot(int i, URI uri, IProgressMonitor iProgressMonitor) throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public void move( - IProjectDescription iProjectDescription, boolean b, IProgressMonitor iProgressMonitor) - throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public void open(int updateFlags, IProgressMonitor monitor) throws CoreException { - // throw new UnsupportedOperationException(); - // TODO - } - - @Override - public void open(IProgressMonitor monitor) throws CoreException { - open(IResource.NONE, monitor); - } - - @Override - public void saveSnapshot(int i, URI uri, IProgressMonitor iProgressMonitor) throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public void setDescription(IProjectDescription description, IProgressMonitor monitor) - throws CoreException { - // funnel all operations to central method - setDescription(description, IResource.KEEP_HISTORY, monitor); - } - - @Override - public void setDescription( - IProjectDescription iProjectDescription, int i, IProgressMonitor iProgressMonitor) - throws CoreException { - // ignore - } - - @Override - public String getDefaultCharset(boolean b) throws CoreException { - return "UTF-8"; - } - - @Override - public int getType() { - return PROJECT; - } - - @Override - public IContainer getParent() { - return workspace.getRoot(); - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/Resource.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/Resource.java deleted file mode 100644 index 6677ab0b96c2..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/Resource.java +++ /dev/null @@ -1,926 +0,0 @@ -/* - * Copyright (c) 2012-2018 Red Hat, Inc. - * This program and the accompanying materials are made - * available under the terms of the Eclipse Public License 2.0 - * which is available at https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Red Hat, Inc. - initial API and implementation - */ -package org.eclipse.che.core.internal.resources; - -import java.io.IOException; -import java.net.URI; -import java.nio.file.FileVisitOption; -import java.nio.file.FileVisitResult; -import java.nio.file.FileVisitor; -import java.nio.file.Files; -import java.nio.file.attribute.BasicFileAttributes; -import java.util.Arrays; -import java.util.Collections; -import java.util.Map; -import java.util.Optional; -import org.eclipse.che.core.internal.utils.Policy; -import org.eclipse.core.internal.resources.ICoreConstants; -import org.eclipse.core.internal.resources.ResourceException; -import org.eclipse.core.internal.utils.Messages; -import org.eclipse.core.internal.utils.WrappedRuntimeException; -import org.eclipse.core.internal.watson.IPathRequestor; -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.IResource; -import org.eclipse.core.resources.IResourceProxy; -import org.eclipse.core.resources.IResourceProxyVisitor; -import org.eclipse.core.resources.IResourceStatus; -import org.eclipse.core.resources.IResourceVisitor; -import org.eclipse.core.resources.IWorkspace; -import org.eclipse.core.resources.ResourceAttributes; -import org.eclipse.core.resources.ResourcesPlugin; -import org.eclipse.core.runtime.Assert; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.OperationCanceledException; -import org.eclipse.core.runtime.Path; -import org.eclipse.core.runtime.QualifiedName; -import org.eclipse.core.runtime.Status; -import org.eclipse.core.runtime.jobs.ISchedulingRule; -import org.eclipse.core.runtime.jobs.MultiRule; -import org.eclipse.osgi.util.NLS; - -/** @author Evgen Vidolob */ -public abstract class Resource implements IResource, IPathRequestor, ICoreConstants { - /* package */ IPath path; - /* package */ Workspace workspace; - - protected Resource(IPath path, Workspace workspace) { - this.path = path.removeTrailingSeparator(); - this.workspace = workspace; - } - - @Override - public void accept(IResourceProxyVisitor visitor, int memberFlags) throws CoreException { - accept(visitor, IResource.DEPTH_INFINITE, memberFlags); - } - - @Override - public void accept(final IResourceProxyVisitor visitor, final int depth, final int memberFlags) - throws CoreException { - java.io.File file = workspace.getFile(getFullPath()); - int maxDepth = depth == IResource.DEPTH_INFINITE ? Integer.MAX_VALUE : depth; - try { - final ResourceProxy resourceProxy = new ResourceProxy(); - final int workspacePath = workspace.getAbsoluteWorkspacePath().length(); - Files.walkFileTree( - file.toPath(), - Collections.emptySet(), - maxDepth, - new FileVisitor() { - @Override - public FileVisitResult preVisitDirectory( - java.nio.file.Path dir, BasicFileAttributes attrs) throws IOException { - return FileVisitResult.CONTINUE; - } - - @Override - public FileVisitResult visitFile(java.nio.file.Path file, BasicFileAttributes attrs) - throws IOException { - FileVisitResult result = FileVisitResult.CONTINUE; - try { - String string = file.toString(); - IPath path = new Path(string.substring(workspacePath)); - resourceProxy.info = workspace.getResourceInfo(path); - resourceProxy.fullPath = path; - - boolean shouldContinue = true; - switch (depth) { - case DEPTH_ZERO: - shouldContinue = false; - break; - case DEPTH_ONE: - shouldContinue = !Resource.this.path.equals(path.removeLastSegments(1)); - break; - case DEPTH_INFINITE: - shouldContinue = true; - break; - } - boolean visit = visitor.visit(resourceProxy) && shouldContinue; - result = visit ? FileVisitResult.CONTINUE : FileVisitResult.SKIP_SUBTREE; - } catch (CoreException e) { - throw new WrappedRuntimeException(e); - } finally { - resourceProxy.reset(); - } - return result; - } - - @Override - public FileVisitResult visitFileFailed(java.nio.file.Path file, IOException exc) - throws IOException { - return FileVisitResult.CONTINUE; - } - - @Override - public FileVisitResult postVisitDirectory(java.nio.file.Path dir, IOException exc) - throws IOException { - return FileVisitResult.CONTINUE; - } - }); - } catch (IOException e) { - throw new CoreException( - new Status(IStatus.ERROR, ResourcesPlugin.getPluginId(), e.getMessage(), e)); - } - } - - @Override - public void accept(IResourceVisitor visitor) throws CoreException { - accept(visitor, IResource.DEPTH_INFINITE, 0); - } - - @Override - public void accept(IResourceVisitor visitor, int depth, boolean includePhantoms) - throws CoreException { - accept(visitor, depth, includePhantoms ? IContainer.INCLUDE_PHANTOMS : 0); - } - - @Override - public void accept(final IResourceVisitor visitor, int depth, int memberFlags) - throws CoreException { - // use the fast visitor if visiting to infinite depth - if (depth == IResource.DEPTH_INFINITE) { - accept( - new IResourceProxyVisitor() { - public boolean visit(IResourceProxy proxy) throws CoreException { - return visitor.visit(proxy.requestResource()); - } - }, - memberFlags); - return; - } - // it is invalid to call accept on a phantom when INCLUDE_PHANTOMS is not specified - final boolean includePhantoms = (memberFlags & IContainer.INCLUDE_PHANTOMS) != 0; - ResourceInfo info = getResourceInfo(includePhantoms, false); - int flags = getFlags(info); - if ((memberFlags & IContainer.DO_NOT_CHECK_EXISTENCE) == 0) checkAccessible(flags); - - // check that this resource matches the member flags - if (!isMember(flags, memberFlags)) return; - // visit this resource - if (!visitor.visit(this) || depth == DEPTH_ZERO) return; - // get the info again because it might have been changed by the visitor - info = getResourceInfo(includePhantoms, false); - if (info == null) return; - // thread safety: (cache the type to avoid changes -- we might not be inside an operation) - int type = info.getType(); - if (type == FILE) return; - // if we had a gender change we need to fix up the resource before asking for its members - IContainer resource = - getType() != type - ? (IContainer) workspace.newResource(getFullPath(), type) - : (IContainer) this; - IResource[] members = resource.members(memberFlags); - for (int i = 0; i < members.length; i++) - members[i].accept(visitor, DEPTH_ZERO, memberFlags | IContainer.DO_NOT_CHECK_EXISTENCE); - } - - public int getFlags(ResourceInfo info) { - // return (info == null) ? NULL_FLAG : info.getFlags(); - return NULL_FLAG; - } - - /** - * Returns whether a resource should be included in a traversal based on the provided member - * flags. - * - * @param flags The resource info flags - * @param memberFlags The member flag mask - * @return Whether the resource is included - */ - protected boolean isMember(int flags, int memberFlags) { - int excludeMask = 0; - if ((memberFlags & IContainer.INCLUDE_PHANTOMS) == 0) excludeMask |= M_PHANTOM; - if ((memberFlags & IContainer.INCLUDE_HIDDEN) == 0) excludeMask |= M_HIDDEN; - if ((memberFlags & IContainer.INCLUDE_TEAM_PRIVATE_MEMBERS) == 0) - excludeMask |= M_TEAM_PRIVATE_MEMBER; - if ((memberFlags & IContainer.EXCLUDE_DERIVED) != 0) excludeMask |= M_DERIVED; - // the resource is a matching member if it matches none of the exclude flags - return flags != NULL_FLAG && (flags & excludeMask) == 0; - } - - @Override - public boolean contains(ISchedulingRule rule) { - if (this == rule) return true; - // must allow notifications to nest in all resource rules - if (rule.getClass().equals(WorkManager.NotifyRule.class)) return true; - if (rule instanceof MultiRule) { - MultiRule multi = (MultiRule) rule; - ISchedulingRule[] children = multi.getChildren(); - for (int i = 0; i < children.length; i++) if (!contains(children[i])) return false; - return true; - } - if (!(rule instanceof IResource)) return false; - IResource resource = (IResource) rule; - if (!workspace.equals(resource.getWorkspace())) return false; - return path.isPrefixOf(resource.getFullPath()); - } - - @Override - public void clearHistory(IProgressMonitor monitor) throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public void copy(IPath destination, boolean force, IProgressMonitor monitor) - throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public void copy(IPath destination, int updateFlags, IProgressMonitor monitor) - throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public void copy(IProjectDescription destDesc, boolean force, IProgressMonitor monitor) - throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public void copy(IProjectDescription destDesc, int updateFlags, IProgressMonitor monitor) - throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public IResourceProxy createProxy() { - throw new UnsupportedOperationException(); - } - - @Override - public IMarker createMarker(String type) throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public void delete(boolean force, IProgressMonitor monitor) throws CoreException { - delete(force ? IResource.FORCE : IResource.NONE, monitor); - } - - @Override - public void delete(int updateFlags, IProgressMonitor monitor) throws CoreException { - monitor = Policy.monitorFor(monitor); - try { - // String message = NLS.bind(Messages.resources_deleting, getFullPath()); - // monitor.beginTask("", Policy.totalWork * 1000); //$NON-NLS-1$ - // monitor.subTask(message); - final ISchedulingRule rule = workspace.getRuleFactory().deleteRule(this); - try { - workspace.prepareOperation(rule, monitor); - // if there is no resource then there is nothing to delete so just return - if (!exists()) return; - workspace.beginOperation(true); - // broadcastPreDeleteEvent(); - - // when a project is being deleted, flush the build order in case there is a problem - // if (this.getType() == IResource.PROJECT) - // workspace.flushBuildOrder(); - - // final IFileStore originalStore = getStore(); - // boolean wasLinked = isLinked(); - // message = Messages.resources_deleteProblem; - // MultiStatus status = new MultiStatus(ResourcesPlugin.PI_RESOURCES, - // IResourceStatus.FAILED_DELETE_LOCAL, message, null); - WorkManager workManager = workspace.getWorkManager(); - // ResourceTree tree = new ResourceTree(workspace.getFileSystemManager(), - // workManager.getLock(), status, updateFlags); - int depth = 0; - try { - depth = workManager.beginUnprotected(); - workspace.delete(this); - // unprotectedDelete(tree, updateFlags, monitor); - } finally { - workManager.endUnprotected(depth); - } - if (getType() == ROOT) { - // // need to clear out the root info - // workspace.getMarkerManager().removeMarkers(this, - // IResource.DEPTH_ZERO); - // getPropertyManager().deleteProperties(this, IResource.DEPTH_ZERO); - // getResourceInfo(false, false).clearSessionProperties(); - } - // Invalidate the tree for further use by clients. - // tree.makeInvalid(); - // if (!tree.getStatus().isOK()) - // throw new ResourceException(tree.getStatus()); - // update any aliases of this resource - // note that deletion of a linked resource cannot affect other resources - // if (!wasLinked) - // workspace.getAliasManager().updateAliases(this, originalStore, - // IResource.DEPTH_INFINITE, monitor); - // if (getType() == PROJECT) { - // make sure the rule factory is cleared on project deletion - // ((Rules) workspace.getRuleFactory()).setRuleFactory((IProject) this, - // null); - // make sure project deletion is remembered - // workspace.getSaveManager().requestSnapshot(); - // } - } catch (OperationCanceledException e) { - workspace.getWorkManager().operationCanceled(); - throw e; - } finally { - workspace.endOperation(rule, true, Policy.subMonitorFor(monitor, Policy.endOpWork * 1000)); - } - } finally { - monitor.done(); - } - } - - @Override - public void deleteMarkers(String type, boolean includeSubtypes, int depth) throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public boolean exists() { - return workspace.getFile(path).exists(); - } - - @Override - public IMarker findMarker(long id) throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public IMarker[] findMarkers(String type, boolean includeSubtypes, int depth) - throws CoreException { - // throw new UnsupportedOperationException(); - // TODO - return new IMarker[0]; - } - - @Override - public int findMaxProblemSeverity(String type, boolean includeSubtypes, int depth) - throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public String getFileExtension() { - String name = getName(); - int index = name.lastIndexOf('.'); - if (index == -1) return null; - if (index == (name.length() - 1)) return ""; // $NON-NLS-1$ - return name.substring(index + 1); - } - - @Override - public IPath getFullPath() { - return path; - } - - @Override - public long getLocalTimeStamp() { - throw new UnsupportedOperationException(); - } - - @Override - public IPath getLocation() { - return new Path(workspace.getAbsoluteWorkspacePath() + path.toOSString()); - } - - @Override - public URI getLocationURI() { - IProject project = getProject(); - if (project != null && !project.exists()) return null; - return workspace.getFile(getFullPath()).toURI(); - } - - @Override - public IMarker getMarker(long id) { - throw new UnsupportedOperationException(); - } - - @Override - public long getModificationStamp() { - return 0; - } - - @Override - public String getName() { - return path.lastSegment(); - } - - @Override - public IContainer getParent() { - int segments = path.segmentCount(); - // zero and one segments handled by subclasses - if (segments < 2) Assert.isLegal(false, path.toString()); - if (segments == 2) return workspace.getRoot().getProject(path.segment(0)); - IPath parentPath = this.path.removeLastSegments(1); - ResourceInfo resourceInfo = workspace.getResourceInfo(parentPath); - if (resourceInfo == null) { - return null; - } - return (IContainer) workspace.newResource(parentPath, resourceInfo.getType()); - } - - @Override - public Map getPersistentProperties() throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public String getPersistentProperty(QualifiedName qualifiedName) throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public IProject getProject() { - if (this instanceof IProject) { - return (IProject) this; - } - final IProject[] projects = workspace.getRoot().getProjects(); - // here we try to found project by path of resources. We will get all projects and select - // longest path of project that - // start with path of resource. - final Optional max = - Arrays.stream(projects) - .filter(iProject -> path.toOSString().startsWith(iProject.getFullPath().toOSString())) - .max( - (o1, o2) -> { - if (o1.getFullPath().toOSString().length() - > o2.getFullPath().toOSString().length()) { - return 1; - } - if (o2.getFullPath().toOSString().length() - > o1.getFullPath().toOSString().length()) { - return -1; - } - return 0; - }); - if (max.isPresent()) { - return max.get(); - } else { - return null; - } - } - - @Override - public IPath getProjectRelativePath() { - return getFullPath().removeFirstSegments(getProject().getFullPath().segmentCount()); - } - - @Override - public IPath getRawLocation() { - // if (isLinked()) - // return FileUtil.toPath(((Project) - // getProject()).internalGetDescription().getLinkLocationURI(getProjectRelativePath())); - // return getLocation(); - throw new UnsupportedOperationException(); - } - - @Override - public URI getRawLocationURI() { - // if (isLinked()) - // return ((Project) - // getProject()).internalGetDescription().getLinkLocationURI(getProjectRelativePath()); - // return getLocationURI(); - throw new UnsupportedOperationException(); - } - - @Override - public ResourceAttributes getResourceAttributes() { - // throw new UnsupportedOperationException(); - return new ResourceAttributes(); - } - - @Override - public Map getSessionProperties() throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public Object getSessionProperty(QualifiedName qualifiedName) throws CoreException { - throw new UnsupportedOperationException(); - } - - public abstract int getType(); - - public IWorkspace getWorkspace() { - return workspace; - } - - @Override - public int hashCode() { - // the container may be null if the identified resource - // does not exist so don't bother with it in the hash - return getFullPath().hashCode(); - } - - /* (non-Javadoc) - * @see IResource#isAccessible() - */ - public boolean isAccessible() { - return exists(); - } - - @Override - public boolean isDerived() { - return isDerived(IResource.NONE); - } - - @Override - public boolean isDerived(int options) { - // throw new UnsupportedOperationException(); - return true; - } - - @Override - public boolean isHidden() { - throw new UnsupportedOperationException(); - } - - @Override - public boolean isHidden(int options) { - throw new UnsupportedOperationException(); - } - - @Override - public boolean isLinked() { - return isLinked(NONE); - } - - @Override - public boolean isLocal(int depth) { - throw new UnsupportedOperationException(); - } - - @Override - public boolean isVirtual() { - throw new UnsupportedOperationException(); - } - - @Override - public boolean isLinked(int options) { - // throw new UnsupportedOperationException(); - return false; - } - - @Override - public boolean isPhantom() { - // throw new UnsupportedOperationException(); - return false; - } - - @Override - public boolean isReadOnly() { - // throw new UnsupportedOperationException(); - return false; - } - - @Override - public boolean isSynchronized(int depth) { - // throw new UnsupportedOperationException(); - return true; - } - - @Override - public boolean isTeamPrivateMember() { - throw new UnsupportedOperationException(); - } - - @Override - public boolean isTeamPrivateMember(int options) { - throw new UnsupportedOperationException(); - } - - @Override - public void move(IPath destination, boolean force, IProgressMonitor monitor) - throws CoreException { - move(destination, force ? IResource.FORCE : IResource.NONE, monitor); - } - - @Override - public void move(IPath destination, int updateFlags, IProgressMonitor monitor) - throws CoreException { - monitor = Policy.monitorFor(monitor); - try { - String message = NLS.bind(Messages.resources_moving, getFullPath()); - monitor.beginTask(message, Policy.totalWork); - Policy.checkCanceled(monitor); - destination = makePathAbsolute(destination); - // checkValidPath(destination, getType(), false); - Resource destResource = workspace.newResource(destination, getType()); - final ISchedulingRule rule = workspace.getRuleFactory().moveRule(this, destResource); - WorkManager workManager = workspace.getWorkManager(); - try { - workspace.prepareOperation(rule, monitor); - workspace.beginOperation(true); - int depth = 0; - try { - depth = workManager.beginUnprotected(); - unprotectedMove(destResource, updateFlags, monitor); - } finally { - workManager.endUnprotected(depth); - } - } finally { - workspace.endOperation(rule, true, Policy.subMonitorFor(monitor, Policy.endOpWork)); - } - } finally { - monitor.done(); - } - } - - protected IPath makePathAbsolute(IPath target) { - if (target.isAbsolute()) return target; - return getParent().getFullPath().append(target); - } - - /** - * Calls the move/delete hook to perform the move. Since this method calls client code, it is run - * "unprotected", so the workspace lock is not held. Returns true if resources were actually - * moved, and false otherwise. - */ - private boolean unprotectedMove( - final IResource destination, int updateFlags, IProgressMonitor monitor) - throws CoreException, ResourceException { - // IMoveDeleteHook hook = workspace.getMoveDeleteHook(); - switch (getType()) { - case IResource.FILE: - // if (!hook.moveFile(tree, (IFile) this, (IFile) destination, updateFlags, - // Policy.subMonitorFor(monitor, Policy.opWork / 2))) - workspace.standardMoveFile( - (IFile) this, - (IFile) destination, - updateFlags, - Policy.subMonitorFor(monitor, Policy.opWork)); - break; - case IResource.FOLDER: - // if (!hook.moveFolder(tree, (IFolder) this, (IFolder) destination, - // updateFlags, Policy.subMonitorFor(monitor, Policy.opWork / 2))) - workspace.standardMoveFolder( - (IFolder) this, - (IFolder) destination, - updateFlags, - Policy.subMonitorFor(monitor, Policy.opWork)); - break; - case IResource.PROJECT: - IProject project = (IProject) this; - // if there is no change in name, there is nothing to do so return. - if (getName().equals(destination.getName())) return false; - IProjectDescription description = project.getDescription(); - description.setName(destination.getName()); - // if (!hook.moveProject(tree, project, description, updateFlags, - // Policy.subMonitorFor(monitor, Policy.opWork / 2))) - workspace.standardMoveProject( - project, description, updateFlags, Policy.subMonitorFor(monitor, Policy.opWork)); - break; - case IResource.ROOT: - String msg = Messages.resources_moveRoot; - throw new ResourceException( - new ResourceStatus(IResourceStatus.INVALID_VALUE, getFullPath(), msg)); - } - return true; - } - - @Override - public void move( - IProjectDescription description, boolean force, boolean keepHistory, IProgressMonitor monitor) - throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public void move(IProjectDescription description, int updateFlags, IProgressMonitor monitor) - throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public void refreshLocal(int depth, IProgressMonitor monitor) throws CoreException { - // throw new UnsupportedOperationException(); - } - - @Override - public void revertModificationStamp(long value) throws CoreException { - // throw new UnsupportedOperationException(); - } - - @Override - public IPath requestPath() { - return getFullPath(); - } - - @Override - public String requestName() { - return getName(); - } - - @Override - public void setDerived(boolean isDerived) throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public void setDerived(boolean isDerived, IProgressMonitor monitor) throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public void setHidden(boolean isHidden) throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public void setLocal(boolean flag, int depth, IProgressMonitor monitor) throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public long setLocalTimeStamp(long value) throws CoreException { - // throw new UnsupportedOperationException(); - return value; - } - - @Override - public void setPersistentProperty(QualifiedName key, String value) throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public void setReadOnly(boolean readonly) { - throw new UnsupportedOperationException(); - } - - @Override - public void setResourceAttributes(ResourceAttributes attributes) throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public void setSessionProperty(QualifiedName key, Object value) throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public void setTeamPrivateMember(boolean isTeamPrivate) throws CoreException { - throw new UnsupportedOperationException(); - } - - public String getTypeString() { - switch (getType()) { - case FILE: - return "L"; // $NON-NLS-1$ - case FOLDER: - return "F"; // $NON-NLS-1$ - case PROJECT: - return "P"; // $NON-NLS-1$ - case ROOT: - return "R"; // $NON-NLS-1$ - } - return ""; // $NON-NLS-1$ - } - - @Override - public Object getAdapter(Class aClass) { - throw new UnsupportedOperationException(); - } - - /* (non-Javadoc) - * @see IProject#delete(boolean, boolean, IProgressMonitor) - * @see IWorkspaceRoot#delete(boolean, boolean, IProgressMonitor) - * N.B. This is not an IResource method! - */ - public void delete(boolean force, boolean keepHistory, IProgressMonitor monitor) - throws CoreException { - int updateFlags = force ? IResource.FORCE : IResource.NONE; - updateFlags |= keepHistory ? IResource.KEEP_HISTORY : IResource.NONE; - delete(updateFlags, monitor); - } - - @Override - public boolean isConflicting(ISchedulingRule rule) { - if (this == rule) return true; - // must not schedule at same time as notification - if (rule.getClass().equals(WorkManager.NotifyRule.class)) return true; - if (rule instanceof MultiRule) { - MultiRule multi = (MultiRule) rule; - ISchedulingRule[] children = multi.getChildren(); - for (int i = 0; i < children.length; i++) if (isConflicting(children[i])) return true; - return false; - } - if (!(rule instanceof IResource)) return false; - IResource resource = (IResource) rule; - if (!workspace.equals(resource.getWorkspace())) return false; - IPath otherPath = resource.getFullPath(); - return path.isPrefixOf(otherPath) || otherPath.isPrefixOf(path); - } - - @Override - public void touch(IProgressMonitor iProgressMonitor) throws CoreException { - // do nothing - // todo - } - - /* (non-Javadoc) - * @see IResource#getPathVariableManager() - */ - public IPathVariableManager getPathVariableManager() { - // if (getProject() == null) - // return workspace.getPathVariableManager(); - // return new ProjectPathVariableManager(this); - throw new UnsupportedOperationException(); - } - /* (non-Javadoc) - * @see Object#toString() - */ - @Override - public String toString() { - return getTypeString() + getFullPath().toString(); - } - - /* (non-Javadoc) - * @see IResource#equals(Object) - */ - @Override - public boolean equals(Object target) { - if (this == target) return true; - if (!(target instanceof Resource)) return false; - Resource resource = (Resource) target; - return getType() == resource.getType() - && path.equals(resource.path) - && workspace.equals(resource.workspace); - } - - /* (non-Javadoc) - * @see IFile#move(IPath, boolean, boolean, IProgressMonitor) - * @see IFolder#move(IPath, boolean, boolean, IProgressMonitor) - */ - public void move(IPath destination, boolean force, boolean keepHistory, IProgressMonitor monitor) - throws CoreException { - int updateFlags = force ? IResource.FORCE : IResource.NONE; - updateFlags |= keepHistory ? IResource.KEEP_HISTORY : IResource.NONE; - move(destination, updateFlags, monitor); - } - - /* (non-Javadoc) - * @see org.eclipse.core.resources.IFolder#createLink(IPath, int, IProgressMonitor) - * @see org.eclipse.core.resources.IFile#createLink(IPath, int, IProgressMonitor) - */ - public void createLink(IPath localLocation, int updateFlags, IProgressMonitor monitor) - throws CoreException { - // Assert.isNotNull(localLocation); - // createLink(URIUtil.toURI(localLocation), updateFlags, monitor); - throw new UnsupportedOperationException(); - } - - /* (non-Javadoc) - * @see org.eclipse.core.resources.IFolder#createLink(URI, int, IProgressMonitor) - * @see org.eclipse.core.resources.IFile#createLink(URI, int, IProgressMonitor) - */ - public void createLink(URI localLocation, int updateFlags, IProgressMonitor monitor) - throws CoreException { - throw new UnsupportedOperationException(); - } - - /** - * Returns the resource info. Returns null if the resource doesn't exist. If the phantom flag is - * true, phantom resources are considered. If the mutable flag is true, a mutable info is - * returned. - */ - public ResourceInfo getResourceInfo(boolean phantom, boolean mutable) { - return workspace.getResourceInfo(getFullPath()); - } - - public void checkAccessible(int flags) throws CoreException { - checkExists(flags, true); - } - - /** - * Checks that this resource exists. If checkType is true, the type of this resource and the one - * in the tree must match. - * - * @exception CoreException if this resource does not exist - */ - public void checkExists(int flags, boolean checkType) throws CoreException { - if (!exists(flags, checkType)) { - String message = NLS.bind(Messages.resources_mustExist, getFullPath()); - throw new ResourceException(IResourceStatus.RESOURCE_NOT_FOUND, getFullPath(), message, null); - } - } - - public boolean exists(int flags, boolean checkType) { - // return flags != NULL_FLAG && !(checkType && ResourceInfo.getType(flags) != getType()); - return true; - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/ResourceInfo.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/ResourceInfo.java deleted file mode 100644 index 3e7bbb93b072..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/ResourceInfo.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (c) 2012-2018 Red Hat, Inc. - * This program and the accompanying materials are made - * available under the terms of the Eclipse Public License 2.0 - * which is available at https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Red Hat, Inc. - initial API and implementation - */ -package org.eclipse.che.core.internal.resources; - -/** @author Evgen Vidolob */ -public class ResourceInfo { - - private int type; - - public ResourceInfo(int type) { - this.type = type; - } - - /** Returns the type setting for this info. Valid values are FILE, FOLDER, PROJECT, */ - public int getType() { - return type; - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/ResourceProxy.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/ResourceProxy.java deleted file mode 100644 index 4cafc7afd541..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/ResourceProxy.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright (c) 2012-2018 Red Hat, Inc. - * This program and the accompanying materials are made - * available under the terms of the Eclipse Public License 2.0 - * which is available at https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Red Hat, Inc. - initial API and implementation - */ -package org.eclipse.che.core.internal.resources; - -import org.eclipse.core.resources.IResource; -import org.eclipse.core.resources.IResourceProxy; -import org.eclipse.core.resources.ResourcesPlugin; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.QualifiedName; - -/** @author Evgen Vidolob */ -public class ResourceProxy implements IResourceProxy { - protected final Workspace workspace = (Workspace) ResourcesPlugin.getWorkspace(); - protected ResourceInfo info; - protected IPath fullPath; - - protected IResource resource; - - @Override - public long getModificationStamp() { - return 0; - } - - @Override - public boolean isAccessible() { - return false; - } - - @Override - public boolean isDerived() { - return false; - } - - @Override - public boolean isLinked() { - return false; - } - - @Override - public boolean isPhantom() { - return false; - } - - @Override - public boolean isHidden() { - return false; - } - - @Override - public boolean isTeamPrivateMember() { - return false; - } - - @Override - public String getName() { - return fullPath.lastSegment(); - } - - @Override - public Object getSessionProperty(QualifiedName qualifiedName) { - return null; - } - - @Override - public int getType() { - return info.getType(); - } - - @Override - public IPath requestFullPath() { - return fullPath; - } - - @Override - public IResource requestResource() { - if (resource == null) resource = workspace.newResource(requestFullPath(), info.getType()); - return resource; - } - - protected void reset() { - fullPath = null; - resource = null; - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/ResourceStatus.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/ResourceStatus.java deleted file mode 100644 index 3afdcc7b7cbd..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/ResourceStatus.java +++ /dev/null @@ -1,81 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2000, - * 2014 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.che.core.internal.resources; - -import org.eclipse.core.resources.IResourceStatus; -import org.eclipse.core.resources.ResourcesPlugin; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.Status; - -/** */ -public class ResourceStatus extends Status implements IResourceStatus { - IPath path; - - public ResourceStatus(int type, int code, IPath path, String message, Throwable exception) { - super(type, ResourcesPlugin.PI_RESOURCES, code, message, exception); - this.path = path; - } - - public ResourceStatus(int code, String message) { - this(getSeverity(code), code, null, message, null); - } - - public ResourceStatus(int code, IPath path, String message) { - this(getSeverity(code), code, path, message, null); - } - - public ResourceStatus(int code, IPath path, String message, Throwable exception) { - this(getSeverity(code), code, path, message, exception); - } - - /** @see IResourceStatus#getPath() */ - public IPath getPath() { - return path; - } - - protected static int getSeverity(int code) { - return code == 0 ? 0 : 1 << (code % 100 / 33); - } - - // for debug only - private String getTypeName() { - switch (getSeverity()) { - case IStatus.OK: - return "OK"; // $NON-NLS-1$ - case IStatus.ERROR: - return "ERROR"; // $NON-NLS-1$ - case IStatus.INFO: - return "INFO"; // $NON-NLS-1$ - case IStatus.WARNING: - return "WARNING"; // $NON-NLS-1$ - default: - return String.valueOf(getSeverity()); - } - } - - // for debug only - @Override - public String toString() { - StringBuffer sb = new StringBuffer(); - sb.append("[type: "); // $NON-NLS-1$ - sb.append(getTypeName()); - sb.append("], [path: "); // $NON-NLS-1$ - sb.append(getPath()); - sb.append("], [message: "); // $NON-NLS-1$ - sb.append(getMessage()); - sb.append("], [plugin: "); // $NON-NLS-1$ - sb.append(getPlugin()); - sb.append("], [exception: "); // $NON-NLS-1$ - sb.append(getException()); - sb.append("]\n"); // $NON-NLS-1$ - return sb.toString(); - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/Rules.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/Rules.java deleted file mode 100644 index facced63197f..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/Rules.java +++ /dev/null @@ -1,179 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2004, - * 2011 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM - Initial API and implementation James Blackburn (Broadcom Corp.) - ongoing - * development ***************************************************************************** - */ -package org.eclipse.che.core.internal.resources; - -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import org.eclipse.core.internal.events.ILifecycleListener; -import org.eclipse.core.internal.events.LifecycleEvent; -import org.eclipse.core.resources.IProject; -import org.eclipse.core.resources.IResource; -import org.eclipse.core.resources.IResourceRuleFactory; -import org.eclipse.core.resources.IWorkspaceRoot; -import org.eclipse.core.resources.team.ResourceRuleFactory; -import org.eclipse.core.resources.team.TeamHook; -import org.eclipse.core.runtime.jobs.ISchedulingRule; -import org.eclipse.core.runtime.jobs.MultiRule; - -/** - * Class for calculating scheduling rules for resource changing operations. This factory delegates - * to the TeamHook to obtain an appropriate factory for the resource that the operation is proposing - * to modify. - */ -class Rules implements IResourceRuleFactory, ILifecycleListener { - private final ResourceRuleFactory defaultFactory = new ResourceRuleFactory() { - /**/ - }; - /** Map of project names to the factory for that project. */ - private final Map projectsToRules = - Collections.synchronizedMap(new HashMap()); - - private final TeamHook teamHook; - private final IWorkspaceRoot root; - - /** - * Creates a new scheduling rule factory for the given workspace - * - * @param workspace - */ - Rules(Workspace workspace) { - this.root = workspace.getRoot(); - this.teamHook = workspace.getTeamHook(); - // workspace.addLifecycleListener(this); - } - - /** Obtains the scheduling rule from the appropriate factory for a build operation. */ - public ISchedulingRule buildRule() { - // team hook currently cannot change this rule - return root; - } - - /** Obtains the scheduling rule from the appropriate factories for a copy operation. */ - public ISchedulingRule copyRule(IResource source, IResource destination) { - if (source.getType() == IResource.ROOT || destination.getType() == IResource.ROOT) return root; - // source is not modified, destination is created - return factoryFor(destination).copyRule(source, destination); - } - - /** Obtains the scheduling rule from the appropriate factory for a create operation. */ - public ISchedulingRule createRule(IResource resource) { - if (resource.getType() == IResource.ROOT) return root; - return factoryFor(resource).createRule(resource); - } - - /** Obtains the scheduling rule from the appropriate factory for a delete operation. */ - public ISchedulingRule deleteRule(IResource resource) { - if (resource.getType() == IResource.ROOT) return root; - return factoryFor(resource).deleteRule(resource); - } - - /** Returns the scheduling rule factory for the given resource */ - private IResourceRuleFactory factoryFor(IResource destination) { - IResourceRuleFactory fac = projectsToRules.get(destination.getFullPath().segment(0)); - if (fac == null) { - // use the default factory if the project is not yet accessible - if (!destination.getProject().isAccessible()) return defaultFactory; - // ask the team hook to supply one - fac = teamHook.getRuleFactory(destination.getProject()); - projectsToRules.put(destination.getFullPath().segment(0), fac); - } - return fac; - } - - /* (non-Javadoc) - * @see org.eclipse.core.internal.events.ILifecycleListener#handleEvent(org.eclipse.core.internal.events.LifecycleEvent) - */ - public void handleEvent(LifecycleEvent event) { - // clear resource rule factory for projects that are about to be closed - // or deleted. It is ok to do this during a PRE event because the rule - // has already been obtained at this point. - switch (event.kind) { - case LifecycleEvent.PRE_PROJECT_CLOSE: - case LifecycleEvent.PRE_PROJECT_DELETE: - case LifecycleEvent.PRE_PROJECT_MOVE: - setRuleFactory((IProject) event.resource, null); - } - } - - /** Obtains the scheduling rule from the appropriate factory for a charset change operation. */ - public ISchedulingRule charsetRule(IResource resource) { - if (resource.getType() == IResource.ROOT) return null; - return factoryFor(resource).charsetRule(resource); - } - - /** - * Obtains the scheduling rule from the appropriate factory for a derived flag change operation. - */ - public ISchedulingRule derivedRule(IResource resource) { - // team hook currently cannot change this rule - return null; - } - - /** Obtains the scheduling rule from the appropriate factory for a marker change operation. */ - public ISchedulingRule markerRule(IResource resource) { - // team hook currently cannot change this rule - return null; - } - - /** Obtains the scheduling rule from the appropriate factory for a modify operation. */ - public ISchedulingRule modifyRule(IResource resource) { - if (resource.getType() == IResource.ROOT) return root; - return factoryFor(resource).modifyRule(resource); - } - - /** Obtains the scheduling rule from the appropriate factories for a move operation. */ - public ISchedulingRule moveRule(IResource source, IResource destination) { - if (source.getType() == IResource.ROOT || destination.getType() == IResource.ROOT) return root; - // treat a move across projects as a create on the destination and a delete on the source - if (!source.getFullPath().segment(0).equals(destination.getFullPath().segment(0))) - return MultiRule.combine( - modifyRule(source.getProject()), modifyRule(destination.getProject())); - return factoryFor(source).moveRule(source, destination); - } - - /** Obtains the scheduling rule from the appropriate factory for a refresh operation. */ - public ISchedulingRule refreshRule(IResource resource) { - if (resource.getType() == IResource.ROOT) return root; - return factoryFor(resource).refreshRule(resource); - } - - /* (non-javadoc) - * Implements TeamHook#setRuleFactory - */ - void setRuleFactory(IProject project, IResourceRuleFactory factory) { - if (factory == null) projectsToRules.remove(project.getName()); - else projectsToRules.put(project.getName(), factory); - } - - /** Combines rules for each parameter to validateEdit from the corresponding rule factories. */ - public ISchedulingRule validateEditRule(IResource[] resources) { - if (resources.length == 0) return null; - // optimize rule for single file - if (resources.length == 1) { - if (resources[0].getType() == IResource.ROOT) return root; - return factoryFor(resources[0]).validateEditRule(resources); - } - // gather rules for each resource from appropriate factory - HashSet rules = new HashSet(); - IResource[] oneResource = new IResource[1]; - for (int i = 0; i < resources.length; i++) { - if (resources[i].getType() == IResource.ROOT) return root; - oneResource[0] = resources[i]; - ISchedulingRule rule = factoryFor(resources[i]).validateEditRule(oneResource); - if (rule != null) rules.add(rule); - } - if (rules.isEmpty()) return null; - if (rules.size() == 1) return rules.iterator().next(); - ISchedulingRule[] ruleArray = rules.toArray(new ISchedulingRule[rules.size()]); - return new MultiRule(ruleArray); - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/WorkManager.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/WorkManager.java deleted file mode 100644 index 22ad1dda0a4c..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/WorkManager.java +++ /dev/null @@ -1,293 +0,0 @@ -/* - * Copyright (c) 2012-2018 Red Hat, Inc. - * This program and the accompanying materials are made - * available under the terms of the Eclipse Public License 2.0 - * which is available at https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Red Hat, Inc. - initial API and implementation - */ -package org.eclipse.che.core.internal.resources; - -import org.eclipse.che.core.internal.utils.Policy; -import org.eclipse.core.internal.resources.IManager; -import org.eclipse.core.internal.resources.ResourceException; -import org.eclipse.core.internal.utils.Messages; -import org.eclipse.core.resources.IResource; -import org.eclipse.core.resources.IResourceStatus; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.jobs.IJobManager; -import org.eclipse.core.runtime.jobs.ILock; -import org.eclipse.core.runtime.jobs.ISchedulingRule; -import org.eclipse.core.runtime.jobs.Job; - -/** - * The work manager governs concurrent access to the workspace tree. The {@link #lock} field is used - * to protect the workspace tree data structure from concurrent write attempts. This is an internal - * lock that is generally not held while client code is running. Scheduling rules are used by client - * code to obtain exclusive write access to a portion of the workspace. - * - *

This class also tracks operation state for each thread that is involved in an operation. This - * includes prepared and running operation depth, auto-build strategy and cancel state. - */ -public class WorkManager implements IManager { - /** - * Scheduling rule for use during resource change notification. This rule must always be allowed - * to nest within a resource rule of any granularity since it is used from within the scope of all - * resource changing operations. The purpose of this rule is two-fold: 1. To prevent other - * resource changing jobs from being scheduled while the notification is running 2. To cause an - * exception if a resource change listener tries to begin a resource rule during a notification. - * This also prevents deadlock, because the notification thread owns the workspace lock, and - * threads that own the workspace lock must never block trying to acquire a resource rule. - */ - class NotifyRule implements ISchedulingRule { - public boolean contains(ISchedulingRule rule) { - return (rule instanceof IResource) || rule.getClass().equals(NotifyRule.class); - } - - public boolean isConflicting(ISchedulingRule rule) { - return contains(rule); - } - } - - /** - * Indicates that the last checkIn failed, either due to cancelation or due to the workspace tree - * being locked for modifications (during resource change events). - */ - private final ThreadLocal checkInFailed = new ThreadLocal(); - /** Indicates whether any operations have run that may require a build. */ - private boolean hasBuildChanges = false; - - private IJobManager jobManager; - /** - * The primary workspace lock. This lock must be held by any thread modifying the workspace tree. - */ - private final ILock lock; - - /** The current depth of running nested operations. */ - private int nestedOperations = 0; - - private NotifyRule notifyRule = new NotifyRule(); - - private boolean operationCanceled = false; - - /** The current depth of prepared operations. */ - private int preparedOperations = 0; - - private Workspace workspace; - - public WorkManager(Workspace workspace) { - this.workspace = workspace; - this.jobManager = Job.getJobManager(); - this.lock = jobManager.newLock(); - } - - /** - * Releases the workspace lock without changing the nested operation depth. Must be followed - * eventually by endUnprotected. Any beginUnprotected/endUnprotected pair must be done entirely - * within the scope of a checkIn/checkOut pair. Returns the old lock depth. - * - * @see #endUnprotected(int) - */ - public int beginUnprotected() { - int depth = lock.getDepth(); - for (int i = 0; i < depth; i++) lock.release(); - return depth; - } - - /** An operation calls this method and it only returns when the operation is free to run. */ - public void checkIn(ISchedulingRule rule, IProgressMonitor monitor) throws CoreException { - boolean success = false; - try { - if (workspace.isTreeLocked()) { - String msg = Messages.resources_cannotModify; - throw new ResourceException(IResourceStatus.WORKSPACE_LOCKED, null, msg, null); - } - jobManager.beginRule(rule, monitor); - lock.acquire(); - incrementPreparedOperations(); - success = true; - } finally { - // remember if we failed to check in, so we can avoid check out - if (!success) checkInFailed.set(Boolean.TRUE); - } - } - - /** - * Returns true if the check in for this thread failed, in which case the check out and other end - * of operation code should not run. - * - *

The failure flag is reset immediately after calling this method. Subsequent calls to this - * method will indicate no failure (unless a new failure has occurred). - * - * @return true if the checkIn failed, and false otherwise. - */ - public boolean checkInFailed(ISchedulingRule rule) { - if (checkInFailed.get() != null) { - // clear the failure flag for this thread - checkInFailed.set(null); - // must still end the rule even in the case of failure - if (!workspace.isTreeLocked()) jobManager.endRule(rule); - return true; - } - return false; - } - - /** Inform that an operation has finished. */ - public synchronized void checkOut(ISchedulingRule rule) { - decrementPreparedOperations(); - rebalanceNestedOperations(); - // reset state if this is the end of a top level operation - if (preparedOperations == 0) hasBuildChanges = false; - // don't let cancelation of this operation affect other operations - operationCanceled = false; - try { - lock.release(); - } finally { - // end rule in finally in case lock.release throws an exception - jobManager.endRule(rule); - } - } - - /** - * This method can only be safely called from inside a workspace operation. Should NOT be called - * from outside a prepareOperation/endOperation block. - */ - private void decrementPreparedOperations() { - preparedOperations--; - } - - /** - * Re-acquires the workspace lock that was temporarily released during an operation, and restores - * the old lock depth. - * - * @see #beginUnprotected() - */ - public void endUnprotected(int depth) { - for (int i = 0; i < depth; i++) lock.acquire(); - } - - /** Returns the work manager's lock */ - ILock getLock() { - return lock; - } - - /** Returns the scheduling rule used during resource change notifications. */ - public ISchedulingRule getNotifyRule() { - return notifyRule; - } - - /** - * This method can only be safely called from inside a workspace operation. Should NOT be called - * from outside a prepareOperation/endOperation block. - */ - public synchronized int getPreparedOperationDepth() { - return preparedOperations; - } - - /** - * This method can only be safely called from inside a workspace operation. Should NOT be called - * from outside a prepareOperation/endOperation block. - */ - void incrementNestedOperations() { - nestedOperations++; - } - - /** - * This method can only be safely called from inside a workspace operation. Should NOT be called - * from outside a prepareOperation/endOperation block. - */ - private void incrementPreparedOperations() { - preparedOperations++; - } - - /** - * Returns true if the nested operation depth is the same as the prepared operation depth, and - * false otherwise. This method can only be safely called from inside a workspace operation. - * Should NOT be called from outside a prepareOperation/endOperation block. - */ - boolean isBalanced() { - return nestedOperations == preparedOperations; - } - - /** - * Returns true if the workspace lock has already been acquired by this thread, and false - * otherwise. - */ - public boolean isLockAlreadyAcquired() { - boolean result = false; - try { - boolean success = lock.acquire(0L); - if (success) { - // if lock depth is greater than one, then we already owned it - // before - result = lock.getDepth() > 1; - lock.release(); - } - } catch (InterruptedException e) { - // ignore - } - return result; - } - - /** - * This method can only be safely called from inside a workspace operation. Should NOT be called - * from outside a prepareOperation/endOperation block. - */ - public void operationCanceled() { - operationCanceled = true; - } - - /** - * Used to make things stable again after an operation has failed between a - * workspace.prepareOperation() and workspace.beginOperation(). This method can only be safely - * called from inside a workspace operation. Should NOT be called from outside a - * prepareOperation/endOperation block. - */ - public void rebalanceNestedOperations() { - nestedOperations = preparedOperations; - } - - /** Indicates if the operation that has just completed may potentially require a build. */ - public void setBuild(boolean hasChanges) { - hasBuildChanges = hasBuildChanges || hasChanges; - } - - /** - * This method can only be safely called from inside a workspace operation. Should NOT be called - * from outside a prepareOperation/endOperation block. - */ - public boolean shouldBuild() { - if (hasBuildChanges) { - if (operationCanceled) return Policy.buildOnCancel; - return true; - } - return false; - } - - public void shutdown(IProgressMonitor monitor) { - // do nothing - } - - public void startup(IProgressMonitor monitor) { - jobManager.beginRule(workspace.getRoot(), monitor); - lock.acquire(); - } - - /** - * This method should be called at the end of the workspace startup, even if the startup failed. - * It must be preceded by a call to startup. It releases the primary workspace lock - * and ends applying the workspace rule to this thread. - */ - void postWorkspaceStartup() { - try { - lock.release(); - } finally { - // end rule in finally in case lock.release throws an exception - jobManager.endRule(workspace.getRoot()); - } - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/Workspace.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/Workspace.java deleted file mode 100644 index 64e8eb14b204..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/Workspace.java +++ /dev/null @@ -1,965 +0,0 @@ -/* - * Copyright (c) 2012-2018 Red Hat, Inc. - * This program and the accompanying materials are made - * available under the terms of the Eclipse Public License 2.0 - * which is available at https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Red Hat, Inc. - initial API and implementation - */ -package org.eclipse.che.core.internal.resources; - -import static org.eclipse.che.api.fs.server.WsPathUtils.ROOT; -import static org.eclipse.che.api.fs.server.WsPathUtils.absolutize; -import static org.eclipse.che.api.fs.server.WsPathUtils.resolve; - -import com.google.inject.Provider; -import java.io.InputStream; -import java.net.URI; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import org.eclipse.che.api.core.BadRequestException; -import org.eclipse.che.api.core.ConflictException; -import org.eclipse.che.api.core.ForbiddenException; -import org.eclipse.che.api.core.NotFoundException; -import org.eclipse.che.api.core.ServerException; -import org.eclipse.che.api.fs.server.FsManager; -import org.eclipse.che.api.fs.server.PathTransformer; -import org.eclipse.che.api.project.server.ProjectManager; -import org.eclipse.che.api.project.server.type.BaseProjectType; -import org.eclipse.che.api.workspace.server.model.impl.ProjectConfigImpl; -import org.eclipse.che.core.internal.utils.Policy; -import org.eclipse.core.commands.operations.IUndoContext; -import org.eclipse.core.commands.operations.UndoContext; -import org.eclipse.core.internal.resources.ICoreConstants; -import org.eclipse.core.internal.resources.OS; -import org.eclipse.core.internal.resources.ResourceException; -import org.eclipse.core.internal.resources.WorkspaceDescription; -import org.eclipse.core.internal.utils.Messages; -import org.eclipse.core.resources.IBuildConfiguration; -import org.eclipse.core.resources.IFile; -import org.eclipse.core.resources.IFilterMatcherDescriptor; -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.IProjectNatureDescriptor; -import org.eclipse.core.resources.IResource; -import org.eclipse.core.resources.IResourceChangeListener; -import org.eclipse.core.resources.IResourceRuleFactory; -import org.eclipse.core.resources.IResourceStatus; -import org.eclipse.core.resources.ISaveParticipant; -import org.eclipse.core.resources.ISavedState; -import org.eclipse.core.resources.ISynchronizer; -import org.eclipse.core.resources.IWorkspace; -import org.eclipse.core.resources.IWorkspaceDescription; -import org.eclipse.core.resources.IWorkspaceRoot; -import org.eclipse.core.resources.IWorkspaceRunnable; -import org.eclipse.core.resources.ResourcesPlugin; -import org.eclipse.core.resources.team.TeamHook; -import org.eclipse.core.runtime.Assert; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.MultiStatus; -import org.eclipse.core.runtime.OperationCanceledException; -import org.eclipse.core.runtime.Path; -import org.eclipse.core.runtime.Plugin; -import org.eclipse.core.runtime.Status; -import org.eclipse.core.runtime.SubProgressMonitor; -import org.eclipse.core.runtime.jobs.ISchedulingRule; -import org.eclipse.osgi.util.NLS; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -/** @author Evgen Vidolob */ -public class Workspace implements IWorkspace { - - public static final boolean caseSensitive = - new java.io.File("a").compareTo(new java.io.File("A")) != 0; - // $NON-NLS-1$ //$NON-NLS-2$ - private static final Logger LOG = LoggerFactory.getLogger(Workspace.class); - protected final IWorkspaceRoot defaultRoot = new WorkspaceRoot(Path.ROOT, this); - private final Provider projectManager; - private final Provider pathTransformerProvider; - private final Provider fsManagerProvider; - /** - * Work manager should never be accessed directly because accessor asserts that workspace is still - * open. - */ - protected WorkManager _workManager; - /** The currently installed team hook. */ - protected TeamHook teamHook = null; - - private String wsPath; - /** - * Scheduling rule factory. This field is null if the factory has not been used yet. The accessor - * method should be used rather than accessing this field directly. - */ - private IResourceRuleFactory ruleFactory; - - private IUndoContext undoContext = new UndoContext(); - - public Workspace( - String path, - Provider projectManager, - Provider pathTransformerProvider, - Provider fsManagerProvider) { - this.wsPath = path; - this.projectManager = projectManager; - this.pathTransformerProvider = pathTransformerProvider; - this.fsManagerProvider = fsManagerProvider; - _workManager = new WorkManager(this); - _workManager.startup(null); - _workManager.postWorkspaceStartup(); - } - - public static WorkspaceDescription defaultWorkspaceDescription() { - return new WorkspaceDescription("Workspace"); // $NON-NLS-1$ - } - - private static boolean deleteDirectory(java.io.File directory) { - if (directory.exists()) { - java.io.File[] files = directory.listFiles(); - if (null != files) { - for (int i = 0; i < files.length; i++) { - if (files[i].isDirectory()) { - deleteDirectory(files[i]); - } else { - files[i].delete(); - } - } - } - } - return (directory.delete()); - } - - public String getAbsoluteWorkspacePath() { - return pathTransformerProvider.get().transform(ROOT).toString(); - } - - public Resource newResource(IPath path, int type) { - String message; - switch (type) { - case IResource.FOLDER: - if (path.segmentCount() < ICoreConstants.MINIMUM_FOLDER_SEGMENT_LENGTH) { - message = - "Path must include project and resource name: " + path.toString(); // $NON-NLS-1$ - Assert.isLegal(false, message); - } - return new Folder(path.makeAbsolute(), this); - case IResource.FILE: - if (path.segmentCount() < ICoreConstants.MINIMUM_FILE_SEGMENT_LENGTH) { - message = - "Path must include project and resource name: " + path.toString(); // $NON-NLS-1$ - Assert.isLegal(false, message); - } - return new File(path.makeAbsolute(), this); - case IResource.PROJECT: - return (Resource) getRoot().getProject(path.toOSString()); - case IResource.ROOT: - return (Resource) getRoot(); - } - Assert.isLegal(false); - // will never get here because of assertion. - return null; - } - - @Override - public void addResourceChangeListener(IResourceChangeListener listener) { - // TODO - // throw new UnsupportedOperationException(); - } - - @Override - public void addResourceChangeListener(IResourceChangeListener listener, int eventMask) { - // throw new UnsupportedOperationException(); - // TODO - } - - @Override - public ISavedState addSaveParticipant(Plugin plugin, ISaveParticipant iSaveParticipant) - throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public ISavedState addSaveParticipant(String s, ISaveParticipant iSaveParticipant) - throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public void build(int i, IProgressMonitor iProgressMonitor) throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public void build( - IBuildConfiguration[] iBuildConfigurations, - int i, - boolean b, - IProgressMonitor iProgressMonitor) - throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public void checkpoint(boolean b) { - // throw new UnsupportedOperationException(); - } - - @Override - public IProject[][] computePrerequisiteOrder(IProject[] iProjects) { - throw new UnsupportedOperationException(); - } - - @Override - public ProjectOrder computeProjectOrder(IProject[] iProjects) { - throw new UnsupportedOperationException(); - } - - @Override - public IStatus copy( - IResource[] iResources, IPath iPath, boolean b, IProgressMonitor iProgressMonitor) - throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public IStatus copy(IResource[] iResources, IPath iPath, int i, IProgressMonitor iProgressMonitor) - throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public IStatus delete(IResource[] resources, boolean force, IProgressMonitor monitor) - throws CoreException { - int updateFlags = force ? IResource.FORCE : IResource.NONE; - updateFlags |= IResource.KEEP_HISTORY; - return delete(resources, updateFlags, monitor); - } - - @Override - public IStatus delete(IResource[] resources, int updateFlags, IProgressMonitor monitor) - throws CoreException { - monitor = Policy.monitorFor(monitor); - try { - int opWork = Math.max(resources.length, 1); - int totalWork = Policy.totalWork * opWork / Policy.opWork; - String message = Messages.resources_deleting_0; - monitor.beginTask(message, totalWork); - message = Messages.resources_deleteProblem; - MultiStatus result = - new MultiStatus( - ResourcesPlugin.PI_RESOURCES, IResourceStatus.INTERNAL_ERROR, message, null); - if (resources.length == 0) { - return result; - } - resources = resources.clone(); // to avoid concurrent changes to this array - try { - prepareOperation(getRoot(), monitor); - beginOperation(true); - for (int i = 0; i < resources.length; i++) { - Policy.checkCanceled(monitor); - Resource resource = (Resource) resources[i]; - if (resource == null) { - monitor.worked(1); - continue; - } - try { - resource.delete(updateFlags, Policy.subMonitorFor(monitor, 1)); - } catch (CoreException e) { - // Don't really care about the exception unless the resource is still around. - ResourceInfo info = resource.getResourceInfo(false, false); - if (resource.exists(resource.getFlags(info), false)) { - message = NLS.bind(Messages.resources_couldnotDelete, resource.getFullPath()); - result.merge( - new org.eclipse.core.internal.resources.ResourceStatus( - IResourceStatus.FAILED_DELETE_LOCAL, resource.getFullPath(), message)); - result.merge(e.getStatus()); - } - } - } - if (result.matches(IStatus.ERROR)) { - throw new ResourceException(result); - } - return result; - } catch (OperationCanceledException e) { - getWorkManager().operationCanceled(); - throw e; - } finally { - endOperation(getRoot(), true, Policy.subMonitorFor(monitor, totalWork - opWork)); - } - } finally { - monitor.done(); - } - } - - @Override - public void deleteMarkers(IMarker[] iMarkers) throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public void forgetSavedTree(String s) { - throw new UnsupportedOperationException(); - } - - @Override - public IFilterMatcherDescriptor[] getFilterMatcherDescriptors() { - throw new UnsupportedOperationException(); - } - - @Override - public IFilterMatcherDescriptor getFilterMatcherDescriptor(String s) { - throw new UnsupportedOperationException(); - } - - @Override - public IProjectNatureDescriptor[] getNatureDescriptors() { - throw new UnsupportedOperationException(); - } - - @Override - public IProjectNatureDescriptor getNatureDescriptor(String s) { - throw new UnsupportedOperationException(); - } - - @Override - public Map getDanglingReferences() { - throw new UnsupportedOperationException(); - } - - @Override - public IWorkspaceDescription getDescription() { - WorkspaceDescription workingCopy = defaultWorkspaceDescription(); - // description.copyTo(workingCopy); - return workingCopy; - } - - @Override - public void setDescription(IWorkspaceDescription iWorkspaceDescription) throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public IWorkspaceRoot getRoot() { - return defaultRoot; - } - - @Override - public IResourceRuleFactory getRuleFactory() { - // note that the rule factory is created lazily because it - // requires loading the teamHook extension - if (ruleFactory == null) { - ruleFactory = new Rules(this); - } - return ruleFactory; - } - - @Override - public ISynchronizer getSynchronizer() { - throw new UnsupportedOperationException(); - } - - @Override - public boolean isAutoBuilding() { - throw new UnsupportedOperationException(); - } - - @Override - public boolean isTreeLocked() { - // todo - return false; - } - - @Override - public IProjectDescription loadProjectDescription(IPath iPath) throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public IProjectDescription loadProjectDescription(InputStream inputStream) throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public IStatus move( - IResource[] iResources, IPath iPath, boolean b, IProgressMonitor iProgressMonitor) - throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public IStatus move(IResource[] iResources, IPath iPath, int i, IProgressMonitor iProgressMonitor) - throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public IBuildConfiguration newBuildConfig(String s, String s1) { - throw new UnsupportedOperationException(); - } - - @Override - public IProjectDescription newProjectDescription(String s) { - throw new UnsupportedOperationException(); - } - - @Override - public void removeResourceChangeListener(IResourceChangeListener listener) { - // throw new UnsupportedOperationException(); - // TODO - } - - @Override - public void removeSaveParticipant(Plugin plugin) { - throw new UnsupportedOperationException(); - } - - @Override - public void removeSaveParticipant(String s) { - throw new UnsupportedOperationException(); - } - - /** - * Called before checking the pre-conditions of an operation. Optionally supply a scheduling rule - * to determine when the operation is safe to run. If a scheduling rule is supplied, this method - * will block until it is safe to run. - * - * @param rule the scheduling rule that describes what this operation intends to modify. - */ - public void prepareOperation(ISchedulingRule rule, IProgressMonitor monitor) - throws CoreException { - try { - // make sure autobuild is not running if it conflicts with this operation - ISchedulingRule buildRule = getRuleFactory().buildRule(); - // if (rule != null && buildRule != null && (rule.isConflicting(buildRule) || - // buildRule.isConflicting(rule))) - // buildManager.interrupt(); - } finally { - getWorkManager().checkIn(rule, monitor); - } - // if (!isOpen()) { - // String message = Messages.resources_workspaceClosed; - // throw new ResourceException(IResourceStatus.OPERATION_FAILED, null, message, - // null); - // } - } - - /** - * We should not have direct references to this field. All references should go through this - * method. - */ - public WorkManager getWorkManager() throws CoreException { - if (_workManager == null) { - String message = Messages.resources_shutdown; - throw new ResourceException( - new ResourceStatus(IResourceStatus.INTERNAL_ERROR, null, message)); - } - return _workManager; - } - - @Override - public void run( - IWorkspaceRunnable action, ISchedulingRule rule, int options, IProgressMonitor monitor) - throws CoreException { - monitor = Policy.monitorFor(monitor); - try { - monitor.beginTask("", Policy.totalWork); // $NON-NLS-1$ - int depth = -1; - boolean avoidNotification = (options & IWorkspace.AVOID_UPDATE) != 0; - try { - prepareOperation(rule, monitor); - beginOperation(true); - // if (avoidNotification) - // avoidNotification = notificationManager.beginAvoidNotify(); - depth = getWorkManager().beginUnprotected(); - action.run( - Policy.subMonitorFor( - monitor, Policy.opWork, SubProgressMonitor.PREPEND_MAIN_LABEL_TO_SUBTASK)); - } catch (OperationCanceledException e) { - getWorkManager().operationCanceled(); - throw e; - } finally { - // if (avoidNotification) - // notificationManager.endAvoidNotify(); - if (depth >= 0) { - getWorkManager().endUnprotected(depth); - } - endOperation(rule, false, Policy.subMonitorFor(monitor, Policy.endOpWork)); - } - } finally { - monitor.done(); - } - } - - public void beginOperation(boolean createNewTree) throws CoreException { - WorkManager workManager = getWorkManager(); - workManager.incrementNestedOperations(); - if (!workManager.isBalanced()) { - Assert.isTrue(false, "Operation was not prepared."); // $NON-NLS-1$ - } - // if (workManager.getPreparedOperationDepth() > 1) { - // if (createNewTree && tree.isImmutable()) - // newWorkingTree(); - // return; - // } - // // stash the current tree as the basis for this operation. - // operationTree = tree; - // if (createNewTree && tree.isImmutable()) - // newWorkingTree(); - } - - /** - * End an operation (group of resource changes). Notify interested parties that resource changes - * have taken place. All registered resource change listeners are notified. If autobuilding is - * enabled, a build is run. - */ - public void endOperation(ISchedulingRule rule, boolean build, IProgressMonitor monitor) - throws CoreException { - WorkManager workManager = getWorkManager(); - // don't do any end operation work if we failed to check in - if (workManager.checkInFailed(rule)) { - return; - } - // This is done in a try finally to ensure that we always decrement the operation count - // and release the workspace lock. This must be done at the end because snapshot - // and "hasChanges" comparison have to happen without interference from other threads. - boolean hasTreeChanges = false; - boolean depthOne = false; - try { - workManager.setBuild(build); - // if we are not exiting a top level operation then just decrement the count and return - depthOne = workManager.getPreparedOperationDepth() == 1; - // if (!(notificationManager.shouldNotify() || depthOne)) { - // notificationManager.requestNotify(); - // return; - // } - // do the following in a try/finally to ensure that the operation tree is nulled at the end - // as we are completing a top level operation. - try { - // notificationManager.beginNotify(); - // check for a programming error on using beginOperation/endOperation - Assert.isTrue( - workManager.getPreparedOperationDepth() > 0, - "Mismatched begin/endOperation"); // $NON-NLS-1$ - - // At this time we need to re-balance the nested operations. It is necessary because - // build() and snapshot() should not fail if they are called. - workManager.rebalanceNestedOperations(); - - // find out if any operation has potentially modified the tree - // hasTreeChanges = workManager.shouldBuild(); - // double check if the tree has actually changed - // if (hasTreeChanges) - // hasTreeChanges = operationTree != null && ElementTree.hasChanges(tree, - // operationTree, ResourceComparator - // .getBuildComparator(), true); - // broadcastPostChange(); - // // Request a snapshot if we are sufficiently out of date. - // saveManager.snapshotIfNeeded(hasTreeChanges); - } finally { - // // make sure the tree is immutable if we are ending a top-level operation. - // if (depthOne) { - // tree.immutable(); - // operationTree = null; - // } else - // newWorkingTree(); - } - } finally { - workManager.checkOut(rule); - } - // if (depthOne) - // buildManager.endTopLevel(hasTreeChanges); - } - - @Override - public void run(IWorkspaceRunnable action, IProgressMonitor monitor) throws CoreException { - run(action, defaultRoot, IWorkspace.AVOID_UPDATE, monitor); - } - - @Override - public IStatus save(boolean b, IProgressMonitor iProgressMonitor) throws CoreException { - throw new UnsupportedOperationException(); - } - - @Override - public String[] sortNatureSet(String[] strings) { - throw new UnsupportedOperationException(); - } - - @Override - public IStatus validateEdit(IFile[] iFiles, Object o) { - throw new UnsupportedOperationException(); - } - - @Override - public IStatus validateFiltered(IResource iResource) { - throw new UnsupportedOperationException(); - } - - @Override - public IStatus validateLinkLocation(IResource iResource, IPath iPath) { - throw new UnsupportedOperationException(); - } - - @Override - public IStatus validateLinkLocationURI(IResource iResource, URI uri) { - throw new UnsupportedOperationException(); - } - - @Override - public IStatus validateName(String segment, int type) { - String message; - /* segment must not be null */ - if (segment == null) { - message = Messages.resources_nameNull; - return new org.eclipse.core.internal.resources.ResourceStatus( - IResourceStatus.INVALID_VALUE, null, message); - } - - // cannot be an empty string - if (segment.length() == 0) { - message = Messages.resources_nameEmpty; - return new org.eclipse.core.internal.resources.ResourceStatus( - IResourceStatus.INVALID_VALUE, null, message); - } - - /* test invalid characters */ - char[] chars = OS.INVALID_RESOURCE_CHARACTERS; - for (int i = 0; i < chars.length; i++) { - if (segment.indexOf(chars[i]) != -1) { - message = NLS.bind(Messages.resources_invalidCharInName, String.valueOf(chars[i]), segment); - return new org.eclipse.core.internal.resources.ResourceStatus( - IResourceStatus.INVALID_VALUE, null, message); - } - } - - /* test invalid OS names */ - if (!OS.isNameValid(segment)) { - message = NLS.bind(Messages.resources_invalidName, segment); - return new org.eclipse.core.internal.resources.ResourceStatus( - IResourceStatus.INVALID_VALUE, null, message); - } - return Status.OK_STATUS; - } - - @Override - public IStatus validateNatureSet(String[] strings) { - throw new UnsupportedOperationException(); - } - - @Override - public IStatus validatePath(String path, int type) { - /* path must not be null */ - if (path == null) { - String message = Messages.resources_pathNull; - return new org.eclipse.core.internal.resources.ResourceStatus( - IResourceStatus.INVALID_VALUE, null, message); - } - return validatePath(Path.fromOSString(path), type, false); - } - - /** - * Validates that the given workspace path is valid for the given type. If lastSegmentOnly - * is true, it is assumed that all segments except the last one have previously been - * validated. This is an optimization for validating a leaf resource when it is known that the - * parent exists (and thus its parent path must already be valid). - */ - public IStatus validatePath(IPath path, int type, boolean lastSegmentOnly) { - String message; - - /* path must not be null */ - if (path == null) { - message = Messages.resources_pathNull; - return new org.eclipse.core.internal.resources.ResourceStatus( - IResourceStatus.INVALID_VALUE, null, message); - } - - /* path must not have a device separator */ - if (path.getDevice() != null) { - message = - NLS.bind( - Messages.resources_invalidCharInPath, String.valueOf(IPath.DEVICE_SEPARATOR), path); - return new org.eclipse.core.internal.resources.ResourceStatus( - IResourceStatus.INVALID_VALUE, null, message); - } - - /* path must not be the root path */ - if (path.isRoot()) { - message = Messages.resources_invalidRoot; - return new org.eclipse.core.internal.resources.ResourceStatus( - IResourceStatus.INVALID_VALUE, null, message); - } - - /* path must be absolute */ - if (!path.isAbsolute()) { - message = NLS.bind(Messages.resources_mustBeAbsolute, path); - return new org.eclipse.core.internal.resources.ResourceStatus( - IResourceStatus.INVALID_VALUE, null, message); - } - - /* validate segments */ - int numberOfSegments = path.segmentCount(); - if ((type & IResource.PROJECT) != 0) { - if (numberOfSegments == ICoreConstants.PROJECT_SEGMENT_LENGTH) { - return validateName(path.segment(0), IResource.PROJECT); - } else if (type == IResource.PROJECT) { - message = NLS.bind(Messages.resources_projectPath, path); - return new org.eclipse.core.internal.resources.ResourceStatus( - IResourceStatus.INVALID_VALUE, null, message); - } - } - if ((type & (IResource.FILE | IResource.FOLDER)) != 0) { - if (numberOfSegments < ICoreConstants.MINIMUM_FILE_SEGMENT_LENGTH) { - message = NLS.bind(Messages.resources_resourcePath, path); - return new org.eclipse.core.internal.resources.ResourceStatus( - IResourceStatus.INVALID_VALUE, null, message); - } - int fileFolderType = type &= ~IResource.PROJECT; - int segmentCount = path.segmentCount(); - if (lastSegmentOnly) { - return validateName(path.segment(segmentCount - 1), fileFolderType); - } - IStatus status = validateName(path.segment(0), IResource.PROJECT); - if (!status.isOK()) { - return status; - } - // ignore first segment (the project) - for (int i = 1; i < segmentCount; i++) { - status = validateName(path.segment(i), fileFolderType); - if (!status.isOK()) { - return status; - } - } - return Status.OK_STATUS; - } - message = NLS.bind(Messages.resources_invalidPath, path); - return new org.eclipse.core.internal.resources.ResourceStatus( - IResourceStatus.INVALID_VALUE, null, message); - } - - @Override - public IStatus validateProjectLocation(IProject iProject, IPath iPath) { - throw new UnsupportedOperationException(); - } - - @Override - public IStatus validateProjectLocationURI(IProject iProject, URI uri) { - throw new UnsupportedOperationException(); - } - - @Override - public IPathVariableManager getPathVariableManager() { - throw new UnsupportedOperationException(); - } - - @Override - public Object getAdapter(Class aClass) { - if (aClass == IUndoContext.class) { - return undoContext; - } - throw new UnsupportedOperationException(); - } - - public java.io.File getFile(IPath path) { - return new java.io.File(wsPath, path.toOSString()); - } - - public ResourceInfo getResourceInfo(IPath path) { - String wsPath = absolutize(path.toOSString()); - return fsManagerProvider.get().exists(wsPath) ? newElement(getType(wsPath)) : null; - } - - private int getType(String wsPath) { - if (fsManagerProvider.get().existsAsFile(wsPath)) { - return IResource.FILE; - } else { - if (projectManager.get().isRegistered(wsPath)) { - return IResource.PROJECT; - } else { - return IResource.FOLDER; - } - } - } - - /** Create and return a new tree element of the given type. */ - protected ResourceInfo newElement(int type) { - ResourceInfo result = null; - switch (type) { - case IResource.FILE: - case IResource.FOLDER: - result = new ResourceInfo(type); - break; - case IResource.PROJECT: - result = new ResourceInfo(type); - break; - case IResource.ROOT: - result = new ResourceInfo(type); - break; - } - - return result; - } - - public IResource[] getChildren(IPath path) { - - String parentWsPath = absolutize(path.toOSString()); - if (fsManagerProvider.get().existsAsDir(parentWsPath)) { - List allChildrenWsPaths = - new ArrayList<>(fsManagerProvider.get().getAllChildrenWsPaths(parentWsPath)); - if (!allChildrenWsPaths.isEmpty()) { - IResource[] resources = new IResource[allChildrenWsPaths.size()]; - for (int i = 0; i < allChildrenWsPaths.size(); i++) { - String childWsPath = allChildrenWsPaths.get(i); - IPath iPath = new Path(childWsPath); - resources[i] = newResource(iPath, getType(childWsPath)); - } - resources = - Arrays.stream(resources) - .sorted((o1, o2) -> o1.getName().compareToIgnoreCase(o2.getName())) - .toArray(IResource[]::new); - return resources; - } - } - return ICoreConstants.EMPTY_RESOURCE_ARRAY; - } - - public void createResource(IResource resource, int updateFlags) throws CoreException { - try { - IPath path = resource.getFullPath(); - switch (resource.getType()) { - case IResource.FILE: - String newName = path.lastSegment(); - String childWsPath = absolutize(path.removeLastSegments(1).toOSString()); - - if (!fsManagerProvider.get().exists(childWsPath)) { - throw new NotFoundException( - "Can't find parent folder: " + path.removeLastSegments(1).toOSString()); - } - String newFileWsPath = resolve(childWsPath, newName); - fsManagerProvider.get().createFile(newFileWsPath); - break; - case IResource.FOLDER: - String directoryWsPath = absolutize(path.toOSString()); - fsManagerProvider.get().createDir(directoryWsPath); - break; - case IResource.PROJECT: - ProjectConfigImpl projectConfig = new ProjectConfigImpl(); - projectConfig.setPath(resource.getName()); - projectConfig.setName(resource.getName()); - projectConfig.setType(BaseProjectType.ID); - projectManager.get().create(projectConfig, new HashMap<>()); - break; - default: - throw new UnsupportedOperationException(); - } - } catch (ForbiddenException - | ConflictException - | ServerException - | NotFoundException - | BadRequestException e) { - throw new CoreException(new Status(0, ResourcesPlugin.getPluginId(), e.getMessage(), e)); - } - } - - public void setFileContent(File file, InputStream content) { - try { - String fileWsPath = absolutize(file.getFullPath().toOSString()); - if (fsManagerProvider.get().existsAsFile(fileWsPath)) { - fsManagerProvider.get().update(fileWsPath, content); - } - } catch (ServerException | NotFoundException | ConflictException e) { - ResourcesPlugin.log(e); - } - } - - public TeamHook getTeamHook() { - // default to use Core's implementation - // create anonymous subclass because TeamHook is abstract - if (teamHook == null) { - teamHook = - new TeamHook() { - // empty - }; - } - return teamHook; - } - - public void delete(Resource resource) { - try { - projectManager.get().delete(resource.getFullPath().toOSString()); - } catch (ServerException | ForbiddenException | ConflictException | NotFoundException e) { - LOG.error(e.getMessage(), e); - } - } - - void write( - File file, InputStream content, int updateFlags, boolean append, IProgressMonitor monitor) - throws CoreException { - try { - String fileWsPath = absolutize(file.getFullPath().toOSString()); - if (!fsManagerProvider.get().existsAsFile(fileWsPath)) { - fsManagerProvider.get().createFile(fileWsPath, content); - } else { - fsManagerProvider.get().update(fileWsPath, content); - } - } catch (ConflictException | ServerException | NotFoundException e) { - throw new CoreException(new Status(0, "", e.getMessage(), e)); - } - } - - public void standardMoveFile( - IFile file, IFile destination, int updateFlags, IProgressMonitor monitor) - throws CoreException { - String srcWsPath = absolutize(file.getFullPath().toOSString()); - String dstDirectoryWsPath = - absolutize(destination.getFullPath().removeLastSegments(1).toOSString()); - String dstWsPath = resolve(dstDirectoryWsPath, destination.getName()); - - try { - fsManagerProvider.get().move(srcWsPath, dstWsPath); - } catch (NotFoundException | ConflictException | ServerException e) { - throw new CoreException(new Status(0, "", e.getMessage(), e)); - } - } - - public void standardMoveFolder( - IFolder folder, IFolder destination, int updateFlags, IProgressMonitor monitor) - throws CoreException { - String srcWsPath = absolutize(folder.getFullPath().toOSString()); - String dstParentWsPath = - absolutize(destination.getFullPath().removeLastSegments(1).toOSString()); - String dstWsPath = resolve(dstParentWsPath, destination.getName()); - - try { - fsManagerProvider.get().move(srcWsPath, dstWsPath); - } catch (NotFoundException | ConflictException | ServerException e) { - throw new CoreException(new Status(0, "", e.getMessage(), e)); - } - } - - public void standardMoveProject( - IProject project, - IProjectDescription description, - int updateFlags, - IProgressMonitor monitor) { - throw new UnsupportedOperationException("standardMoveProject"); - } - - public void addLifecycleListener(org.eclipse.core.internal.resources.Rules rules) {} - - /** Returns project manager associated with this workspace */ - public ProjectManager getProjectRegistry() { - return projectManager.get(); - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/WorkspaceRoot.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/WorkspaceRoot.java deleted file mode 100644 index 62193be07f55..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/WorkspaceRoot.java +++ /dev/null @@ -1,129 +0,0 @@ -/* - * Copyright (c) 2012-2018 Red Hat, Inc. - * This program and the accompanying materials are made - * available under the terms of the Eclipse Public License 2.0 - * which is available at https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Red Hat, Inc. - initial API and implementation - */ -package org.eclipse.che.core.internal.resources; - -import java.net.URI; -import java.util.HashSet; -import java.util.Set; -import java.util.concurrent.ConcurrentHashMap; -import java.util.concurrent.ConcurrentMap; -import org.eclipse.che.api.project.server.ProjectManager; -import org.eclipse.che.api.project.shared.RegisteredProject; -import org.eclipse.core.resources.IContainer; -import org.eclipse.core.resources.IFile; -import org.eclipse.core.resources.IProject; -import org.eclipse.core.resources.IWorkspaceRoot; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.Path; - -/** - * @author Evgen Vidolob - * @author Dmitry Shnurenko - * @author Valeriy Svydenko - */ -public class WorkspaceRoot extends Container implements IWorkspaceRoot { - /** - * As an optimization, we store a table of project handles that have been requested from this - * root. This maps project name strings to project handles. - */ - private final ConcurrentMap projectTable = new ConcurrentHashMap<>(16); - - protected WorkspaceRoot(IPath path, Workspace workspace) { - super(path, workspace); - } - - @Override - public IContainer[] findContainersForLocation(IPath iPath) { - throw new UnsupportedOperationException(); - } - - @Override - public IContainer[] findContainersForLocationURI(URI uri) { - throw new UnsupportedOperationException(); - } - - @Override - public IContainer[] findContainersForLocationURI(URI uri, int i) { - throw new UnsupportedOperationException(); - } - - @Override - public IFile[] findFilesForLocation(IPath iPath) { - throw new UnsupportedOperationException(); - } - - @Override - public IFile[] findFilesForLocationURI(URI uri) { - throw new UnsupportedOperationException(); - } - - @Override - public IFile[] findFilesForLocationURI(URI uri, int i) { - throw new UnsupportedOperationException(); - } - - @Override - public IContainer getContainerForLocation(IPath iPath) { - throw new UnsupportedOperationException(); - } - - @Override - public IFile getFileForLocation(IPath iPath) { - throw new UnsupportedOperationException(); - } - - @Override - public IProject getProject(String name) { - // first check our project cache - Project result = projectTable.get(name); - if (result == null) { - IPath projectPath = new Path(null, name).makeAbsolute(); - // try to get the project using a canonical name - String canonicalName = projectPath.toOSString(); // .lastSegment(); - result = projectTable.get(canonicalName); - if (result != null) return result; - result = new Project(projectPath, workspace); - projectTable.putIfAbsent(canonicalName, result); - } - return result; - } - - @Override - public IProject[] getProjects() { - ProjectManager projectManager = workspace.getProjectRegistry(); - Set projects = new HashSet<>(); - Set rootProjects = projectManager.getAll(); - for (RegisteredProject rootProject : rootProjects) { - Project project = new Project(new Path(rootProject.getPath()), workspace); - - projects.add(project); - } - - return projects.toArray(new IProject[projects.size()]); - } - - @Override - public IProject[] getProjects(int i) { - throw new UnsupportedOperationException(); - } - - @Override - public String getDefaultCharset(boolean b) throws CoreException { - return "UTF-8"; - } - - @Override - public int getType() { - return ROOT; - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/mapping/ProposedResourceDelta.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/mapping/ProposedResourceDelta.java deleted file mode 100644 index e901a3257e54..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/mapping/ProposedResourceDelta.java +++ /dev/null @@ -1,214 +0,0 @@ -/* - * Copyright (c) 2012-2018 Red Hat, Inc. - * This program and the accompanying materials are made - * available under the terms of the Eclipse Public License 2.0 - * which is available at https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Red Hat, Inc. - initial API and implementation - */ -package org.eclipse.che.core.internal.resources.mapping; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import org.eclipse.core.resources.IContainer; -import org.eclipse.core.resources.IMarkerDelta; -import org.eclipse.core.resources.IResource; -import org.eclipse.core.resources.IResourceDelta; -import org.eclipse.core.resources.IResourceDeltaVisitor; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.PlatformObject; - -/** Concrete implementation of IResourceDelta used for operation validation */ -public final class ProposedResourceDelta extends PlatformObject implements IResourceDelta { - - protected static int KIND_MASK = 0xFF; - - private HashMap children = - new HashMap(8); - private IPath movedFromPath; - private IPath movedToPath; - private IResource resource; - private int status; - - public ProposedResourceDelta(IResource resource) { - this.resource = resource; - } - - /* (non-Javadoc) - * @see org.eclipse.core.resources.IResourceDelta#accept(org.eclipse.core.resources.IResourceDeltaVisitor) - */ - public void accept(IResourceDeltaVisitor visitor) throws CoreException { - accept(visitor, 0); - } - - /* (non-Javadoc) - * @see org.eclipse.core.resources.IResourceDelta#accept(org.eclipse.core.resources.IResourceDeltaVisitor, boolean) - */ - public void accept(IResourceDeltaVisitor visitor, boolean includePhantoms) throws CoreException { - accept(visitor, includePhantoms ? IContainer.INCLUDE_PHANTOMS : 0); - } - - /* (non-Javadoc) - * @see org.eclipse.core.resources.IResourceDelta#accept(org.eclipse.core.resources.IResourceDeltaVisitor, int) - */ - public void accept(IResourceDeltaVisitor visitor, int memberFlags) throws CoreException { - if (!visitor.visit(this)) return; - for (Iterator iter = children.values().iterator(); iter.hasNext(); ) { - ProposedResourceDelta childDelta = iter.next(); - childDelta.accept(visitor, memberFlags); - } - } - - /** - * Adds a child delta to the list of children for this delta node. - * - * @param delta - */ - protected void add(ProposedResourceDelta delta) { - if (children.size() == 0 && status == 0) setKind(IResourceDelta.CHANGED); - children.put(delta.getResource().getName(), delta); - } - - /** - * Adds the given flags to this delta. - * - * @param flags The flags to add - */ - protected void addFlags(int flags) { - // make sure the provided flags don't influence the kind - this.status |= (flags & ~KIND_MASK); - } - - /* (non-Javadoc) - * @see org.eclipse.core.resources.IResourceDelta#findMember(org.eclipse.core.runtime.IPath) - */ - public IResourceDelta findMember(IPath path) { - int segmentCount = path.segmentCount(); - if (segmentCount == 0) return this; - - // iterate over the path and find matching child delta - ProposedResourceDelta current = this; - for (int i = 0; i < segmentCount; i++) { - current = current.children.get(path.segment(i)); - if (current == null) return null; - } - return current; - } - - /* (non-Javadoc) - * @see org.eclipse.core.resources.IResourceDelta#getAffectedChildren() - */ - public IResourceDelta[] getAffectedChildren() { - return getAffectedChildren(ADDED | REMOVED | CHANGED, IResource.NONE); - } - - /* (non-Javadoc) - * @see org.eclipse.core.resources.IResourceDelta#getAffectedChildren(int) - */ - public IResourceDelta[] getAffectedChildren(int kindMask) { - return getAffectedChildren(kindMask, IResource.NONE); - } - - /* (non-Javadoc) - * @see org.eclipse.core.resources.IResourceDelta#getAffectedChildren(int, int) - */ - public IResourceDelta[] getAffectedChildren(int kindMask, int memberFlags) { - List result = new ArrayList(); - for (Iterator iter = children.values().iterator(); iter.hasNext(); ) { - ProposedResourceDelta child = iter.next(); - if ((child.getKind() & kindMask) != 0) result.add(child); - } - return result.toArray(new IResourceDelta[result.size()]); - } - - /** - * Returns the child delta corresponding to the given child resource name, or null. - */ - ProposedResourceDelta getChild(String name) { - return children.get(name); - } - - /* (non-Javadoc) - * @see org.eclipse.core.resources.IResourceDelta#getFlags() - */ - public int getFlags() { - return status & ~KIND_MASK; - } - - /* (non-Javadoc) - * @see org.eclipse.core.resources.IResourceDelta#getFullPath() - */ - public IPath getFullPath() { - return getResource().getFullPath(); - } - - /* (non-Javadoc) - * @see org.eclipse.core.resources.IResourceDelta#getKind() - */ - public int getKind() { - return status & KIND_MASK; - } - - /* (non-Javadoc) - * @see org.eclipse.core.resources.IResourceDelta#getMarkerDeltas() - */ - public IMarkerDelta[] getMarkerDeltas() { - return new IMarkerDelta[0]; - } - - /* (non-Javadoc) - * @see org.eclipse.core.resources.IResourceDelta#getMovedFromPath() - */ - public IPath getMovedFromPath() { - return movedFromPath; - } - - /* (non-Javadoc) - * @see org.eclipse.core.resources.IResourceDelta#getMovedToPath() - */ - public IPath getMovedToPath() { - return movedToPath; - } - - /* (non-Javadoc) - * @see org.eclipse.core.resources.IResourceDelta#getProjectRelativePath() - */ - public IPath getProjectRelativePath() { - return getResource().getProjectRelativePath(); - } - - /* (non-Javadoc) - * @see org.eclipse.core.resources.IResourceDelta#getResource() - */ - public IResource getResource() { - return resource; - } - - public void setFlags(int flags) { - status = getKind() | (flags & ~KIND_MASK); - } - - protected void setKind(int kind) { - status = getFlags() | (kind & KIND_MASK); - } - - protected void setMovedFromPath(IPath path) { - movedFromPath = path; - } - - protected void setMovedToPath(IPath path) { - movedToPath = path; - } - - /** For debugging purposes only. */ - @Override - public String toString() { - return "ProposedDelta(" + resource + ')'; // $NON-NLS-1$ - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/mapping/ResourceChangeDescriptionFactory.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/mapping/ResourceChangeDescriptionFactory.java deleted file mode 100644 index eb4a2e277a56..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/resources/mapping/ResourceChangeDescriptionFactory.java +++ /dev/null @@ -1,280 +0,0 @@ -/* - * Copyright (c) 2012-2018 Red Hat, Inc. - * This program and the accompanying materials are made - * available under the terms of the Eclipse Public License 2.0 - * which is available at https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Red Hat, Inc. - initial API and implementation - */ -package org.eclipse.che.core.internal.resources.mapping; - -import org.eclipse.che.core.internal.resources.Workspace; -import org.eclipse.che.core.internal.utils.Policy; -import org.eclipse.core.resources.IContainer; -import org.eclipse.core.resources.IFile; -import org.eclipse.core.resources.IProject; -import org.eclipse.core.resources.IResource; -import org.eclipse.core.resources.IResourceDelta; -import org.eclipse.core.resources.IResourceVisitor; -import org.eclipse.core.resources.IWorkspace; -import org.eclipse.core.resources.IWorkspaceRoot; -import org.eclipse.core.resources.ResourcesPlugin; -import org.eclipse.core.resources.mapping.IResourceChangeDescriptionFactory; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPath; - -/** Factory for creating a resource delta that describes a proposed change. */ -public class ResourceChangeDescriptionFactory implements IResourceChangeDescriptionFactory { - - private ProposedResourceDelta root = - new ProposedResourceDelta(ResourcesPlugin.getWorkspace().getRoot()); - - /** - * Creates and a delta representing a deleted resource, and adds it to the provided parent delta. - * - * @param parentDelta The parent of the deletion delta to create - * @param resource The deleted resource to create a delta for - */ - private ProposedResourceDelta buildDeleteDelta( - ProposedResourceDelta parentDelta, IResource resource) { - // start with the existing delta for this resource, if any, to preserve other flags - ProposedResourceDelta delta = parentDelta.getChild(resource.getName()); - if (delta == null) { - delta = new ProposedResourceDelta(resource); - parentDelta.add(delta); - } - delta.setKind(IResourceDelta.REMOVED); - if (resource.getType() == IResource.FILE) return delta; - // recurse to build deletion deltas for children - try { - IResource[] members = ((IContainer) resource).members(); - int childCount = members.length; - if (childCount > 0) { - ProposedResourceDelta[] childDeltas = new ProposedResourceDelta[childCount]; - for (int i = 0; i < childCount; i++) childDeltas[i] = buildDeleteDelta(delta, members[i]); - } - } catch (CoreException e) { - // don't need to create deletion deltas for children of inaccessible resources - } - return delta; - } - - /* (non-Javadoc) - * @see org.eclipse.core.resources.mapping.IProposedResourceDeltaFactory#change(org.eclipse.core.resources.IFile) - */ - public void change(IFile file) { - ProposedResourceDelta delta = getDelta(file); - if (delta.getKind() == 0) delta.setKind(IResourceDelta.CHANGED); - // the CONTENT flag only applies to the changed and moved from cases - if (delta.getKind() == IResourceDelta.CHANGED - || (delta.getFlags() & IResourceDelta.MOVED_FROM) != 0 - || (delta.getFlags() & IResourceDelta.COPIED_FROM) != 0) - delta.addFlags(IResourceDelta.CONTENT); - } - - /* (non-Javadoc) - * @see org.eclipse.core.resources.mapping.IProposedResourceDeltaFactory#close(org.eclipse.core.resources.IProject) - */ - public void close(IProject project) { - delete(project); - ProposedResourceDelta delta = getDelta(project); - delta.addFlags(IResourceDelta.OPEN); - } - - /* (non-Javadoc) - * @see org.eclipse.core.resources.mapping.IProposedResourceDeltaFactory#copy(org.eclipse.core.resources.IResource, org.eclipse.core.runtime.IPath) - */ - public void copy(IResource resource, IPath destination) { - moveOrCopyDeep(resource, destination, false /* copy */); - } - - /* (non-Javadoc) - * @see org.eclipse.core.resources.mapping.IResourceChangeDescriptionFactory#create(org.eclipse.core.resources.IResource) - */ - public void create(IResource resource) { - getDelta(resource).setKind(IResourceDelta.ADDED); - } - - /* (non-Javadoc) - * @see org.eclipse.core.resources.mapping.IProposedResourceDeltaFactory#delete(org.eclipse.core.resources.IResource) - */ - public void delete(IResource resource) { - if (resource.getType() == IResource.ROOT) { - // the root itself cannot be deleted, so create deletions for each project - IProject[] projects = ((IWorkspaceRoot) resource).getProjects(IContainer.INCLUDE_HIDDEN); - for (int i = 0; i < projects.length; i++) buildDeleteDelta(root, projects[i]); - } else { - buildDeleteDelta(getDelta(resource.getParent()), resource); - } - } - - private void fail(CoreException e) { - Policy.log( - e.getStatus().getSeverity(), - "An internal error occurred while accumulating a change description.", - e); // $NON-NLS-1$ - } - - /* (non-Javadoc) - * @see org.eclipse.core.resources.mapping.IProposedResourceDeltaFactory#getDelta() - */ - public IResourceDelta getDelta() { - return root; - } - - private ProposedResourceDelta getDelta(IResource resource) { - ProposedResourceDelta delta = (ProposedResourceDelta) root.findMember(resource.getFullPath()); - if (delta != null) { - return delta; - } - IWorkspace workspace = ResourcesPlugin.getWorkspace(); - - IResource iResource = resource.getParent(); - if (iResource == null) { - iResource = - ((Workspace) workspace) - .newResource(resource.getFullPath().removeLastSegments(1), IResource.FOLDER); - } - ProposedResourceDelta parent = getDelta(iResource); - delta = new ProposedResourceDelta(resource); - parent.add(delta); - return delta; - } - - /* - * Return the resource at the destination path that corresponds to the source resource - * @param source the source resource - * @param sourcePrefix the path of the root of the move or copy - * @param destinationPrefix the path of the destination the root was copied to - * @return the destination resource - */ - protected IResource getDestinationResource( - IResource source, IPath sourcePrefix, IPath destinationPrefix) { - IPath relativePath = source.getFullPath().removeFirstSegments(sourcePrefix.segmentCount()); - IPath destinationPath = destinationPrefix.append(relativePath); - IResource destination; - IWorkspaceRoot wsRoot = ResourcesPlugin.getWorkspace().getRoot(); - switch (source.getType()) { - case IResource.FILE: - destination = wsRoot.getFile(destinationPath); - break; - case IResource.FOLDER: - destination = wsRoot.getFolder(destinationPath); - break; - case IResource.PROJECT: - destination = wsRoot.getProject(destinationPath.segment(0)); - break; - default: - // Shouldn't happen - destination = null; - } - return destination; - } - - /* (non-Javadoc) - * @see org.eclipse.core.resources.mapping.IProposedResourceDeltaFactory#move(org.eclipse.core.resources.IResource, org.eclipse.core.runtime.IPath) - */ - public void move(IResource resource, IPath destination) { - moveOrCopyDeep(resource, destination, true /* move */); - } - - /** - * Builds the delta representing a single resource being moved or copied. - * - * @param resource The resource being moved - * @param sourcePrefix The root of the sub-tree being moved - * @param destinationPrefix The root of the destination sub-tree - * @param move true for a move, false for a copy - * @return Whether to move or copy the child - */ - boolean moveOrCopy( - IResource resource, - final IPath sourcePrefix, - final IPath destinationPrefix, - final boolean move) { - ProposedResourceDelta sourceDelta = getDelta(resource); - if (sourceDelta.getKind() == IResourceDelta.REMOVED) { - // There is already a removed delta here so there - // is nothing to move/copy - return false; - } - IResource destinationResource = - getDestinationResource(resource, sourcePrefix, destinationPrefix); - ProposedResourceDelta destinationDelta = getDelta(destinationResource); - if ((destinationDelta.getKind() & (IResourceDelta.ADDED | IResourceDelta.CHANGED)) > 0) { - // There is already a resource at the destination - // TODO: What do we do - return false; - } - // First, create the delta for the source - IPath fromPath = resource.getFullPath(); - boolean wasAdded = false; - final int sourceFlags = sourceDelta.getFlags(); - if (move) { - // We transfer the source flags to the destination - if (sourceDelta.getKind() == IResourceDelta.ADDED) { - if ((sourceFlags & IResourceDelta.MOVED_FROM) != 0) { - // The resource was moved from somewhere else so - // we need to transfer the path to the new location - fromPath = sourceDelta.getMovedFromPath(); - sourceDelta.setMovedFromPath(null); - } - // The source was added and then moved so we'll - // make it an add at the destination - sourceDelta.setKind(0); - wasAdded = true; - } else { - // We reset the status to be a remove/move_to - sourceDelta.setKind(IResourceDelta.REMOVED); - sourceDelta.setFlags(IResourceDelta.MOVED_TO); - sourceDelta.setMovedToPath( - destinationPrefix.append(fromPath.removeFirstSegments(sourcePrefix.segmentCount()))); - } - } - // Next, create the delta for the destination - if (destinationDelta.getKind() == IResourceDelta.REMOVED) { - // The destination was removed and is being re-added - destinationDelta.setKind(IResourceDelta.CHANGED); - destinationDelta.addFlags(IResourceDelta.REPLACED); - } else { - destinationDelta.setKind(IResourceDelta.ADDED); - } - if (!wasAdded || !fromPath.equals(resource.getFullPath())) { - // The source wasn't added so it is a move/copy - destinationDelta.addFlags(move ? IResourceDelta.MOVED_FROM : IResourceDelta.COPIED_FROM); - destinationDelta.setMovedFromPath(fromPath); - // Apply the source flags - if (move) destinationDelta.addFlags(sourceFlags); - } - - return true; - } - - /** - * Helper method that generate a move or copy delta for a sub-tree of resources being moved or - * copied. - */ - private void moveOrCopyDeep(IResource resource, IPath destination, final boolean move) { - final IPath sourcePrefix = resource.getFullPath(); - final IPath destinationPrefix = destination; - try { - // build delta for the entire sub-tree if available - if (resource.isAccessible()) { - resource.accept( - new IResourceVisitor() { - public boolean visit(IResource child) { - return moveOrCopy(child, sourcePrefix, destinationPrefix, move); - } - }); - } else { - // just build a delta for the single resource - moveOrCopy(resource, sourcePrefix, destination, move); - } - } catch (CoreException e) { - fail(e); - } - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/utils/Policy.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/utils/Policy.java deleted file mode 100644 index 7b5ce058a0cd..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/che/core/internal/utils/Policy.java +++ /dev/null @@ -1,223 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2000, - * 2014 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.che.core.internal.utils; - -import java.io.PrintWriter; -import java.io.StringWriter; -import java.util.Date; -import org.eclipse.core.resources.ResourcesPlugin; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.NullProgressMonitor; -import org.eclipse.core.runtime.OperationCanceledException; -import org.eclipse.core.runtime.Status; -import org.eclipse.core.runtime.SubProgressMonitor; -import org.eclipse.core.runtime.jobs.Job; - -public class Policy { - // public static final DebugOptionsListener RESOURCES_DEBUG_OPTIONS_LISTENER = new - // DebugOptionsListener() { - // public void optionsChanged(DebugOptions options) { - // DEBUG = options.getBooleanOption(ResourcesPlugin.PI_RESOURCES + "/debug", false); - // //$NON-NLS-1$ - // - // DEBUG_AUTO_REFRESH = DEBUG && options.getBooleanOption(ResourcesPlugin.PI_RESOURCES + - // "/refresh", false); //$NON-NLS-1$ - // - // DEBUG_BUILD_DELTA = DEBUG && options.getBooleanOption(ResourcesPlugin.PI_RESOURCES + - // "/build/delta", false); //$NON-NLS-1$ - // DEBUG_BUILD_FAILURE = DEBUG && options.getBooleanOption(ResourcesPlugin.PI_RESOURCES + - // "/build/failure", false); //$NON-NLS-1$ - // DEBUG_BUILD_INTERRUPT = - // DEBUG && options.getBooleanOption(ResourcesPlugin.PI_RESOURCES + "/build/interrupt", - // false); //$NON-NLS-1$ - // DEBUG_BUILD_INVOKING = DEBUG && options.getBooleanOption(ResourcesPlugin.PI_RESOURCES + - // "/build/invoking", false); - // //$NON-NLS-1$ - // DEBUG_BUILD_NEEDED = DEBUG && options.getBooleanOption(ResourcesPlugin.PI_RESOURCES + - // "/build/needbuild", false); //$NON-NLS-1$ - // DEBUG_BUILD_NEEDED_STACK = - // DEBUG && options.getBooleanOption(ResourcesPlugin.PI_RESOURCES + "/build/needbuildstack", - // false); //$NON-NLS-1$ - // DEBUG_BUILD_STACK = DEBUG && options.getBooleanOption(ResourcesPlugin.PI_RESOURCES + - // "/build/stacktrace", false); //$NON-NLS-1$ - // - // DEBUG_CONTENT_TYPE = DEBUG && options.getBooleanOption(ResourcesPlugin.PI_RESOURCES + - // "/contenttype", false); //$NON-NLS-1$ - // DEBUG_CONTENT_TYPE_CACHE = - // DEBUG && options.getBooleanOption(ResourcesPlugin.PI_RESOURCES + "/contenttype/cache", - // false); //$NON-NLS-1$ - // DEBUG_HISTORY = DEBUG && options.getBooleanOption(ResourcesPlugin.PI_RESOURCES + "/history", - // false); //$NON-NLS-1$ - // DEBUG_NATURES = DEBUG && options.getBooleanOption(ResourcesPlugin.PI_RESOURCES + "/natures", - // false); //$NON-NLS-1$ - // DEBUG_NOTIFICATIONS = DEBUG && options.getBooleanOption(ResourcesPlugin.PI_RESOURCES + - // "/notifications", false); //$NON-NLS-1$ - // DEBUG_PREFERENCES = DEBUG && options.getBooleanOption(ResourcesPlugin.PI_RESOURCES + - // "/preferences", false); //$NON-NLS-1$ - // - // DEBUG_RESTORE = DEBUG && options.getBooleanOption(ResourcesPlugin.PI_RESOURCES + "/restore", - // false); //$NON-NLS-1$ - // DEBUG_RESTORE_MARKERS = - // DEBUG && options.getBooleanOption(ResourcesPlugin.PI_RESOURCES + "/restore/markers", - // false); //$NON-NLS-1$ - // DEBUG_RESTORE_MASTERTABLE = - // DEBUG && options.getBooleanOption(ResourcesPlugin.PI_RESOURCES + "/restore/mastertable", - // false); //$NON-NLS-1$ - // DEBUG_RESTORE_METAINFO = - // DEBUG && options.getBooleanOption(ResourcesPlugin.PI_RESOURCES + "/restore/metainfo", - // false); //$NON-NLS-1$ - // DEBUG_RESTORE_SNAPSHOTS = - // DEBUG && options.getBooleanOption(ResourcesPlugin.PI_RESOURCES + "/restore/snapshots", - // false); //$NON-NLS-1$ - // DEBUG_RESTORE_SYNCINFO = - // DEBUG && options.getBooleanOption(ResourcesPlugin.PI_RESOURCES + "/restore/syncinfo", - // false); //$NON-NLS-1$ - // DEBUG_RESTORE_TREE = DEBUG && options.getBooleanOption(ResourcesPlugin.PI_RESOURCES + - // "/restore/tree", false); //$NON-NLS-1$ - // - // DEBUG_SAVE = DEBUG && options.getBooleanOption(ResourcesPlugin.PI_RESOURCES + "/save", - // false); //$NON-NLS-1$ - // DEBUG_SAVE_MARKERS = DEBUG && options.getBooleanOption(ResourcesPlugin.PI_RESOURCES + - // "/save/markers", false); //$NON-NLS-1$ - // DEBUG_SAVE_MASTERTABLE = - // DEBUG && options.getBooleanOption(ResourcesPlugin.PI_RESOURCES + "/save/mastertable", - // false); //$NON-NLS-1$ - // DEBUG_SAVE_METAINFO = DEBUG && options.getBooleanOption(ResourcesPlugin.PI_RESOURCES + - // "/save/metainfo", false); //$NON-NLS-1$ - // DEBUG_SAVE_SYNCINFO = DEBUG && options.getBooleanOption(ResourcesPlugin.PI_RESOURCES + - // "/save/syncinfo", false); //$NON-NLS-1$ - // DEBUG_SAVE_TREE = DEBUG && options.getBooleanOption(ResourcesPlugin.PI_RESOURCES + - // "/save/tree", false); //$NON-NLS-1$ - // - // DEBUG_STRINGS = DEBUG && options.getBooleanOption(ResourcesPlugin.PI_RESOURCES + "/strings", - // false); //$NON-NLS-1$ - // } - // }; - - public static final boolean buildOnCancel = false; - // general debug flag for the plugin - public static boolean DEBUG = false; - - public static boolean DEBUG_AUTO_REFRESH = false; - - // debug constants - public static boolean DEBUG_BUILD_DELTA = false; - public static boolean DEBUG_BUILD_FAILURE = false; - public static boolean DEBUG_BUILD_INTERRUPT = false; - public static boolean DEBUG_BUILD_INVOKING = false; - public static boolean DEBUG_BUILD_NEEDED = false; - public static boolean DEBUG_BUILD_NEEDED_STACK = false; - public static boolean DEBUG_BUILD_STACK = false; - - public static boolean DEBUG_CONTENT_TYPE = false; - public static boolean DEBUG_CONTENT_TYPE_CACHE = false; - public static boolean DEBUG_HISTORY = false; - public static boolean DEBUG_NATURES = false; - public static boolean DEBUG_NOTIFICATIONS = false; - public static boolean DEBUG_PREFERENCES = false; - // Get timing information for restoring data - public static boolean DEBUG_RESTORE = false; - public static boolean DEBUG_RESTORE_MARKERS = false; - public static boolean DEBUG_RESTORE_MASTERTABLE = false; - - public static boolean DEBUG_RESTORE_METAINFO = false; - public static boolean DEBUG_RESTORE_SNAPSHOTS = false; - public static boolean DEBUG_RESTORE_SYNCINFO = false; - public static boolean DEBUG_RESTORE_TREE = false; - // Get timing information for save and snapshot data - public static boolean DEBUG_SAVE = false; - public static boolean DEBUG_SAVE_MARKERS = false; - public static boolean DEBUG_SAVE_MASTERTABLE = false; - - public static boolean DEBUG_SAVE_METAINFO = false; - public static boolean DEBUG_SAVE_SYNCINFO = false; - public static boolean DEBUG_SAVE_TREE = false; - public static boolean DEBUG_STRINGS = false; - public static int endOpWork = 1; - public static final long MAX_BUILD_DELAY = 1000; - - public static final long MIN_BUILD_DELAY = 100; - public static int opWork = 99; - public static final int totalWork = 100; - - public static void checkCanceled(IProgressMonitor monitor) { - if (monitor.isCanceled()) throw new OperationCanceledException(); - } - - /** - * Print a debug message to the console. Prepend the message with the current date, the name of - * the current thread and the current job if present. - */ - public static void debug(String message) { - StringBuilder output = new StringBuilder(); - output.append(new Date(System.currentTimeMillis())); - output.append(" - ["); // $NON-NLS-1$ - output.append(Thread.currentThread().getName()); - output.append("] "); // $NON-NLS-1$ - Job currentJob = Job.getJobManager().currentJob(); - if (currentJob != null) { - output.append(currentJob.getClass().getName()); - output.append("("); // $NON-NLS-1$ - output.append(currentJob.getName()); - output.append("): "); // $NON-NLS-1$ - } - output.append(message); - System.out.println(output.toString()); - } - - /** Print a debug throwable to the console. */ - public static void debug(Throwable t) { - StringWriter writer = new StringWriter(); - t.printStackTrace(new PrintWriter(writer)); - String str = writer.toString(); - if (str.endsWith("\n")) // $NON-NLS-1$ - str = str.substring(0, str.length() - 2); - debug(str); - } - - public static void log(int severity, String message, Throwable t) { - if (message == null) message = ""; // $NON-NLS-1$ - log(new Status(severity, ResourcesPlugin.getPluginId(), 1, message, t)); - } - - public static void log(IStatus status) { - // final Bundle bundle = Platform.getBundle(ResourcesPlugin.PI_RESOURCES); - // if (bundle == null) - // return; - // Platform.getLog(bundle).log(status); - ResourcesPlugin.log(status); - } - - /** - * Logs a throwable, assuming severity of error - * - * @param t - */ - public static void log(Throwable t) { - log(IStatus.ERROR, "Internal Error", t); // $NON-NLS-1$ - } - - public static IProgressMonitor monitorFor(IProgressMonitor monitor) { - return monitor == null ? new NullProgressMonitor() : monitor; - } - - public static IProgressMonitor subMonitorFor(IProgressMonitor monitor, int ticks) { - if (monitor == null) return new NullProgressMonitor(); - if (monitor instanceof NullProgressMonitor) return monitor; - return new SubProgressMonitor(monitor, ticks); - } - - public static IProgressMonitor subMonitorFor(IProgressMonitor monitor, int ticks, int style) { - if (monitor == null) return new NullProgressMonitor(); - if (monitor instanceof NullProgressMonitor) return monitor; - return new SubProgressMonitor(monitor, ticks, style); - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/dtree/IComparator.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/dtree/IComparator.java deleted file mode 100644 index ab91e475c4b5..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/dtree/IComparator.java +++ /dev/null @@ -1,26 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2000, - * 2005 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.internal.dtree; - -/** - * An interface for comparing two data tree objects. Provides information on how an object has - * changed from one tree to another. - */ -public interface IComparator { - /** - * Returns an integer describing the changes between two data objects in a data tree. The first - * three bits of the returned integer are used during calculation of delta trees. The remaining - * bits can be assigned any meaning that is useful to the client. If there is no change in the two - * data objects, this method must return 0. - * - * @see NodeComparison - */ - int compare(Object o1, Object o2); -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/events/ILifecycleListener.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/events/ILifecycleListener.java deleted file mode 100644 index 7d145ddf04eb..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/events/ILifecycleListener.java +++ /dev/null @@ -1,17 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2000, - * 2005 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.internal.events; - -import org.eclipse.core.runtime.CoreException; - -/** Interface for clients interested in receiving notification of workspace lifecycle events. */ -public interface ILifecycleListener { - public void handleEvent(LifecycleEvent event) throws CoreException; -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/events/LifecycleEvent.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/events/LifecycleEvent.java deleted file mode 100644 index 062595e27ebe..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/events/LifecycleEvent.java +++ /dev/null @@ -1,82 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2000, - * 2011 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation Serge Beauchamp (Freescale - * Semiconductor) - [229633] Group Support - * ***************************************************************************** - */ -package org.eclipse.core.internal.events; - -import org.eclipse.core.resources.IResource; - -/** - * Class used for broadcasting internal workspace lifecycle events. There is a singleton instance, - * so no listener is allowed to keep references to the event after the notification is finished. - */ -public class LifecycleEvent { - // constants for kinds of internal workspace lifecycle events - public static final int PRE_PROJECT_CLOSE = 0x01; - public static final int POST_PROJECT_CHANGE = 0x02; - public static final int PRE_PROJECT_COPY = 0x04; - public static final int PRE_PROJECT_CREATE = 0x08; - - public static final int PRE_PROJECT_DELETE = 0x10; - public static final int PRE_PROJECT_OPEN = 0x20; - public static final int PRE_PROJECT_MOVE = 0x40; - - public static final int PRE_LINK_COPY = 0x100; - public static final int PRE_LINK_CREATE = 0x200; - public static final int PRE_LINK_DELETE = 0x400; - public static final int PRE_LINK_MOVE = 0x800; - public static final int PRE_REFRESH = 0x1000; - - public static final int PRE_GROUP_COPY = 0x2000; - public static final int PRE_GROUP_CREATE = 0x4000; - public static final int PRE_GROUP_DELETE = 0x8000; - public static final int PRE_GROUP_MOVE = 0x10000; - - public static final int PRE_FILTER_ADD = 0x20000; - public static final int PRE_FILTER_REMOVE = 0x40000; - - public static final int PRE_LINK_CHANGE = 0x80000; - - /** The kind of event */ - public int kind; - /** - * For events that only involve one resource, this is it. More specifically, this is used for all - * events that don't involve a more or copy. For copy/move events, this resource represents the - * source of the copy/move. - */ - public IResource resource; - /** For copy/move events, this resource represents the destination of the copy/move. */ - public IResource newResource; - - /** The update flags for the event. */ - public int updateFlags; - - private static final LifecycleEvent instance = new LifecycleEvent(); - - private LifecycleEvent() { - super(); - } - - public static LifecycleEvent newEvent(int kind, IResource resource) { - instance.kind = kind; - instance.resource = resource; - instance.newResource = null; - instance.updateFlags = 0; - return instance; - } - - public static LifecycleEvent newEvent( - int kind, IResource oldResource, IResource newResource, int updateFlags) { - instance.kind = kind; - instance.resource = oldResource; - instance.newResource = newResource; - instance.updateFlags = updateFlags; - return instance; - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/ICoreConstants.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/ICoreConstants.java deleted file mode 100644 index aab5f18c8ec0..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/ICoreConstants.java +++ /dev/null @@ -1,135 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2000, - * 2010 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation Serge Beauchamp (Freescale - * Semiconductor) - [229633] Group Support Broadcom Corporation - build configurations - * ***************************************************************************** - */ -package org.eclipse.core.internal.resources; - -import org.eclipse.core.resources.IBuildConfiguration; -import org.eclipse.core.resources.IFileState; -import org.eclipse.core.resources.IProject; -import org.eclipse.core.resources.IResource; -import org.eclipse.core.resources.ResourcesPlugin; -import org.eclipse.core.runtime.QualifiedName; - -public interface ICoreConstants { - - // Standard resource properties - /** map of builders to their last built state. */ - public static final QualifiedName K_BUILD_LIST = - new QualifiedName(ResourcesPlugin.PI_RESOURCES, "BuildMap"); // $NON-NLS-1$ - - /** Command line argument indicating a workspace refresh on startup is requested. */ - public static final String REFRESH_ON_STARTUP = "-refresh"; // $NON-NLS-1$ - - // resource info constants - static final long I_NULL_SYNC_INFO = -1; - - // Useful flag masks for resource info states - static final int M_OPEN = 0x1; - static final int M_LOCAL_EXISTS = 0x2; - static final int M_PHANTOM = 0x8; - static final int M_USED = 0x10; - static final int M_TYPE = 0xF00; - static final int M_TYPE_START = 8; - static final int M_MARKERS_SNAP_DIRTY = 0x1000; - static final int M_SYNCINFO_SNAP_DIRTY = 0x2000; - /** - * Marks this resource as derived. - * - * @since 2.0 - */ - static final int M_DERIVED = 0x4000; - /** - * Marks this resource as a team-private member of its container. - * - * @since 2.0 - */ - static final int M_TEAM_PRIVATE_MEMBER = 0x8000; - /** - * Marks this resource as a hidden resource. - * - * @since 3.4 - */ - static final int M_HIDDEN = 0x200000; - - /** - * Marks this resource as a linked resource. - * - * @since 2.1 - */ - static final int M_LINK = 0x10000; - /** - * Marks this resource as virtual. - * - * @since 3.6 - */ - static final int M_VIRTUAL = 0x80000; - /** - * The file has no content description. - * - * @since 3.0 - */ - static final int M_NO_CONTENT_DESCRIPTION = 0x20000; - /** - * The file has a default content description. - * - * @since 3.0 - */ - static final int M_DEFAULT_CONTENT_DESCRIPTION = 0x40000; - - /** - * Marks this resource as having undiscovered children - * - * @since 3.1 - */ - static final int M_CHILDREN_UNKNOWN = 0x100000; - - /** - * Set of flags that should be cleared when the contents for a file change. - * - * @since 3.0 - */ - static final int M_CONTENT_CACHE = M_NO_CONTENT_DESCRIPTION | M_DEFAULT_CONTENT_DESCRIPTION; - - static final int NULL_FLAG = -1; - - /** - * A private preference stored in a preference node to indicate the preference version that is - * used. This version identifier is used to handle preference migration when old preferences are - * loaded. - */ - public static final String PREF_VERSION_KEY = "version"; // $NON-NLS-1$ - - /** - * A private preference stored in a preference node to indicate the preference version that is - * used. This version identifier is used to handle preference migration when old preferences are - * loaded. - */ - public static final String PREF_VERSION = "1"; // $NON-NLS-1$ - - // Internal status codes - // Information Only [00-24] - // Warnings [25-74] - public static final int CRASH_DETECTED = 10035; - - // Errors [75-99] - - public static final int PROJECT_SEGMENT_LENGTH = 1; - public static final int MINIMUM_FOLDER_SEGMENT_LENGTH = 2; - public static final int MINIMUM_FILE_SEGMENT_LENGTH = 2; - - public static final int WORKSPACE_TREE_VERSION_1 = 67305985; - public static final int WORKSPACE_TREE_VERSION_2 = 67305986; - - // helper constants for empty structures - public static final IBuildConfiguration[] EMPTY_BUILD_CONFIG_ARRAY = new IBuildConfiguration[0]; - public static final IProject[] EMPTY_PROJECT_ARRAY = new IProject[0]; - public static final IResource[] EMPTY_RESOURCE_ARRAY = new IResource[0]; - public static final IFileState[] EMPTY_FILE_STATES = new IFileState[0]; -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/IManager.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/IManager.java deleted file mode 100644 index d02cf3141b1a..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/IManager.java +++ /dev/null @@ -1,19 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2000, - * 2005 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.internal.resources; - -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IProgressMonitor; - -public interface IManager { - public void shutdown(IProgressMonitor monitor) throws CoreException; - - public void startup(IProgressMonitor monitor) throws CoreException; -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/InternalTeamHook.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/InternalTeamHook.java deleted file mode 100644 index 1457ca51e62c..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/InternalTeamHook.java +++ /dev/null @@ -1,32 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2004, - * 2005 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM - Initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.internal.resources; - -import org.eclipse.che.core.internal.resources.Workspace; -import org.eclipse.core.resources.IProject; -import org.eclipse.core.resources.IResourceRuleFactory; -import org.eclipse.core.resources.team.TeamHook; - -/** - * The internal abstract superclass of all TeamHook implementations. This superclass provides access - * to internal non-API methods that are not available from the API package. Plugin developers should - * not subclass this class. - * - * @see TeamHook - */ -public class InternalTeamHook { - /* (non-Javadoc) - * Internal implementation of TeamHook#setRulesFor(IProject,IResourceRuleFactory) - */ - protected void setRuleFactory(IProject project, IResourceRuleFactory factory) { - Workspace workspace = ((Workspace) project.getWorkspace()); - ((Rules) workspace.getRuleFactory()).setRuleFactory(project, factory); - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/ModelObject.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/ModelObject.java deleted file mode 100644 index e5be8993c300..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/ModelObject.java +++ /dev/null @@ -1,39 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) - * 2012-2017 Red Hat, Inc. 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: Red Hat, Inc. - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.internal.resources; - -public abstract class ModelObject implements Cloneable { - protected String name; - - public ModelObject() { - super(); - } - - public ModelObject(String name) { - setName(name); - } - - @Override - public Object clone() { - try { - return super.clone(); - } catch (CloneNotSupportedException e) { - return null; // won't happen - } - } - - public String getName() { - return name; - } - - public void setName(String value) { - name = value; - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/OS.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/OS.java deleted file mode 100644 index d3efb63c692f..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/OS.java +++ /dev/null @@ -1,83 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2000, - * 2010 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.internal.resources; - -/** - * Captures platform specific attributes relevant to the core resources plugin. This class is not - * intended to be instantiated. - */ -public abstract class OS { - // private static final String INSTALLED_PLATFORM; - - public static final char[] INVALID_RESOURCE_CHARACTERS; - private static final String[] INVALID_RESOURCE_BASENAMES; - private static final String[] INVALID_RESOURCE_FULLNAMES; - - static { - // find out the OS being used - // setup the invalid names - // INSTALLED_PLATFORM = Platform.getOS(); - // if (INSTALLED_PLATFORM.equals(Platform.OS_WIN32)) { - // //valid names and characters taken from - // http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/naming_a_file.asp - // INVALID_RESOURCE_CHARACTERS = new char[] {'\\', '/', ':', '*', '?', '"', '<', '>', '|'}; - // INVALID_RESOURCE_BASENAMES = new String[] {"aux", "com1", "com2", "com3", "com4", - // //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ - // "com5", "com6", "com7", "com8", "com9", "con", "lpt1", "lpt2", //$NON-NLS-1$ - // //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$ //$NON-NLS-7$ - // //$NON-NLS-8$ - // "lpt3", "lpt4", "lpt5", "lpt6", "lpt7", "lpt8", "lpt9", "nul", "prn"}; //$NON-NLS-1$ - // //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$ //$NON-NLS-7$ - // //$NON-NLS-8$ //$NON-NLS-9$ - // Arrays.sort(INVALID_RESOURCE_BASENAMES); - // //CLOCK$ may be used if an extension is provided - // INVALID_RESOURCE_FULLNAMES = new String[] {"clock$"}; //$NON-NLS-1$ - // } else { - // only front slash and null char are invalid on UNIXes - // taken from http://www.faqs.org/faqs/unix-faq/faq/part2/section-2.html - INVALID_RESOURCE_CHARACTERS = - new char[] { - '/', '\0', - }; - INVALID_RESOURCE_BASENAMES = null; - INVALID_RESOURCE_FULLNAMES = null; - // } - } - - /** - * Returns true if the given name is a valid resource name on this operating system, and false - * otherwise. - */ - public static boolean isNameValid(String name) { - // . and .. have special meaning on all platforms - if (name.equals(".") || name.equals("..")) // $NON-NLS-1$ //$NON-NLS-2$ - return false; - // if (INSTALLED_PLATFORM.equals(Platform.OS_WIN32)) { - // //empty names are not valid - // final int length = name.length(); - // if (length == 0) - // return false; - // final char lastChar = name.charAt(length-1); - // // filenames ending in dot are not valid - // if (lastChar == '.') - // return false; - // // file names ending with whitespace are truncated (bug 118997) - // if (Character.isWhitespace(lastChar)) - // return false; - // int dot = name.indexOf('.'); - // //on windows, filename suffixes are not relevant to name validity - // String basename = dot == -1 ? name : name.substring(0, dot); - // if (Arrays.binarySearch(INVALID_RESOURCE_BASENAMES, basename.toLowerCase()) >= 0) - // return false; - // return Arrays.binarySearch(INVALID_RESOURCE_FULLNAMES, name.toLowerCase()) < 0; - // } - return true; - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/PreferenceInitializer.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/PreferenceInitializer.java deleted file mode 100644 index 6493d2132324..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/PreferenceInitializer.java +++ /dev/null @@ -1,80 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) - * 2012-2017 Red Hat, Inc. 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: Red Hat, Inc. - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.internal.resources; - -import org.eclipse.core.resources.ResourcesPlugin; -import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer; -import org.eclipse.core.runtime.preferences.DefaultScope; -import org.eclipse.core.runtime.preferences.IEclipsePreferences; - -/** @since 3.1 */ -public class PreferenceInitializer extends AbstractPreferenceInitializer { - - // internal preference keys - public static final String PREF_OPERATIONS_PER_SNAPSHOT = "snapshots.operations"; // $NON-NLS-1$ - public static final String PREF_DELTA_EXPIRATION = "delta.expiration"; // $NON-NLS-1$ - - // DEFAULTS - public static final boolean PREF_AUTO_REFRESH_DEFAULT = false; - public static final boolean PREF_LIGHTWEIGHT_AUTO_REFRESH_DEFAULT = false; - public static final boolean PREF_DISABLE_LINKING_DEFAULT = false; - public static final String PREF_ENCODING_DEFAULT = ""; // $NON-NLS-1$ - public static final boolean PREF_AUTO_BUILDING_DEFAULT = true; - public static final String PREF_BUILD_ORDER_DEFAULT = ""; // $NON-NLS-1$ - public static final int PREF_MAX_BUILD_ITERATIONS_DEFAULT = 10; - public static final boolean PREF_DEFAULT_BUILD_ORDER_DEFAULT = true; - public static final long PREF_SNAPSHOT_INTERVAL_DEFAULT = 5 * 60 * 1000L; // 5 min - public static final int PREF_OPERATIONS_PER_SNAPSHOT_DEFAULT = 100; - public static final boolean PREF_APPLY_FILE_STATE_POLICY_DEFAULT = true; - public static final long PREF_FILE_STATE_LONGEVITY_DEFAULT = 7 * 24 * 3600 * 1000L; // 7 days - public static final long PREF_MAX_FILE_STATE_SIZE_DEFAULT = 1024 * 1024L; // 1 MB - public static final int PREF_MAX_FILE_STATES_DEFAULT = 50; - public static final long PREF_DELTA_EXPIRATION_DEFAULT = 30 * 24 * 3600 * 1000L; // 30 days - - public PreferenceInitializer() { - super(); - } - - /* (non-Javadoc) - * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences() - */ - @Override - public void initializeDefaultPreferences() { - IEclipsePreferences node = DefaultScope.INSTANCE.getNode(ResourcesPlugin.PI_RESOURCES); - // auto-refresh default - node.putBoolean(ResourcesPlugin.PREF_AUTO_REFRESH, PREF_AUTO_REFRESH_DEFAULT); - node.putBoolean( - ResourcesPlugin.PREF_LIGHTWEIGHT_AUTO_REFRESH, PREF_LIGHTWEIGHT_AUTO_REFRESH_DEFAULT); - - // linked resources default - node.putBoolean(ResourcesPlugin.PREF_DISABLE_LINKING, PREF_DISABLE_LINKING_DEFAULT); - - // build manager defaults - node.putBoolean(ResourcesPlugin.PREF_AUTO_BUILDING, PREF_AUTO_BUILDING_DEFAULT); - node.put(ResourcesPlugin.PREF_BUILD_ORDER, PREF_BUILD_ORDER_DEFAULT); - node.putInt(ResourcesPlugin.PREF_MAX_BUILD_ITERATIONS, PREF_MAX_BUILD_ITERATIONS_DEFAULT); - node.putBoolean(ResourcesPlugin.PREF_DEFAULT_BUILD_ORDER, PREF_DEFAULT_BUILD_ORDER_DEFAULT); - - // history store defaults - node.putBoolean( - ResourcesPlugin.PREF_APPLY_FILE_STATE_POLICY, PREF_APPLY_FILE_STATE_POLICY_DEFAULT); - node.putLong(ResourcesPlugin.PREF_FILE_STATE_LONGEVITY, PREF_FILE_STATE_LONGEVITY_DEFAULT); - node.putLong(ResourcesPlugin.PREF_MAX_FILE_STATE_SIZE, PREF_MAX_FILE_STATE_SIZE_DEFAULT); - node.putInt(ResourcesPlugin.PREF_MAX_FILE_STATES, PREF_MAX_FILE_STATES_DEFAULT); - - // save manager defaults - node.putLong(ResourcesPlugin.PREF_SNAPSHOT_INTERVAL, PREF_SNAPSHOT_INTERVAL_DEFAULT); - node.putInt(PREF_OPERATIONS_PER_SNAPSHOT, PREF_OPERATIONS_PER_SNAPSHOT_DEFAULT); - node.putLong(PREF_DELTA_EXPIRATION, PREF_DELTA_EXPIRATION_DEFAULT); - - // encoding defaults - node.put(ResourcesPlugin.PREF_ENCODING, PREF_ENCODING_DEFAULT); - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/ResourceException.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/ResourceException.java deleted file mode 100644 index 068b68cbdf46..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/ResourceException.java +++ /dev/null @@ -1,99 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2000, - * 2014 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.internal.resources; - -import java.io.PrintStream; -import java.io.PrintWriter; -import org.eclipse.core.resources.IResourceStatus; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IStatus; - -/** - * A checked exception representing a failure. - * - *

Resource exceptions contain a status object describing the cause of the exception, and - * optionally the path of the resource where the failure occurred. - * - * @see IStatus - */ -public class ResourceException extends CoreException { - /** All serializable objects should have a stable serialVersionUID */ - private static final long serialVersionUID = 1L; - - public ResourceException(int code, IPath path, String message, Throwable exception) { - super(new ResourceStatus(code, path, message, exception)); - } - - /** - * Constructs a new exception with the given status object. - * - * @param status the status object to be associated with this exception - * @see IStatus - */ - public ResourceException(IStatus status) { - super(status); - } - - /** - * Prints a stack trace out for the exception, and any nested exception that it may have embedded - * in its Status object. - */ - @Override - public void printStackTrace() { - printStackTrace(System.err); - } - - /** - * Prints a stack trace out for the exception, and any nested exception that it may have embedded - * in its Status object. - */ - @Override - public void printStackTrace(PrintStream output) { - synchronized (output) { - IStatus status = getStatus(); - if (status.getException() != null) { - String path = "()"; // $NON-NLS-1$ - if (status instanceof IResourceStatus) - path = "(" + ((IResourceStatus) status).getPath() + ")"; // $NON-NLS-1$ //$NON-NLS-2$ - output.print( - getClass().getName() - + path - + "[" - + status.getCode() - + "]: "); // $NON-NLS-1$ //$NON-NLS-2$ - status.getException().printStackTrace(output); - } else super.printStackTrace(output); - } - } - - /** - * Prints a stack trace out for the exception, and any nested exception that it may have embedded - * in its Status object. - */ - @Override - public void printStackTrace(PrintWriter output) { - synchronized (output) { - IStatus status = getStatus(); - if (status.getException() != null) { - String path = "()"; // $NON-NLS-1$ - if (status instanceof IResourceStatus) - path = "(" + ((IResourceStatus) status).getPath() + ")"; // $NON-NLS-1$ //$NON-NLS-2$ - output.print( - getClass().getName() - + path - + "[" - + status.getCode() - + "]: "); // $NON-NLS-1$ //$NON-NLS-2$ - status.getException().printStackTrace(output); - } else super.printStackTrace(output); - } - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/ResourceStatus.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/ResourceStatus.java deleted file mode 100644 index 2ebfa15c26fd..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/ResourceStatus.java +++ /dev/null @@ -1,81 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2000, - * 2014 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.internal.resources; - -import org.eclipse.core.resources.IResourceStatus; -import org.eclipse.core.resources.ResourcesPlugin; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.Status; - -/** */ -public class ResourceStatus extends Status implements IResourceStatus { - IPath path; - - public ResourceStatus(int type, int code, IPath path, String message, Throwable exception) { - super(type, ResourcesPlugin.PI_RESOURCES, code, message, exception); - this.path = path; - } - - public ResourceStatus(int code, String message) { - this(getSeverity(code), code, null, message, null); - } - - public ResourceStatus(int code, IPath path, String message) { - this(getSeverity(code), code, path, message, null); - } - - public ResourceStatus(int code, IPath path, String message, Throwable exception) { - this(getSeverity(code), code, path, message, exception); - } - - /** @see IResourceStatus#getPath() */ - public IPath getPath() { - return path; - } - - protected static int getSeverity(int code) { - return code == 0 ? 0 : 1 << (code % 100 / 33); - } - - // for debug only - private String getTypeName() { - switch (getSeverity()) { - case IStatus.OK: - return "OK"; // $NON-NLS-1$ - case IStatus.ERROR: - return "ERROR"; // $NON-NLS-1$ - case IStatus.INFO: - return "INFO"; // $NON-NLS-1$ - case IStatus.WARNING: - return "WARNING"; // $NON-NLS-1$ - default: - return String.valueOf(getSeverity()); - } - } - - // for debug only - @Override - public String toString() { - StringBuffer sb = new StringBuffer(); - sb.append("[type: "); // $NON-NLS-1$ - sb.append(getTypeName()); - sb.append("], [path: "); // $NON-NLS-1$ - sb.append(getPath()); - sb.append("], [message: "); // $NON-NLS-1$ - sb.append(getMessage()); - sb.append("], [plugin: "); // $NON-NLS-1$ - sb.append(getPlugin()); - sb.append("], [exception: "); // $NON-NLS-1$ - sb.append(getException()); - sb.append("]\n"); // $NON-NLS-1$ - return sb.toString(); - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/Rules.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/Rules.java deleted file mode 100644 index d85e4a254331..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/Rules.java +++ /dev/null @@ -1,180 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) - * 2012-2017 Red Hat, Inc. 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: Red Hat, Inc. - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.internal.resources; - -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import org.eclipse.che.core.internal.resources.Workspace; -import org.eclipse.core.internal.events.ILifecycleListener; -import org.eclipse.core.internal.events.LifecycleEvent; -import org.eclipse.core.resources.IProject; -import org.eclipse.core.resources.IResource; -import org.eclipse.core.resources.IResourceRuleFactory; -import org.eclipse.core.resources.IWorkspaceRoot; -import org.eclipse.core.resources.team.ResourceRuleFactory; -import org.eclipse.core.resources.team.TeamHook; -import org.eclipse.core.runtime.jobs.ISchedulingRule; -import org.eclipse.core.runtime.jobs.MultiRule; - -/** - * Class for calculating scheduling rules for resource changing operations. This factory delegates - * to the TeamHook to obtain an appropriate factory for the resource that the operation is proposing - * to modify. - */ -public class Rules implements IResourceRuleFactory, ILifecycleListener { - private final ResourceRuleFactory defaultFactory = new ResourceRuleFactory() { - /**/ - }; - /** Map of project names to the factory for that project. */ - private final Map projectsToRules = - Collections.synchronizedMap(new HashMap()); - - private final TeamHook teamHook; - private final IWorkspaceRoot root; - - /** - * Creates a new scheduling rule factory for the given workspace - * - * @param workspace - */ - Rules(Workspace workspace) { - this.root = workspace.getRoot(); - this.teamHook = workspace.getTeamHook(); - workspace.addLifecycleListener(this); - } - - /** Obtains the scheduling rule from the appropriate factory for a build operation. */ - public ISchedulingRule buildRule() { - // team hook currently cannot change this rule - return root; - } - - /** Obtains the scheduling rule from the appropriate factories for a copy operation. */ - public ISchedulingRule copyRule(IResource source, IResource destination) { - if (source.getType() == IResource.ROOT || destination.getType() == IResource.ROOT) return root; - // source is not modified, destination is created - return factoryFor(destination).copyRule(source, destination); - } - - /** Obtains the scheduling rule from the appropriate factory for a create operation. */ - public ISchedulingRule createRule(IResource resource) { - if (resource.getType() == IResource.ROOT) return root; - return factoryFor(resource).createRule(resource); - } - - /** Obtains the scheduling rule from the appropriate factory for a delete operation. */ - public ISchedulingRule deleteRule(IResource resource) { - if (resource.getType() == IResource.ROOT) return root; - return factoryFor(resource).deleteRule(resource); - } - - /** Returns the scheduling rule factory for the given resource */ - private IResourceRuleFactory factoryFor(IResource destination) { - IResourceRuleFactory fac = projectsToRules.get(destination.getFullPath().segment(0)); - if (fac == null) { - // use the default factory if the project is not yet accessible - if (!destination.getProject().isAccessible()) return defaultFactory; - // ask the team hook to supply one - fac = teamHook.getRuleFactory(destination.getProject()); - projectsToRules.put(destination.getFullPath().segment(0), fac); - } - return fac; - } - - /* (non-Javadoc) - * @see org.eclipse.core.internal.events.ILifecycleListener#handleEvent(org.eclipse.core.internal.events.LifecycleEvent) - */ - public void handleEvent(LifecycleEvent event) { - // clear resource rule factory for projects that are about to be closed - // or deleted. It is ok to do this during a PRE event because the rule - // has already been obtained at this point. - switch (event.kind) { - case LifecycleEvent.PRE_PROJECT_CLOSE: - case LifecycleEvent.PRE_PROJECT_DELETE: - case LifecycleEvent.PRE_PROJECT_MOVE: - setRuleFactory((IProject) event.resource, null); - } - } - - /** Obtains the scheduling rule from the appropriate factory for a charset change operation. */ - public ISchedulingRule charsetRule(IResource resource) { - if (resource.getType() == IResource.ROOT) return null; - return factoryFor(resource).charsetRule(resource); - } - - /** - * Obtains the scheduling rule from the appropriate factory for a derived flag change operation. - */ - public ISchedulingRule derivedRule(IResource resource) { - // team hook currently cannot change this rule - return null; - } - - /** Obtains the scheduling rule from the appropriate factory for a marker change operation. */ - public ISchedulingRule markerRule(IResource resource) { - // team hook currently cannot change this rule - return null; - } - - /** Obtains the scheduling rule from the appropriate factory for a modify operation. */ - public ISchedulingRule modifyRule(IResource resource) { - if (resource.getType() == IResource.ROOT) return root; - return factoryFor(resource).modifyRule(resource); - } - - /** Obtains the scheduling rule from the appropriate factories for a move operation. */ - public ISchedulingRule moveRule(IResource source, IResource destination) { - if (source.getType() == IResource.ROOT || destination.getType() == IResource.ROOT) return root; - // treat a move across projects as a create on the destination and a delete on the source - if (!source.getFullPath().segment(0).equals(destination.getFullPath().segment(0))) - return MultiRule.combine( - modifyRule(source.getProject()), modifyRule(destination.getProject())); - return factoryFor(source).moveRule(source, destination); - } - - /** Obtains the scheduling rule from the appropriate factory for a refresh operation. */ - public ISchedulingRule refreshRule(IResource resource) { - if (resource.getType() == IResource.ROOT) return root; - return factoryFor(resource).refreshRule(resource); - } - - /* (non-javadoc) - * Implements TeamHook#setRuleFactory - */ - void setRuleFactory(IProject project, IResourceRuleFactory factory) { - if (factory == null) projectsToRules.remove(project.getName()); - else projectsToRules.put(project.getName(), factory); - } - - /** Combines rules for each parameter to validateEdit from the corresponding rule factories. */ - public ISchedulingRule validateEditRule(IResource[] resources) { - if (resources.length == 0) return null; - // optimize rule for single file - if (resources.length == 1) { - if (resources[0].getType() == IResource.ROOT) return root; - return factoryFor(resources[0]).validateEditRule(resources); - } - // gather rules for each resource from appropriate factory - HashSet rules = new HashSet(); - IResource[] oneResource = new IResource[1]; - for (int i = 0; i < resources.length; i++) { - if (resources[i].getType() == IResource.ROOT) return root; - oneResource[0] = resources[i]; - ISchedulingRule rule = factoryFor(resources[i]).validateEditRule(oneResource); - if (rule != null) rules.add(rule); - } - if (rules.isEmpty()) return null; - if (rules.size() == 1) return rules.iterator().next(); - ISchedulingRule[] ruleArray = rules.toArray(new ISchedulingRule[rules.size()]); - return new MultiRule(ruleArray); - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/WorkspaceDescription.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/WorkspaceDescription.java deleted file mode 100644 index 0c6bb4c783e3..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/WorkspaceDescription.java +++ /dev/null @@ -1,175 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2000, - * 2012 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.internal.resources; - -import org.eclipse.core.resources.IWorkspaceDescription; -import org.eclipse.core.resources.ResourcesPlugin; -import org.eclipse.core.runtime.preferences.DefaultScope; -import org.eclipse.core.runtime.preferences.IEclipsePreferences; - -/** @see IWorkspaceDescription */ -public class WorkspaceDescription extends ModelObject implements IWorkspaceDescription { - protected boolean autoBuilding; - protected String[] buildOrder; - protected long fileStateLongevity; - protected int maxBuildIterations; - protected int maxFileStates; - protected long maxFileStateSize; - protected boolean applyFileStatePolicy; - private long snapshotInterval; - protected int operationsPerSnapshot; - protected long deltaExpiration; - - public WorkspaceDescription(String name) { - super(name); - // initialize based on the values in the default preferences - IEclipsePreferences node = DefaultScope.INSTANCE.getNode(ResourcesPlugin.PI_RESOURCES); - autoBuilding = - node.getBoolean( - ResourcesPlugin.PREF_AUTO_BUILDING, PreferenceInitializer.PREF_AUTO_BUILDING_DEFAULT); - maxBuildIterations = - node.getInt( - ResourcesPlugin.PREF_MAX_BUILD_ITERATIONS, - PreferenceInitializer.PREF_MAX_BUILD_ITERATIONS_DEFAULT); - applyFileStatePolicy = - node.getBoolean( - ResourcesPlugin.PREF_APPLY_FILE_STATE_POLICY, - PreferenceInitializer.PREF_APPLY_FILE_STATE_POLICY_DEFAULT); - fileStateLongevity = - node.getLong( - ResourcesPlugin.PREF_FILE_STATE_LONGEVITY, - PreferenceInitializer.PREF_FILE_STATE_LONGEVITY_DEFAULT); - maxFileStates = - node.getInt( - ResourcesPlugin.PREF_MAX_FILE_STATES, - PreferenceInitializer.PREF_MAX_FILE_STATES_DEFAULT); - maxFileStateSize = - node.getLong( - ResourcesPlugin.PREF_MAX_FILE_STATE_SIZE, - PreferenceInitializer.PREF_MAX_FILE_STATE_SIZE_DEFAULT); - snapshotInterval = - node.getLong( - ResourcesPlugin.PREF_SNAPSHOT_INTERVAL, - PreferenceInitializer.PREF_SNAPSHOT_INTERVAL_DEFAULT); - operationsPerSnapshot = - node.getInt( - PreferenceInitializer.PREF_OPERATIONS_PER_SNAPSHOT, - PreferenceInitializer.PREF_OPERATIONS_PER_SNAPSHOT_DEFAULT); - deltaExpiration = - node.getLong( - PreferenceInitializer.PREF_DELTA_EXPIRATION, - PreferenceInitializer.PREF_DELTA_EXPIRATION_DEFAULT); - } - - /** @see IWorkspaceDescription#getBuildOrder() */ - public String[] getBuildOrder() { - return getBuildOrder(true); - } - - public String[] getBuildOrder(boolean makeCopy) { - if (buildOrder == null) return null; - return makeCopy ? (String[]) buildOrder.clone() : buildOrder; - } - - public long getDeltaExpiration() { - return deltaExpiration; - } - - public void setDeltaExpiration(long value) { - deltaExpiration = value; - } - - /** @see IWorkspaceDescription#getFileStateLongevity() */ - public long getFileStateLongevity() { - return fileStateLongevity; - } - - /** @see IWorkspaceDescription#getMaxBuildIterations() */ - public int getMaxBuildIterations() { - return maxBuildIterations; - } - - /** @see IWorkspaceDescription#getMaxFileStates() */ - public int getMaxFileStates() { - return maxFileStates; - } - - /** @see IWorkspaceDescription#getMaxFileStateSize() */ - public long getMaxFileStateSize() { - return maxFileStateSize; - } - - /** @see IWorkspaceDescription#isApplyFileStatePolicy() */ - public boolean isApplyFileStatePolicy() { - return applyFileStatePolicy; - } - - public int getOperationsPerSnapshot() { - return operationsPerSnapshot; - } - - /** @see IWorkspaceDescription#getSnapshotInterval() */ - public long getSnapshotInterval() { - return snapshotInterval; - } - - public void internalSetBuildOrder(String[] value) { - buildOrder = value; - } - - /** @see IWorkspaceDescription#isAutoBuilding() */ - public boolean isAutoBuilding() { - return autoBuilding; - } - - public void setOperationsPerSnapshot(int value) { - operationsPerSnapshot = value; - } - - /** @see IWorkspaceDescription#setAutoBuilding(boolean) */ - public void setAutoBuilding(boolean value) { - autoBuilding = value; - } - - /** @see IWorkspaceDescription#setBuildOrder(String[]) */ - public void setBuildOrder(String[] value) { - buildOrder = (value == null) ? null : (String[]) value.clone(); - } - - /** @see IWorkspaceDescription#setFileStateLongevity(long) */ - public void setFileStateLongevity(long time) { - fileStateLongevity = time; - } - - /** @see IWorkspaceDescription#setMaxBuildIterations(int) */ - public void setMaxBuildIterations(int number) { - maxBuildIterations = number; - } - - /** @see IWorkspaceDescription#setMaxFileStates(int) */ - public void setMaxFileStates(int number) { - maxFileStates = number; - } - - /** @see IWorkspaceDescription#setMaxFileStateSize(long) */ - public void setMaxFileStateSize(long size) { - maxFileStateSize = size; - } - - /** @see IWorkspaceDescription#setApplyFileStatePolicy(boolean) */ - public void setApplyFileStatePolicy(boolean apply) { - applyFileStatePolicy = apply; - } - - /** @see IWorkspaceDescription#setSnapshotInterval(long) */ - public void setSnapshotInterval(long snapshotInterval) { - this.snapshotInterval = snapshotInterval; - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/mapping/ModelProviderManager.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/mapping/ModelProviderManager.java deleted file mode 100644 index 3c7bbc7d1ea6..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/resources/mapping/ModelProviderManager.java +++ /dev/null @@ -1,73 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2005, - * 2011 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation James Blackburn (Broadcom - * Corp.) - ongoing development - * ***************************************************************************** - */ -package org.eclipse.core.internal.resources.mapping; - -import java.util.Map; -import org.eclipse.core.resources.mapping.IModelProviderDescriptor; -import org.eclipse.core.resources.mapping.ModelProvider; -import org.eclipse.core.runtime.CoreException; - -public class ModelProviderManager { - - private static Map descriptors; - private static ModelProviderManager instance; - - public static synchronized ModelProviderManager getDefault() { - if (instance == null) { - instance = new ModelProviderManager(); - } - return instance; - } - - private void detectCycles() { - // TODO Auto-generated method stub - - } - - public IModelProviderDescriptor getDescriptor(String id) { - lazyInitialize(); - return descriptors.get(id); - } - - public IModelProviderDescriptor[] getDescriptors() { - lazyInitialize(); - return descriptors.values().toArray(new IModelProviderDescriptor[descriptors.size()]); - } - - public ModelProvider getModelProvider(String modelProviderId) throws CoreException { - IModelProviderDescriptor desc = getDescriptor(modelProviderId); - if (desc == null) return null; - return desc.getModelProvider(); - } - - protected void lazyInitialize() { - if (descriptors != null) return; - // IExtensionPoint point = - // Platform.getExtensionRegistry().getExtensionPoint(ResourcesPlugin.PI_RESOURCES, - // ResourcesPlugin.PT_MODEL_PROVIDERS); - // IExtension[] extensions = point.getExtensions(); - // descriptors = new HashMap(extensions.length * 2 + 1); - // for (int i = 0, imax = extensions.length; i < imax; i++) { - // IModelProviderDescriptor desc = null; - // try { - // desc = new ModelProviderDescriptor(extensions[i]); - // } catch (CoreException e) { - // Policy.log(e); - // } - // if (desc != null) - // descriptors.put(desc.getId(), desc); - // } - // //do cycle detection now so it only has to be done once - // //cycle detection on a graph subset is a pain - // detectCycles(); - throw new UnsupportedOperationException("lazyInitialize"); - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/utils/Messages.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/utils/Messages.java deleted file mode 100644 index a81195bff9da..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/utils/Messages.java +++ /dev/null @@ -1,327 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2005, - * 2011 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM - Initial API and implementation Serge Beauchamp (Freescale Semiconductor) - - * [252996] add resource filtering Serge Beauchamp (Freescale Semiconductor) - [229633] Group and - * Project Path Variable Support Francis Lynch (Wind River) - [301563] Save and load tree snapshots - * Martin Oberhuber (Wind River) - [306575] Save snapshot location with project - * ***************************************************************************** - */ -package org.eclipse.core.internal.utils; - -import org.eclipse.osgi.util.NLS; - -public class Messages extends NLS { - private static final String BUNDLE_NAME = - "org.eclipse.core.internal.utils.messages"; // $NON-NLS-1$ - - // dtree - public static String dtree_immutable; - public static String dtree_malformedTree; - public static String dtree_missingChild; - public static String dtree_notFound; - public static String dtree_notImmutable; - public static String dtree_reverse; - public static String dtree_subclassImplement; - public static String dtree_switchError; - - // events - public static String events_builderError; - public static String events_building_0; - public static String events_building_1; - public static String events_errors; - public static String events_instantiate_1; - public static String events_invoking_1; - public static String events_invoking_2; - public static String events_skippingBuilder; - public static String events_unknown; - - public static String history_copyToNull; - public static String history_copyToSelf; - public static String history_errorContentDescription; - public static String history_notValid; - public static String history_problemsCleaning; - - public static String links_creating; - public static String links_errorLinkReconcile; - public static String links_invalidLocation; - public static String links_localDoesNotExist; - public static String links_locationOverlapsLink; - public static String links_locationOverlapsProject; - public static String links_natureVeto; - public static String links_noPath; - public static String links_overlappingResource; - public static String links_parentNotAccessible; - public static String links_notFileFolder; - public static String links_updatingDuplicate; - public static String links_vetoNature; - public static String links_workspaceVeto; - public static String links_wrongLocalType; - public static String links_resourceIsNotALink; - public static String links_setLocation; - - public static String group_invalidParent; - public static String filters_missingFilterType; - - // local store - public static String localstore_copying; - public static String localstore_copyProblem; - public static String localstore_couldnotDelete; - public static String localstore_couldNotMove; - public static String localstore_couldNotRead; - public static String localstore_couldNotWrite; - public static String localstore_couldNotWriteReadOnly; - public static String localstore_deleteProblem; - public static String localstore_deleting; - public static String localstore_failedReadDuringWrite; - public static String localstore_fileExists; - public static String localstore_fileNotFound; - public static String localstore_locationUndefined; - public static String localstore_refreshing; - public static String localstore_refreshingRoot; - public static String localstore_resourceExists; - public static String localstore_resourceDoesNotExist; - public static String localstore_resourceIsOutOfSync; - - // resource mappings and models - public static String mapping_invalidDef; - public static String mapping_wrongType; - public static String mapping_noIdentifier; - public static String mapping_validate; - public static String mapping_multiProblems; - - // internal.resources - public static String natures_duplicateNature; - public static String natures_hasCycle; - public static String natures_invalidDefinition; - public static String natures_invalidRemoval; - public static String natures_invalidSet; - public static String natures_missingIdentifier; - public static String natures_missingNature; - public static String natures_missingPrerequisite; - public static String natures_multipleSetMembers; - - public static String pathvar_beginLetter; - public static String pathvar_invalidChar; - public static String pathvar_invalidValue; - public static String pathvar_length; - public static String pathvar_undefined; - public static String pathvar_whitespace; - - public static String preferences_deleteException; - public static String preferences_loadException; - public static String preferences_operationCanceled; - public static String preferences_removeNodeException; - public static String preferences_clearNodeException; - public static String preferences_saveProblems; - public static String preferences_syncException; - - public static String projRead_badArguments; - public static String projRead_badFilterName; - public static String projRead_badFilterID; - public static String projRead_badFilterType; - public static String projRead_badFilterType2; - public static String projRead_badID; - public static String projRead_badLinkLocation; - public static String projRead_badLinkName; - public static String projRead_badLinkType; - public static String projRead_badLinkType2; - public static String projRead_badLocation; - public static String projRead_badSnapshotLocation; - public static String projRead_cannotReadSnapshot; - public static String projRead_emptyFilterName; - public static String projRead_emptyLinkName; - public static String projRead_emptyVariableName; - public static String projRead_failureReadingProjectDesc; - public static String projRead_notProjectDescription; - public static String projRead_whichKey; - public static String projRead_whichValue; - public static String projRead_missingProjectName; - - public static String properties_couldNotClose; - public static String properties_qualifierIsNull; - public static String properties_readProperties; - public static String properties_valueTooLong; - - // auto-refresh - public static String refresh_installError; - public static String refresh_jobName; - public static String refresh_pollJob; - public static String refresh_refreshErr; - public static String refresh_task; - - public static String resources_cannotModify; - public static String resources_changeInAdd; - public static String resources_charsetBroadcasting; - public static String resources_charsetUpdating; - public static String resources_closing_0; - public static String resources_closing_1; - public static String resources_copyDestNotSub; - public static String resources_copying; - public static String resources_copying_0; - public static String resources_copyNotMet; - public static String resources_copyProblem; - public static String resources_couldnotDelete; - public static String resources_create; - public static String resources_creating; - public static String resources_deleteMeta; - public static String resources_deleteProblem; - public static String resources_deleting; - public static String resources_deleting_0; - public static String resources_destNotNull; - public static String resources_errorContentDescription; - public static String resources_errorDeleting; - public static String resources_errorMarkersDelete; - public static String resources_errorMarkersMove; - public static String resources_wrongMarkerAttributeValueType; - public static String resources_errorMembers; - public static String resources_errorMoving; - public static String resources_errorMultiRefresh; - public static String resources_errorNature; - public static String resources_errorPropertiesMove; - public static String resources_errorReadProject; - public static String resources_errorRefresh; - public static String resources_errorValidator; - public static String resources_errorVisiting; - public static String resources_existsDifferentCase; - public static String resources_existsLocalDifferentCase; - public static String resources_exMasterTable; - public static String resources_exReadProjectLocation; - public static String resources_exSafeRead; - public static String resources_exSafeSave; - public static String resources_exSaveMaster; - public static String resources_exSaveProjectLocation; - public static String resources_fileExists; - public static String resources_fileToProj; - public static String resources_flushingContentDescriptionCache; - public static String resources_folderOverFile; - public static String resources_format; - public static String resources_initHook; - public static String resources_initTeamHook; - public static String resources_initValidator; - public static String resources_invalidCharInName; - public static String resources_invalidCharInPath; - public static String resources_invalidName; - public static String resources_invalidPath; - public static String resources_invalidProjDesc; - public static String resources_invalidResourceName; - public static String resources_invalidRoot; - public static String resources_markerNotFound; - public static String resources_missingProjectMeta; - public static String resources_missingProjectMetaRepaired; - public static String resources_moveDestNotSub; - public static String resources_moveMeta; - public static String resources_moveNotMet; - public static String resources_moveNotProject; - public static String resources_moveProblem; - public static String resources_moveRoot; - public static String resources_moving; - public static String resources_moving_0; - public static String resources_mustBeAbsolute; - public static String resources_mustBeLocal; - public static String resources_mustBeOpen; - public static String resources_mustExist; - public static String resources_mustNotExist; - public static String resources_nameEmpty; - public static String resources_nameNull; - public static String resources_natureClass; - public static String resources_natureDeconfig; - public static String resources_natureExtension; - public static String resources_natureFormat; - public static String resources_natureImplement; - public static String resources_notChild; - public static String resources_oneHook; - public static String resources_oneTeamHook; - public static String resources_oneValidator; - public static String resources_opening_1; - public static String resources_overlapWorkspace; - public static String resources_overlapProject; - public static String resources_pathNull; - public static String resources_projectDesc; - public static String resources_projectDescSync; - public static String resources_projectMustNotBeOpen; - public static String resources_projectPath; - public static String resources_pruningHistory; - public static String resources_reading; - public static String resources_readingEncoding; - public static String resources_readingSnap; - public static String resources_readMarkers; - public static String resources_readMeta; - public static String resources_readMetaWrongVersion; - public static String resources_readOnly; - public static String resources_readOnly2; - public static String resources_readProjectMeta; - public static String resources_readProjectTree; - public static String resources_readSync; - public static String resources_readWorkspaceMeta; - public static String resources_readWorkspaceMetaValue; - public static String resources_readWorkspaceSnap; - public static String resources_readWorkspaceTree; - public static String resources_refreshing; - public static String resources_refreshingRoot; - public static String resources_resetMarkers; - public static String resources_resetSync; - public static String resources_resourcePath; - public static String resources_saveOp; - public static String resources_saveProblem; - public static String resources_saveWarnings; - public static String resources_saving_0; - public static String resources_savingEncoding; - public static String resources_setDesc; - public static String resources_setLocal; - public static String resources_settingCharset; - public static String resources_settingContents; - public static String resources_settingDefaultCharsetContainer; - public static String resources_settingDerivedFlag; - public static String resources_shutdown; - public static String resources_shutdownProblems; - public static String resources_snapInit; - public static String resources_snapRead; - public static String resources_snapRequest; - public static String resources_snapshot; - public static String resources_startupProblems; - public static String resources_touch; - public static String resources_updating; - public static String resources_updatingEncoding; - public static String resources_workspaceClosed; - public static String resources_workspaceOpen; - public static String resources_writeMeta; - public static String resources_writeWorkspaceMeta; - public static String resources_errorResourceIsFiltered; - - public static String synchronizer_partnerNotRegistered; - - // URL - public static String url_badVariant; - public static String url_couldNotResolve_projectDoesNotExist; - public static String url_couldNotResolve_URLProtocolHandlerCanNotResolveURL; - public static String url_couldNotResolve_resourceLocationCanNotBeDetermined; - - // utils - public static String utils_clone; - public static String utils_stringJobName; - // watson - public static String watson_elementNotFound; - public static String watson_illegalSubtree; - public static String watson_immutable; - public static String watson_noModify; - public static String watson_nullArg; - public static String watson_unknown; - - // auto-refresh win32 native - public static String WM_beginTask; - public static String WM_errCloseHandle; - public static String WM_errCreateHandle; - public static String WM_errFindChange; - public static String WM_errors; - public static String WM_jobName; - public static String WM_nativeErr; - - static { - // initialize resource bundles - NLS.initializeMessages(BUNDLE_NAME, Messages.class); - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/utils/WrappedRuntimeException.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/utils/WrappedRuntimeException.java deleted file mode 100644 index 864584ac953b..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/utils/WrappedRuntimeException.java +++ /dev/null @@ -1,32 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2000, - * 2014 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.internal.utils; - -public class WrappedRuntimeException extends RuntimeException { - - /** All serializable objects should have a stable serialVersionUID */ - private static final long serialVersionUID = 1L; - - private Throwable target; - - public WrappedRuntimeException(Throwable target) { - super(); - this.target = target; - } - - public Throwable getTargetException() { - return this.target; - } - - @Override - public String getMessage() { - return target.getMessage(); - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/watson/IElementComparator.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/watson/IElementComparator.java deleted file mode 100644 index 92568ce6fc3a..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/watson/IElementComparator.java +++ /dev/null @@ -1,21 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2000, - * 2005 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.internal.watson; - -import org.eclipse.core.internal.dtree.IComparator; - -/** - * This interface allows clients of the element tree to specify how element infos are compared, and - * thus how element tree deltas are created. - */ -public interface IElementComparator extends IComparator { - /** The kinds of changes */ - public int K_NO_CHANGE = 0; -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/watson/IPathRequestor.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/watson/IPathRequestor.java deleted file mode 100644 index 28a14f17d31e..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/internal/watson/IPathRequestor.java +++ /dev/null @@ -1,22 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2000, - * 2005 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.internal.watson; - -import org.eclipse.core.runtime.IPath; - -/** - * Callback interface so visitors can request the path of the object they are visiting. This avoids - * creating paths when they are not needed. - */ -public interface IPathRequestor { - public IPath requestPath(); - - public String requestName(); -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/FileInfoMatcherDescription.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/FileInfoMatcherDescription.java deleted file mode 100644 index 3f3676df2bfb..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/FileInfoMatcherDescription.java +++ /dev/null @@ -1,66 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) - * 2012-2017 Red Hat, Inc. 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: Red Hat, Inc. - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.resources; - -/** - * A description of a file info matcher. - * - * @since 3.6 - */ -public final class FileInfoMatcherDescription { - - private String id; - - private Object arguments; - - public FileInfoMatcherDescription(String id, Object arguments) { - super(); - this.id = id; - this.arguments = arguments; - } - - public Object getArguments() { - return arguments; - } - - public String getId() { - return id; - } - - /* (non-Javadoc) - * @see java.lang.Object#hashCode() - */ - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((arguments == null) ? 0 : arguments.hashCode()); - result = prime * result + ((id == null) ? 0 : id.hashCode()); - return result; - } - - /* (non-Javadoc) - * @see java.lang.Object#equals(java.lang.Object) - */ - @Override - public boolean equals(Object obj) { - if (this == obj) return true; - if (obj == null) return false; - if (getClass() != obj.getClass()) return false; - FileInfoMatcherDescription other = (FileInfoMatcherDescription) obj; - if (arguments == null) { - if (other.arguments != null) return false; - } else if (!arguments.equals(other.arguments)) return false; - if (id == null) { - if (other.id != null) return false; - } else if (!id.equals(other.id)) return false; - return true; - } -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IBuildConfiguration.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IBuildConfiguration.java deleted file mode 100644 index d1f7c9d96302..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IBuildConfiguration.java +++ /dev/null @@ -1,69 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2010, - * 2011 Broadcom Corporation and others. All rights reserved. This program and the accompanying - * materials are made available under the terms of the Eclipse Public License v1.0 which accompanies - * this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: Broadcom Corporation - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.resources; - -import org.eclipse.core.runtime.IAdaptable; - -/** - * Build Configurations provide a mechanism for orthogonal configuration specific builds within a - * single project. The resources plugin maintains build deltas per interested builder, per - * configuration, and allow build configurations to reference each other. - * - *

All projects have at least one build configuration. By default this has name {@link - * #DEFAULT_CONFIG_NAME}. One configuration in the project is defined to be 'active'. The active - * configuration is built by default. If unset, the active configuration defaults to the first - * configuration in the project. - * - *

Build configurations are created and set on the project description using: {@link - * IProjectDescription#setBuildConfigs(String[])}. Build configurations set on Projects must have - * unique non-null names. - * - *

When a project is built, a specific configuration is built. This configuration is passed to - * the builders so they can adapt their behavior appropriately. Builders which don't care about - * configurations may ignore this, and work as before. - * - *

Build configuration can reference other builds configurations. These references are created - * using {@link IWorkspace#newBuildConfig(String, String)}, and set on the referencing project with - * {@link IProjectDescription#setBuildConfigReferences(String, IBuildConfiguration[])}. A referenced - * build configuration may have a null configuration name which is resolved to the - * referenced project's current active build configuration at build time. - * - *

Workspace build will ensure that the projects are built in an appropriate order as defined by - * the reference graph. - * - * @see IWorkspace#newBuildConfig(String, String) - * @see IProjectDescription#setActiveBuildConfig(String) - * @see IProjectDescription#setBuildConfigs(String[]) - * @see IProjectDescription#setBuildConfigReferences(String, IBuildConfiguration[]) - * @noimplement This interface is not intended to be implemented by clients. - * @noextend This interface is not intended to be extended by clients. - * @since 3.7 - */ -public interface IBuildConfiguration extends IAdaptable { - - /** The Id of the default build configuration */ - public static final String DEFAULT_CONFIG_NAME = ""; // $NON-NLS-1$ - - /** @return the project that the config is for; never null. */ - public IProject getProject(); - - /** - * Returns the human readable name of this build configuration. If this {@link - * IBuildConfiguration} is set on a Project, this can never be null. - * - *

If this IBuildConfiguration is being used as a reference to a build configuration in another - * project, this may be null. Such build configuration references are resolved to the current - * active configuration at build time. - * - * @return the name of the configuration; or null if this is a reference to the active - * configuration - */ - public String getName(); -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/ICommand.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/ICommand.java deleted file mode 100644 index 87cabae22885..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/ICommand.java +++ /dev/null @@ -1,138 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2000, - * 2010 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation - * ***************************************************************************** - */ -package org.eclipse.core.resources; - -import java.util.Map; -import org.eclipse.core.runtime.IProgressMonitor; - -/** - * A builder command names a builder and supplies a table of name-value argument pairs. - * - *

Changes to a command will only take effect if the modified command is installed into a project - * description via {@link IProjectDescription#setBuildSpec(ICommand[])}. - * - * @see IProjectDescription - * @noimplement This interface is not intended to be implemented by clients. - * @noextend This interface is not intended to be extended by clients. - */ -public interface ICommand { - - /** - * Returns a table of the arguments for this command, or null if there are no - * arguments. The argument names and values are both strings. - * - * @return a table of command arguments (key type : String value type : String - * ), or null - * @see #setArguments(Map) - */ - public Map getArguments(); - - /** - * Returns the name of the builder to run for this command, or null if the name has - * not been set. - * - * @return the name of the builder, or null if not set - * @see #setBuilderName(String) - */ - public String getBuilderName(); - - /** - * Returns whether this build command responds to the given kind of build. - * - *

By default, build commands respond to all kinds of builds. - * - * @param kind One of the *_BUILD constants defined on IncrementalProjectBuilder - * - * @return true if this build command responds to the specified kind of build, and - * false otherwise. - * @see #setBuilding(int, boolean) - * @since 3.1 - */ - public boolean isBuilding(int kind); - - /** - * Returns whether this command allows configuring of what kinds of builds it responds to. By - * default, commands are only configurable if the corresponding builder defines the {@link - * #isConfigurable} attribute in its builder extension declaration. A command that is not - * configurable will always respond to all kinds of builds. - * - * @return true If this command allows configuration of what kinds of builds it - * responds to, and false otherwise. - * @see #setBuilding(int, boolean) - * @since 3.1 - */ - public boolean isConfigurable(); - - /** - * Sets this command's arguments to be the given table of name-values pairs, or to null - * if there are no arguments. The argument names and values are both strings. - * - *

Individual builders specify their argument expectations. - * - *

Note that modifications to the arguments of a command being used in a running builder may - * affect the run of that builder but will not affect any subsequent runs. To change a command - * permanently you must install the command into the relevant project build spec using {@link - * IProjectDescription#setBuildSpec(ICommand[])}. - * - * @param args a table of command arguments (keys and values must both be of type String - * ), or null - * @see #getArguments() - */ - public void setArguments(Map args); - - /** - * Sets the name of the builder to run for this command. - * - *

The builder name comes from the extension that plugs in to the standard - * org.eclipse.core.resources.builders extension point. - * - * @param builderName the name of the builder - * @see #getBuilderName() - */ - public void setBuilderName(String builderName); - - /** - * Specifies whether this build command responds to the provided kind of build. - * - *

When a command is configured to not respond to a given kind of build, the builder instance - * will not be called when a build of that kind is initiated. - * - *

This method has no effect if this build command does not allow its build kinds to be - * configured. - * - *

Note: - * - *

- * - * @param kind One of the *_BUILD constants defined on IncrementalProjectBuilder - * - * @param value true if this build command responds to the specified kind of build, - * and false otherwise. - * @see #isBuilding(int) - * @see #isConfigurable() - * @see IWorkspace#build(int, IProgressMonitor) - * @see IProject#build(int, IProgressMonitor) - * @see IncrementalProjectBuilder#FULL_BUILD - * @see IncrementalProjectBuilder#INCREMENTAL_BUILD - * @see IncrementalProjectBuilder#AUTO_BUILD - * @see IncrementalProjectBuilder#CLEAN_BUILD - * @since 3.1 - */ - public void setBuilding(int kind, boolean value); -} diff --git a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IContainer.java b/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IContainer.java deleted file mode 100644 index 18489eb8441b..000000000000 --- a/plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IContainer.java +++ /dev/null @@ -1,511 +0,0 @@ -/** - * ***************************************************************************** Copyright (c) 2000, - * 2014 IBM Corporation and others. All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 which accompanies this - * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - * - *

Contributors: IBM Corporation - initial API and implementation Serge Beauchamp (Freescale - * Semiconductor) - [252996] add addFilter/removeFilter/getFilters - * ***************************************************************************** - */ -package org.eclipse.core.resources; - -import org.eclipse.core.filesystem.IFileInfo; -import org.eclipse.core.runtime.*; - -/** - * Interface for resources which may contain other resources (termed its members). While - * the workspace itself is not considered a container in this sense, the workspace root resource is - * a container. - * - *

Containers implement the IAdaptable interface; extensions are managed by the - * platform's adapter manager. - * - * @see Platform#getAdapterManager() - * @see IProject - * @see IFolder - * @see IWorkspaceRoot - * @noimplement This interface is not intended to be implemented by clients. - * @noextend This interface is not intended to be extended by clients. - */ -public interface IContainer extends IResource, IAdaptable { - - /*==================================================================== - * Constants defining which members are wanted: - *====================================================================*/ - - /** - * Member constant (bit mask value 1) indicating that phantom member resources are to be included. - * - * @see IResource#isPhantom() - * @since 2.0 - */ - public static final int INCLUDE_PHANTOMS = 1; - - /** - * Member constant (bit mask value 2) indicating that team private members are to be included. - * - * @see IResource#isTeamPrivateMember() - * @since 2.0 - */ - public static final int INCLUDE_TEAM_PRIVATE_MEMBERS = 2; - - /** - * Member constant (bit mask value 4) indicating that derived resources are to be excluded. - * - * @see IResource#isDerived() - * @since 3.1 - */ - public static final int EXCLUDE_DERIVED = 4; - - /** - * Member constant (bit mask value 8) indicating that hidden resources are to be included. - * - * @see IResource#isHidden() - * @since 3.4 - */ - public static final int INCLUDE_HIDDEN = 8; - - /** - * Member constant (bit mask value 16) indicating that a resource should not be checked for - * existence. - * - * @see IResource#accept(IResourceProxyVisitor, int) - * @see IResource#accept(IResourceVisitor, int, int) - * @since 3.8 - */ - public static final int DO_NOT_CHECK_EXISTENCE = 16; - - /** - * Returns whether a resource of some type with the given path exists relative to this resource. - * The supplied path may be absolute or relative; in either case, it is interpreted as relative to - * this resource. Trailing separators are ignored. If the path is empty this container is checked - * for existence. - * - * @param path the path of the resource - * @return true if a resource of some type with the given path exists relative to - * this resource, and false otherwise - * @see IResource#exists() - */ - public boolean exists(IPath path); - - /** - * Finds and returns the member resource identified by the given path in this container, or - * null if no such resource exists. The supplied path may be absolute or relative; in - * either case, it is interpreted as relative to this resource. Trailing separators and the path's - * device are ignored. If the path is empty this container is returned. Parent references in the - * supplied path are discarded if they go above the workspace root. - * - *

Note that no attempt is made to exclude team-private member resources as with members - * . - * - *

N.B. Unlike the methods which traffic strictly in resource handles, this method infers the - * resulting resource's type from the resource existing at the calculated path in the workspace. - * - *

Note that path contains a relative path to the resource and all path special - * characters will be interpreted. Passing an empty string will result in returning this {@link - * IContainer} itself. - * - * @param path the relative path to the member resource, must be a valid path or path segment - * @return the member resource, or null if no such resource exists - * @see #members() - * @see IPath#isValidPath(String) - * @see IPath#isValidSegment(String) - */ - public IResource findMember(String path); - - /** - * Finds and returns the member resource identified by the given path in this container, or - * null if no such resource exists. The supplied path may be absolute or relative; in - * either case, it is interpreted as relative to this resource. Trailing separators and the path's - * device are ignored. If the path is empty this container is returned. Parent references in the - * supplied path are discarded if they go above the workspace root. - * - *

If the includePhantoms argument is false, only a member resource - * with the given path that exists will be returned. If the includePhantoms argument - * is true, the method also returns a resource if the workspace is keeping track of a - * phantom with that path. - * - *

Note that no attempt is made to exclude team-private member resources as with members - * . - * - *

N.B. Unlike the methods which traffic strictly in resource handles, this method infers the - * resulting resource's type from the resource (or phantom) existing at the calculated path in the - * workspace. - * - *

Note that path contains a relative path to the resource and all path special - * characters will be interpreted. Passing an empty string will result in returning this {@link - * IContainer} itself. - * - * @param path the relative path to the member resource, must be a valid path or path segment - * @param includePhantoms true if phantom resources are of interest; false - * if phantom resources are not of interest - * @return the member resource, or null if no such resource exists - * @see #members(boolean) - * @see IResource#isPhantom() - * @see IPath#isValidPath(String) - * @see IPath#isValidSegment(String) - */ - public IResource findMember(String path, boolean includePhantoms); - - /** - * Finds and returns the member resource identified by the given path in this container, or - * null if no such resource exists. The supplied path may be absolute or relative; in - * either case, it is interpreted as relative to this resource. Trailing separators and the path's - * device are ignored. If the path is empty this container is returned. Parent references in the - * supplied path are discarded if they go above the workspace root. - * - *

Note that no attempt is made to exclude team-private member resources as with members - * . - * - *

N.B. Unlike the methods which traffic strictly in resource handles, this method infers the - * resulting resource's type from the resource existing at the calculated path in the workspace. - * - * @param path the path of the desired resource - * @return the member resource, or null if no such resource exists - */ - public IResource findMember(IPath path); - - /** - * Finds and returns the member resource identified by the given path in this container, or - * null if no such resource exists. The supplied path may be absolute or relative; in - * either case, it is interpreted as relative to this resource. Trailing separators and the path's - * device are ignored. If the path is empty this container is returned. Parent references in the - * supplied path are discarded if they go above the workspace root. - * - *

If the includePhantoms argument is false, only a member resource - * with the given path that exists will be returned. If the includePhantoms argument - * is true, the method also returns a resource if the workspace is keeping track of a - * phantom with that path. - * - *

Note that no attempt is made to exclude team-private member resources as with members - * . - * - *

N.B. Unlike the methods which traffic strictly in resource handles, this method infers the - * resulting resource's type from the resource (or phantom) existing at the calculated path in the - * workspace. - * - * @param path the path of the desired resource - * @param includePhantoms true if phantom resources are of interest; false - * if phantom resources are not of interest - * @return the member resource, or null if no such resource exists - * @see #members(boolean) - * @see IResource#isPhantom() - */ - public IResource findMember(IPath path, boolean includePhantoms); - - /** - * Returns the default charset for resources in this container. - * - *

This is a convenience method, fully equivalent to: - * - *

-   *   getDefaultCharset(true);
-   * 
- * - *

Note that this method does not check whether the result is a supported charset name. Callers - * should be prepared to handle UnsupportedEncodingException where this charset is - * used. - * - * @return the name of the default charset encoding for this container - * @exception CoreException if this method fails - * @see IContainer#getDefaultCharset(boolean) - * @see IFile#getCharset() - * @since 3.0 - */ - public String getDefaultCharset() throws CoreException; - - /** - * Returns the default charset for resources in this container. - * - *

If checkImplicit is false, this method will return the charset defined by - * calling #setDefaultCharset, provided this container exists, or null otherwise. - * - *

If checkImplicit is true, this method uses the following algorithm to determine - * the charset to be returned: - * - *

    - *
  1. the one explicitly set by calling #setDefaultCharset (with a non-null argument) on this - * container, if any, and this container exists, or - *
  2. the parent's default charset, if this container has a parent (is not the workspace root), - * or - *
  3. the charset returned by ResourcesPlugin#getEncoding. - *
- * - *

Note that this method does not check whether the result is a supported charset name. Callers - * should be prepared to handle UnsupportedEncodingException where this charset is - * used. - * - * @return the name of the default charset encoding for this container, or null - * @exception CoreException if this method fails - * @see IFile#getCharset() - * @since 3.0 - */ - public String getDefaultCharset(boolean checkImplicit) throws CoreException; - - /** - * Returns a handle to the file identified by the given path in this container. - * - *

This is a resource handle operation; neither the resource nor the result need exist in the - * workspace. The validation check on the resource name/path is not done when the resource handle - * is constructed; rather, it is done automatically as the resource is created. - * - *

The supplied path may be absolute or relative; in either case, it is interpreted as relative - * to this resource and is appended to this container's full path to form the full path of the - * resultant resource. A trailing separator is ignored. The path of the resulting resource must - * have at least two segments. - * - * @param path the path of the member file - * @return the (handle of the) member file - * @see #getFolder(IPath) - */ - public IFile getFile(IPath path); - - /** - * Returns a handle to the folder identified by the given path in this container. - * - *

This is a resource handle operation; neither the resource nor the result need exist in the - * workspace. The validation check on the resource name/path is not done when the resource handle - * is constructed; rather, it is done automatically as the resource is created. - * - *

The supplied path may be absolute or relative; in either case, it is interpreted as relative - * to this resource and is appended to this container's full path to form the full path of the - * resultant resource. A trailing separator is ignored. The path of the resulting resource must - * have at least two segments. - * - * @param path the path of the member folder - * @return the (handle of the) member folder - * @see #getFile(IPath) - */ - public IFolder getFolder(IPath path); - - /** - * Returns a list of existing member resources (projects, folders and files) in this resource, in - * no particular order. - * - *

This is a convenience method, fully equivalent to members(IResource.NONE). - * Team-private member resources are not included in the result. - * - *

Note that the members of a project or folder are the files and folders immediately contained - * within it. The members of the workspace root are the projects in the workspace. - * - * @return an array of members of this resource - * @exception CoreException if this request fails. Reasons include: - *

    - *
  • This resource does not exist. - *
  • This resource is a project that is not open. - *
- * - * @see #findMember(IPath) - * @see IResource#isAccessible() - */ - public IResource[] members() throws CoreException; - - /** - * Returns a list of all member resources (projects, folders and files) in this resource, in no - * particular order. - * - *

This is a convenience method, fully equivalent to: - * - *

-   *   members(includePhantoms ? INCLUDE_PHANTOMS : IResource.NONE);
-   * 
- * - * Team-private member resources are not included in the result. - * - * @param includePhantoms true if phantom resources are of interest; false - * if phantom resources are not of interest - * @return an array of members of this resource - * @exception CoreException if this request fails. Reasons include: - *
    - *
  • This resource does not exist. - *
  • includePhantoms is false and this resource does not exist. - *
  • includePhantoms is false and this resource is a project - * that is not open. - *
- * - * @see #members(int) - * @see IResource#exists() - * @see IResource#isPhantom() - */ - public IResource[] members(boolean includePhantoms) throws CoreException; - - /** - * Returns a list of all member resources (projects, folders and files) in this resource, in no - * particular order. - * - *

If the INCLUDE_PHANTOMS flag is not specified in the member flags - * (recommended), only member resources that exist will be returned. If the INCLUDE_PHANTOMS - * flag is specified, the result will also include any phantom member resources the - * workspace is keeping track of. - * - *

If the INCLUDE_TEAM_PRIVATE_MEMBERS flag is specified in the member flags, team - * private members will be included along with the others. If the - * INCLUDE_TEAM_PRIVATE_MEMBERS flag is not specified (recommended), the result will omit - * any team private member resources. - * - *

If the {@link #INCLUDE_HIDDEN} flag is specified in the member flags, hidden members will be - * included along with the others. If the {@link #INCLUDE_HIDDEN} flag is not specified - * (recommended), the result will omit any hidden member resources. - * - *

If the EXCLUDE_DERIVED flag is not specified, derived resources are included. - * If the EXCLUDE_DERIVED flag is specified in the member flags, derived resources - * are not included. - * - * @param memberFlags bit-wise or of member flag constants ({@link #INCLUDE_PHANTOMS}, {@link - * #INCLUDE_TEAM_PRIVATE_MEMBERS}, {@link #INCLUDE_HIDDEN} and {@link #EXCLUDE_DERIVED}) - * indicating which members are of interest - * @return an array of members of this resource - * @exception CoreException if this request fails. Reasons include: - *

    - *
  • This resource does not exist. - *
  • the INCLUDE_PHANTOMS flag is not specified and this resource does not - * exist. - *
  • the INCLUDE_PHANTOMS flag is not specified and this resource is a - * project that is not open. - *
- * - * @see IResource#exists() - * @since 2.0 - */ - public IResource[] members(int memberFlags) throws CoreException; - - /** - * Returns a list of recently deleted files inside this container that have one or more saved - * states in the local history. The depth parameter determines how deep inside the container to - * look. This resource may or may not exist in the workspace. - * - *

When applied to an existing project resource, this method returns recently deleted files - * with saved states in that project. Note that local history is maintained with each individual - * project, and gets discarded when a project is deleted from the workspace. If applied to a - * deleted project, this method returns the empty list. - * - *

When applied to the workspace root resource (depth infinity), this method returns all - * recently deleted files with saved states in all existing projects. - * - *

When applied to a folder (or project) resource (depth one), this method returns all recently - * deleted member files with saved states. - * - *

When applied to a folder resource (depth zero), this method returns an empty list unless - * there was a recently deleted file with saved states at the same path as the folder. - * - *

This method is long-running; progress and cancellation are provided by the given progress - * monitor. - * - * @param depth depth limit: one of DEPTH_ZERO, DEPTH_ONE or - * DEPTH_INFINITE - * @param monitor a progress monitor, or null if progress reporting and cancellation - * are not desired - * @return an array of recently deleted files - * @exception CoreException if this method fails - * @see IFile#getHistory(IProgressMonitor) - * @since 2.0 - */ - public IFile[] findDeletedMembersWithHistory(int depth, IProgressMonitor monitor) - throws CoreException; - - /** - * Sets the default charset for this container. Passing a value of null will remove - * the default charset setting for this resource. - * - * @param charset a charset string, or null - * @exception CoreException if this method fails Reasons include: - *

    - *
  • This resource does not exist. - *
  • An error happened while persisting this setting. - *
- * - * @see IContainer#getDefaultCharset() - * @since 3.0 - * @deprecated Replaced by {@link #setDefaultCharset(String, IProgressMonitor)} which is a - * workspace operation and reports changes in resource deltas. - */ - @Deprecated - public void setDefaultCharset(String charset) throws CoreException; - - /** - * Sets the default charset for this container. Passing a value of null will remove - * the default charset setting for this resource. - * - *

This method changes resources; these changes will be reported in a subsequent resource - * change event, including an indication that the encoding of affected resources has been changed. - * - *

This method is long-running; progress and cancellation are provided by the given progress - * monitor. - * - * @param charset a charset string, or null - * @param monitor a progress monitor, or null if progress reporting is not desired - * @exception OperationCanceledException if the operation is canceled. Cancelation can occur even - * if no progress monitor is provided. - * @exception CoreException if this method fails Reasons include: - *

    - *
  • This resource is not accessible. - *
  • An error happened while persisting this setting. - *
  • Resource changes are disallowed during certain types of resource change event - * notification. See {@link IResourceChangeEvent} for more details. - *
- * - * @see IContainer#getDefaultCharset() - * @see IResourceRuleFactory#charsetRule(IResource) - * @since 3.0 - */ - public void setDefaultCharset(String charset, IProgressMonitor monitor) throws CoreException; - - /** - * Adds a new filter to this container. Filters restrict the set of files and directories in the - * underlying file system that will be included as members of this container. - * - *

The {@link IResource#BACKGROUND_REFRESH} update flag controls when changes to the resource - * hierarchy under this container resulting from the new filter take effect. If this flag is - * specified, the resource hierarchy is updated in a separate thread after this method returns. If - * the flag is not specified, any resource changes resulting from the new filter will occur before - * this method returns. - * - *

This operation changes resources; these changes will be reported in a subsequent resource - * change event that will include an indication of any resources that have been removed as a - * result of the new filter. - * - *

This operation is long-running; progress and cancellation are provided by the given progress - * monitor. - * - * @param type ({@link IResourceFilterDescription#INCLUDE_ONLY} or {@link - * IResourceFilterDescription#EXCLUDE_ALL} and/or {@link - * IResourceFilterDescription#INHERITABLE}) - * @param matcherDescription the description of the matcher that will determine which {@link - * IFileInfo} instances will be excluded from the resource tree - * @param updateFlags bit-wise or of update flag constants ({@link IResource#BACKGROUND_REFRESH}) - * @param monitor a progress monitor, or null if progress reporting is not desired - * @return the description of the added filter - * @exception CoreException if this filter could not be added. Reasons include: - *

    - *
  • Resource changes are disallowed during certain types of resource change event - * notification. See IResourceChangeEvent for more details. - *
- * - * @exception OperationCanceledException if the operation is canceled. Cancelation can occur even - * if no progress monitor is provided. - * @see #getFilters() - * @see IResourceFilterDescription#delete(int, IProgressMonitor) - * @since 3.6 - */ - public IResourceFilterDescription createFilter( - int type, - FileInfoMatcherDescription matcherDescription, - int updateFlags, - IProgressMonitor monitor) - throws CoreException; - - /** - * Retrieve all filters on this container. If no filters exist for this resource, an empty array - * is returned. - * - * @return an array of filters - * @exception CoreException if this resource's filters could not be retrieved. Reasons include: - *