diff --git a/platform/lang-impl/src/com/intellij/codeInspection/ex/VisibleTreeState.java b/platform/lang-impl/src/com/intellij/codeInspection/ex/VisibleTreeState.java index 9ed5a37e24f4..2772c466d58c 100644 --- a/platform/lang-impl/src/com/intellij/codeInspection/ex/VisibleTreeState.java +++ b/platform/lang-impl/src/com/intellij/codeInspection/ex/VisibleTreeState.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2009 JetBrains s.r.o. + * Copyright 2000-2012 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. @@ -106,7 +106,7 @@ public class VisibleTreeState{ } private static State getState(InspectionConfigTreeNode node) { - Descriptor descriptor = node.getDesriptor(); + Descriptor descriptor = node.getDescriptor(); final State expandedNode; if (descriptor != null) { expandedNode = new State(descriptor); diff --git a/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/InspectionConfigTreeNode.java b/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/InspectionConfigTreeNode.java index 2fa06be73ab5..71d93e77a167 100644 --- a/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/InspectionConfigTreeNode.java +++ b/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/InspectionConfigTreeNode.java @@ -35,7 +35,7 @@ public class InspectionConfigTreeNode extends CheckedTreeNode { @NotNull @Override protected Boolean compute() { - Descriptor descriptor = getDesriptor(); + Descriptor descriptor = getDescriptor(); if (descriptor != null) return descriptor.getInspectionProfile().isProperSetting(descriptor.getTool().getShortName()); for (int i = 0; i < getChildCount(); i++) { InspectionConfigTreeNode node = (InspectionConfigTreeNode)getChildAt(i); @@ -64,7 +64,7 @@ public class InspectionConfigTreeNode extends CheckedTreeNode { } @Nullable - public Descriptor getDesriptor() { + public Descriptor getDescriptor() { if (userObject instanceof String) return null; return (Descriptor)userObject; } diff --git a/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/InspectionsConfigTreeComparator.java b/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/InspectionsConfigTreeComparator.java index 80a71ff5a6fb..cd33df568358 100644 --- a/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/InspectionsConfigTreeComparator.java +++ b/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/InspectionsConfigTreeComparator.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2009 JetBrains s.r.o. + * Copyright 2000-2012 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. @@ -43,8 +43,8 @@ public class InspectionsConfigTreeComparator implements Comparator() { public String convert(TreePath o) { final InspectionConfigTreeNode node = (InspectionConfigTreeNode)o.getLastPathComponent(); - final Descriptor descriptor = node.getDesriptor(); + final Descriptor descriptor = node.getDescriptor(); return descriptor != null ? InspectionsConfigTreeComparator.getDisplayTextToSort(descriptor.getText()) : InspectionsConfigTreeComparator .getDisplayTextToSort(node.getGroupName()); } @@ -584,7 +584,7 @@ public class SingleInspectionProfilePanel extends JPanel { } private void toggleToolNode(final InspectionConfigTreeNode toolNode) { - final Descriptor descriptor = toolNode.getDesriptor(); + final Descriptor descriptor = toolNode.getDescriptor(); if (descriptor!= null) { final HighlightDisplayKey key = descriptor.getKey(); final String toolShortName = key.toString(); @@ -720,7 +720,7 @@ public class SingleInspectionProfilePanel extends JPanel { private void updateOptionsAndDescriptionPanel(TreePath path) { if (path == null) return; final InspectionConfigTreeNode node = (InspectionConfigTreeNode)path.getLastPathComponent(); - final Descriptor descriptor = node.getDesriptor(); + final Descriptor descriptor = node.getDescriptor(); if (descriptor != null) { final String description = descriptor.loadDescription(); @@ -1096,7 +1096,7 @@ public class SingleInspectionProfilePanel extends JPanel { private void updateErrorLevel(final InspectionConfigTreeNode child, final boolean showOptionsAndDescriptorPanels, final HighlightDisplayLevel level) { - final HighlightDisplayKey key = child.getDesriptor().getKey(); + final HighlightDisplayKey key = child.getDescriptor().getKey(); mySelectedProfile.setErrorLevel(key, level, child.isInspectionNode() || child.isByDefault() ? -1 : child.getParent().getIndex(child)); child.dropCache(); if (showOptionsAndDescriptorPanels) { diff --git a/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/actions/AddScopeAction.java b/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/actions/AddScopeAction.java index 7d3fe00b7485..cd1c5f6df966 100644 --- a/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/actions/AddScopeAction.java +++ b/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/actions/AddScopeAction.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2009 JetBrains s.r.o. + * Copyright 2000-2012 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. @@ -86,7 +86,7 @@ public abstract class AddScopeAction extends AnAction { final NamedScope chosenScope = NamedScopesHolder.getScope(project, availableScopes.get(idx)); for (InspectionConfigTreeNode node : nodes) { - final Descriptor descriptor = node.getDesriptor(); + final Descriptor descriptor = node.getDescriptor(); if (node.getScopeName() != null || descriptor == null) continue; final InspectionProfileEntry tool = descriptor.getTool(); //copy final ScopeToolState scopeToolState = getSelectedProfile().addScope(tool, chosenScope, @@ -108,7 +108,7 @@ public abstract class AddScopeAction extends AnAction { private static void collect(List descriptors, List nodes, InspectionConfigTreeNode node) { - final Descriptor descriptor = node.getDesriptor(); + final Descriptor descriptor = node.getDescriptor(); if (descriptor != null) { if (node.getScopeName() == null) { descriptors.add(descriptor); diff --git a/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/actions/DeleteScopeAction.java b/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/actions/DeleteScopeAction.java index d6b695b3e059..cdd28fb67958 100644 --- a/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/actions/DeleteScopeAction.java +++ b/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/actions/DeleteScopeAction.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2009 JetBrains s.r.o. + * Copyright 2000-2012 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. @@ -64,7 +64,7 @@ public abstract class DeleteScopeAction extends AnAction { InspectionConfigTreeNode parent = null; final InspectionConfigTreeNode[] nodes = myTree.getSelectedNodes(InspectionConfigTreeNode.class, null); for (InspectionConfigTreeNode node : nodes) { - final Descriptor descriptor = node.getDesriptor(); + final Descriptor descriptor = node.getDescriptor(); LOG.assertTrue(descriptor != null); parent = (InspectionConfigTreeNode)node.getParent(); final HighlightDisplayKey key = descriptor.getKey(); diff --git a/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/actions/MoveScopeAction.java b/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/actions/MoveScopeAction.java index 1eb7d6e98f2f..3383d4c943af 100644 --- a/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/actions/MoveScopeAction.java +++ b/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/actions/MoveScopeAction.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2009 JetBrains s.r.o. + * Copyright 2000-2012 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. @@ -65,7 +65,7 @@ public abstract class MoveScopeAction extends AnAction { public void actionPerformed(AnActionEvent e) { final InspectionConfigTreeNode[] nodes = myTree.getSelectedNodes(InspectionConfigTreeNode.class, null); final InspectionConfigTreeNode node = nodes[0]; - final Descriptor descriptor = node.getDesriptor(); + final Descriptor descriptor = node.getDescriptor(); final TreeNode parent = node.getParent(); final int index = parent.getIndex(node); getSelectedProfile().moveScope(descriptor.getKey().toString(), index, myDir);