add default ItemPresentation#getLocationString implementation

GitOrigin-RevId: 22555d540c23b5dc34560873c8ff64ab62c83bd6
This commit is contained in:
Daniil Ovchinnikov
2021-01-07 18:49:16 +01:00
committed by intellij-monorepo-bot
parent fc06e1a491
commit e25cfb90bc
30 changed files with 33 additions and 310 deletions

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ide.structureView.impl.java;
import com.intellij.ide.util.treeView.WeighedItem;
@@ -123,11 +123,6 @@ public final class PropertyGroup implements Group, ColoredItemPresentation, Acce
return myIsStatic;
}
@Override
public String getLocationString() {
return null;
}
@Override
public String getPresentableText() {
return myPropertyName + ": " + myTypeText;

View File

@@ -1,18 +1,4 @@
/*
* Copyright 2000-2014 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.
*/
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ide.structureView.impl.java;
import com.intellij.icons.AllIcons;
@@ -79,11 +65,6 @@ public class SuperTypeGroup implements Group, ItemPresentation, AccessLevelProvi
return null; // Can't be
}
@Override
public String getLocationString() {
return null;
}
@Override
public String getPresentableText() {
return toString();

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.json.psi.impl;
import com.intellij.icons.AllIcons;
@@ -96,12 +96,6 @@ public final class JsonPsiImplUtils {
return JsonBundle.message("json.array");
}
@Nullable
@Override
public String getLocationString() {
return null;
}
@Nullable
@Override
public Icon getIcon(boolean unused) {
@@ -119,12 +113,6 @@ public final class JsonPsiImplUtils {
return JsonBundle.message("json.object");
}
@Nullable
@Override
public String getLocationString() {
return null;
}
@Nullable
@Override
public Icon getIcon(boolean unused) {

View File

@@ -1,18 +1,4 @@
/*
* Copyright 2000-2009 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.
*/
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.navigation;
import com.intellij.openapi.util.NlsSafe;
@@ -41,7 +27,9 @@ public interface ItemPresentation {
*
* @return the location description, or null if none is applicable.
*/
@NlsSafe @Nullable String getLocationString();
default @NlsSafe @Nullable String getLocationString() {
return null;
}
/**
* Returns the icon representing the object.

View File

@@ -1,18 +1,4 @@
/*
* Copyright 2000-2009 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.
*/
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.psi.impl;
@@ -130,12 +116,6 @@ public abstract class FakePsiElement extends PsiElementBase implements PsiNamedE
return getName();
}
@Override
@Nullable
public String getLocationString() {
return null;
}
@Override
public final Icon getIcon(final int flags) {
return super.getIcon(flags);

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.codeInsight.template.impl;
import com.intellij.lang.documentation.AbstractDocumentationProvider;
@@ -70,12 +70,6 @@ public class LiveTemplateDocumentationProvider extends AbstractDocumentationProv
return myTemplate.getKey();
}
@Nullable
@Override
public String getLocationString() {
return null;
}
@Nullable
@Override
public Icon getIcon(boolean unused) {

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.codeInspection.actions;
import com.intellij.codeInspection.ex.InspectionToolWrapper;
@@ -43,12 +43,6 @@ public class InspectionElement extends FakePsiElement {
return myWrapper.getDisplayName();
}
@Nullable
@Override
public String getLocationString() {
return null;
}
@Nullable
@Override
public Icon getIcon(boolean unused) {

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.find.findUsages;
@@ -266,11 +266,6 @@ public class PsiElement2UsageTargetAdapter
return myPresentableText;
}
@Override
public String getLocationString() {
return null;
}
@Override
public Icon getIcon(boolean open) {
return myIcon;

View File

@@ -1,18 +1,4 @@
/*
* Copyright 2000-2014 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.
*/
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ide.util;
import com.intellij.ide.structureView.StructureViewModel;
@@ -181,12 +167,6 @@ public class StructureViewCompositeModel extends StructureViewModelBase
return view.title;
}
@Nullable
@Override
public String getLocationString() {
return null;
}
@Nullable
@Override
public Icon getIcon(boolean unused) {

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.structuralsearch.plugin.ui;
import com.intellij.lang.documentation.AbstractDocumentationProvider;
@@ -65,12 +65,6 @@ public class StructuralSearchTemplateDocumentationProvider extends AbstractDocum
return myConfiguration.getName();
}
@Nullable
@Override
public String getLocationString() {
return null;
}
@Nullable
@Override
public Icon getIcon(boolean unused) {

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.structuralsearch.plugin.ui;
import com.intellij.navigation.ItemPresentation;
@@ -36,11 +36,6 @@ class StructuralSearchUsageTarget implements ConfigurableUsageTarget, ItemPresen
return myConfiguration.getMatchOptions().getSearchPattern();
}
@Override
public String getLocationString() {
return null;
}
@Override
public Icon getIcon(boolean unused) {
return null;

View File

@@ -1,18 +1,4 @@
/*
* 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.
*/
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ide.structureView.customRegions;
import com.intellij.icons.AllIcons;
@@ -86,12 +72,6 @@ public class CustomRegionTreeElement implements StructureViewTreeElement {
return myProvider.getPlaceholderText(myStartElement.getText());
}
@Nullable
@Override
public String getLocationString() {
return null;
}
@Override
public @NotNull Icon getIcon(boolean unused) {
return AllIcons.Nodes.CustomRegion;

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ide.structureView.impl;
@@ -124,8 +124,7 @@ public class StructureViewComposite implements StructureView {
@NotNull @Override public ItemPresentation getPresentation() { return this;}
@Override public TreeElement @NotNull [] getChildren() { return EMPTY_ARRAY;}
@Nullable @Override public String getPresentableText() { return null;}
@Nullable @Override public String getLocationString() { return null;}
@Nullable @Override public Icon getIcon(boolean unused) { return null;}
@Nullable @Override public Icon getIcon(boolean unused) { return null;}
@Override public void navigate(boolean requestFocus) {}
@Override public boolean canNavigate() { return false;}
@Override public boolean canNavigateToSource() { return false;}

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ide.structureView.impl.common;
import com.intellij.ide.structureView.StructureViewExtension;
@@ -60,11 +60,6 @@ public abstract class PsiTreeElementBase <T extends PsiElement> implements Struc
return getElement();
}
@Override
public String getLocationString() {
return null;
}
public boolean isSearchInLocationString() {
return false;
}

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.idea.devkit.inspections
import com.intellij.codeInsight.hint.HintManager
@@ -578,7 +578,6 @@ private class EPUsageTarget(private val field: PsiField) : UsageTarget {
override fun getPresentation(): ItemPresentation? {
return object : ItemPresentation {
override fun getLocationString(): String? = null
override fun getIcon(unused: Boolean): Icon? = field.getIcon(0)
@@ -616,7 +615,6 @@ private class EPUsageTarget(private val field: PsiField) : UsageTarget {
private class DummyUsageTarget(@Nls val text: String) : UsageTarget {
override fun getPresentation(): ItemPresentation? {
return object : ItemPresentation {
override fun getLocationString(): String? = null
override fun getIcon(unused: Boolean): Icon? = null

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.plugins.groovy.annotator.intentions.dynamic;
import com.intellij.openapi.application.ReadAction;
@@ -211,12 +211,6 @@ public class GrDynamicImplicitMethod extends GrLightMethodBuilder implements GrD
return getName();
}
@Override
@Nullable
public String getLocationString() {
return null;
}
@Override
@Nullable
public Icon getIcon(boolean open) {

View File

@@ -1,18 +1,4 @@
/*
* Copyright 2000-2014 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.
*/
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.plugins.groovy.annotator.intentions.dynamic;
@@ -89,12 +75,6 @@ public class GrDynamicImplicitProperty extends GrImplicitVariableImpl implements
return getName();
}
@Override
@Nullable
public String getLocationString() {
return null;
}
@Override
@NotNull
public SearchScope getUseScope() {

View File

@@ -1,3 +1,4 @@
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.intellij.plugins.markdown.lang.psi.impl;
import com.intellij.lang.ASTNode;
@@ -62,11 +63,6 @@ public class MarkdownHeaderImpl extends MarkdownStubBasedPsiElementBase<Markdown
return text;
}
@Override
public String getLocationString() {
return null;
}
@Override
public Icon getIcon(final boolean open) {
return null;

View File

@@ -1,3 +1,4 @@
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.intellij.plugins.markdown.lang.psi.impl;
import com.intellij.extapi.psi.ASTWrapperPsiElement;
@@ -22,12 +23,6 @@ public class MarkdownHtmlBlockImpl extends ASTWrapperPsiElement implements Markd
public String getPresentableText() {
return "HTML block";
}
@Nullable
@Override
public String getLocationString() {
return null;
}
};
}
}

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.intellij.plugins.markdown.structureView;
import com.intellij.ide.structureView.StructureViewBundle;
@@ -30,12 +30,6 @@ public class MarkdownStructureElement extends PsiTreeElementBase<PsiElement> imp
public String getPresentableText() {
return null;
}
@Nullable
@Override
public String getLocationString() {
return null;
}
};
MarkdownStructureElement(@NotNull PsiElement element) {

View File

@@ -1,6 +1,4 @@
/*
* Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.lang.properties.editor;
@@ -108,11 +106,6 @@ public class PropertyStructureViewElement implements StructureViewTreeElement, R
: PropertiesBundle.message("structure.view.empty.property.presentation");
}
@Override
public String getLocationString() {
return null;
}
@Override
public Icon getIcon(boolean open) {
return myProperty.getIcon(0);

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.lang.properties.structureView;
import com.intellij.ide.structureView.StructureViewTreeElement;
@@ -8,7 +8,6 @@ import com.intellij.lang.properties.editor.PropertyStructureViewElement;
import com.intellij.lang.properties.psi.impl.PropertiesFileImpl;
import com.intellij.navigation.ItemPresentation;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import javax.swing.*;
import java.util.ArrayList;
@@ -50,11 +49,6 @@ public class PropertiesFileStructureViewElement extends PsiTreeElementBase<Prope
return PropertiesFileStructureViewElement.this.getPresentableText();
}
@Override
public String getLocationString() {
return null;
}
@Override
public Icon getIcon(boolean open) {
return getElement().getIcon(0);

View File

@@ -1,33 +1,14 @@
/*
* Copyright 2000-2014 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.
*/
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.lang.properties.structureView;
import com.intellij.icons.AllIcons;
import com.intellij.ide.util.treeView.smartTree.Group;
import com.intellij.ide.util.treeView.smartTree.TreeElement;
import com.intellij.lang.properties.IProperty;
import com.intellij.lang.properties.editor.PropertyStructureViewElement;
import com.intellij.navigation.ItemPresentation;
import com.intellij.util.NullableFunction;
import com.intellij.util.containers.ContainerUtil;
import org.jetbrains.annotations.NotNull;
import javax.swing.*;
import java.util.Collection;
import java.util.List;
public class PropertiesPrefixGroup implements Group {
private final @NotNull Collection<TreeElement> myProperties;
@@ -69,11 +50,6 @@ public class PropertiesPrefixGroup implements Group {
return myPresentableName;
}
@Override
public String getLocationString() {
return null;
}
@Override
public Icon getIcon(boolean open) {
return AllIcons.Nodes.Tag;

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.lang.properties.editor;
@@ -142,11 +142,6 @@ public final class ResourceBundleFileStructureViewElement implements StructureVi
return myResourceBundle.isValid() ? myResourceBundle.getBaseName() : null;
}
@Override
public String getLocationString() {
return null;
}
@Override
public Icon getIcon(boolean open) {
return AllIcons.FileTypes.Properties;

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.sh;
import com.intellij.icons.AllIcons;
@@ -119,12 +119,6 @@ public class ShStructureViewFactory implements PsiStructureViewFactory {
throw new AssertionError(myElement.getClass().getName());
}
@Nullable
@Override
public String getLocationString() {
return null;
}
@Override
public Icon getIcon(boolean open) {
if (!myElement.isValid()) return null;

View File

@@ -211,12 +211,6 @@ public class XPathFunctionCallImpl extends XPathElementImpl implements XPathFunc
return getIcon(0);
}
@Override
@Nullable
public String getLocationString() {
return null;
}
@Override
@Nullable
public @NlsSafe String getPresentableText() {

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.intellij.lang.xpath.xslt.psi.impl;
import com.intellij.navigation.ItemPresentation;
@@ -140,12 +140,6 @@ public class ImplicitModeElement extends LightElement implements PsiNamedElement
return getIcon(0);
}
@Override
@Nullable
public String getLocationString() {
return null;
}
@Override
@Nullable
public @NlsSafe String getPresentableText() {

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.yaml.structureView;
import com.intellij.ide.structureView.StructureViewTreeElement;
@@ -27,12 +27,6 @@ class YAMLStructureViewSequenceItemDuplicated extends DuplicatedPsiTreeElementBa
return YAMLStructureViewUtil.getSeqItemPresentableText(getItemValue());
}
@Nullable
@Override
public String getLocationString() {
return null;
}
@Nullable
@Override
public Icon getIcon(boolean unused) {

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.python.structureView;
import com.intellij.ide.structureView.StructureViewTreeElement;
@@ -250,12 +250,6 @@ public class PyStructureViewElement implements StructureViewTreeElement {
return null;
}
@Nullable
@Override
public String getLocationString() {
return null;
}
@Nullable
@Override
public Icon getIcon(boolean open) {

View File

@@ -1,18 +1,4 @@
/*
* Copyright 2000-2014 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.
*/
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.util.xml.structure;
@@ -117,12 +103,6 @@ public class DomStructureTreeElement implements StructureViewTreeElement, ItemPr
}
}
@Override
@Nullable
public String getLocationString() {
return null;
}
@Override
@Nullable
public Icon getIcon(boolean open) {