diff --git a/java/structuralsearch-java/src/com/intellij/structuralsearch/JavaStructuralSearchProfile.java b/java/structuralsearch-java/src/com/intellij/structuralsearch/JavaStructuralSearchProfile.java index a6aaa7011c06..b6161f23c3ae 100644 --- a/java/structuralsearch-java/src/com/intellij/structuralsearch/JavaStructuralSearchProfile.java +++ b/java/structuralsearch-java/src/com/intellij/structuralsearch/JavaStructuralSearchProfile.java @@ -517,7 +517,7 @@ public class JavaStructuralSearchProfile extends StructuralSearchProfile { } @Override - Configuration[] getPredefinedTemplates() { + public Configuration[] getPredefinedTemplates() { return JavaPredefinedConfigurations.createPredefinedTemplates(); } diff --git a/platform/duplicates-analysis/src/com/intellij/dupLocator/AbstractMatchingVisitor.java b/platform/duplicates-analysis/src/com/intellij/dupLocator/AbstractMatchingVisitor.java index 0b6bd6519edd..71202aa31898 100644 --- a/platform/duplicates-analysis/src/com/intellij/dupLocator/AbstractMatchingVisitor.java +++ b/platform/duplicates-analysis/src/com/intellij/dupLocator/AbstractMatchingVisitor.java @@ -1,3 +1,18 @@ +/* + * Copyright 2000-2016 JetBrains s.r.o. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.intellij.dupLocator; import com.intellij.dupLocator.util.NodeFilter; @@ -85,11 +100,11 @@ public abstract class AbstractMatchingVisitor { ); } - protected boolean isLeftLooseMatching() { + public boolean isLeftLooseMatching() { return true; } - protected boolean isRightLooseMatching() { + public boolean isRightLooseMatching() { return true; } diff --git a/platform/structuralsearch/source/com/intellij/structuralsearch/StructuralSearchProfile.java b/platform/structuralsearch/source/com/intellij/structuralsearch/StructuralSearchProfile.java index bbce04ce87fd..85ed8586f28c 100644 --- a/platform/structuralsearch/source/com/intellij/structuralsearch/StructuralSearchProfile.java +++ b/platform/structuralsearch/source/com/intellij/structuralsearch/StructuralSearchProfile.java @@ -222,7 +222,7 @@ public abstract class StructuralSearchProfile { return fileType; } - Configuration[] getPredefinedTemplates() { + public Configuration[] getPredefinedTemplates() { return Configuration.EMPTY_ARRAY; } diff --git a/platform/structuralsearch/source/com/intellij/structuralsearch/XmlStructuralSearchProfile.java b/platform/structuralsearch/source/com/intellij/structuralsearch/XmlStructuralSearchProfile.java index 5882e2f69f4f..45bba9d90039 100644 --- a/platform/structuralsearch/source/com/intellij/structuralsearch/XmlStructuralSearchProfile.java +++ b/platform/structuralsearch/source/com/intellij/structuralsearch/XmlStructuralSearchProfile.java @@ -1,3 +1,18 @@ +/* + * Copyright 2000-2016 JetBrains s.r.o. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.intellij.structuralsearch; import com.intellij.codeInsight.template.TemplateContextType; @@ -197,7 +212,7 @@ public class XmlStructuralSearchProfile extends StructuralSearchProfile { } @Override - Configuration[] getPredefinedTemplates() { + public Configuration[] getPredefinedTemplates() { return XmlPredefinedConfigurations.createPredefinedTemplates(); } diff --git a/platform/structuralsearch/source/com/intellij/structuralsearch/impl/matcher/GlobalMatchingVisitor.java b/platform/structuralsearch/source/com/intellij/structuralsearch/impl/matcher/GlobalMatchingVisitor.java index 35c644311db0..3622115f4420 100644 --- a/platform/structuralsearch/source/com/intellij/structuralsearch/impl/matcher/GlobalMatchingVisitor.java +++ b/platform/structuralsearch/source/com/intellij/structuralsearch/impl/matcher/GlobalMatchingVisitor.java @@ -312,12 +312,12 @@ public class GlobalMatchingVisitor extends AbstractMatchingVisitor { } @Override - protected boolean isLeftLooseMatching() { + public boolean isLeftLooseMatching() { return matchContext.getOptions().isLooseMatching(); } @Override - protected boolean isRightLooseMatching() { + public boolean isRightLooseMatching() { return false; } diff --git a/platform/structuralsearch/source/com/intellij/structuralsearch/impl/matcher/compiler/CompileContext.java b/platform/structuralsearch/source/com/intellij/structuralsearch/impl/matcher/compiler/CompileContext.java index f28e83b7ad1c..cb0a32f87543 100644 --- a/platform/structuralsearch/source/com/intellij/structuralsearch/impl/matcher/compiler/CompileContext.java +++ b/platform/structuralsearch/source/com/intellij/structuralsearch/impl/matcher/compiler/CompileContext.java @@ -1,3 +1,18 @@ +/* + * Copyright 2000-2016 JetBrains s.r.o. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.intellij.structuralsearch.impl.matcher.compiler; import com.intellij.openapi.application.ApplicationManager; @@ -6,11 +21,9 @@ import com.intellij.structuralsearch.MatchOptions; import com.intellij.structuralsearch.impl.matcher.CompiledPattern; /** - * Created by IntelliJ IDEA. - * User: maxim + * @author maxim * Date: 17.11.2004 * Time: 19:26:37 - * To change this template use File | Settings | File Templates. */ public class CompileContext { private OptimizingSearchHelper searchHelper; @@ -49,7 +62,7 @@ public class CompileContext { this.pattern = pattern; } - MatchOptions getOptions() { + public MatchOptions getOptions() { return options; } @@ -57,7 +70,7 @@ public class CompileContext { this.options = options; } - Project getProject() { + public Project getProject() { return project; }