update copyrights
[fedora-idea.git] / platform / lang-api / src / com / intellij / codeInspection / ModifiableModel.java
blob4bbd1f3aaae235a4629012da3acab7a9ef32f438
1 /*
2 * Copyright 2000-2009 JetBrains s.r.o.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package com.intellij.codeInspection;
19 import com.intellij.codeHighlighting.HighlightDisplayLevel;
20 import com.intellij.codeInsight.daemon.HighlightDisplayKey;
21 import com.intellij.profile.Profile;
22 import com.intellij.psi.PsiElement;
23 import com.intellij.psi.search.scope.packageSet.NamedScope;
25 import java.io.IOException;
27 /**
28 * User: anna
29 * Date: 15-Feb-2006
31 public interface ModifiableModel extends Profile {
33 InspectionProfile getParentProfile();
35 String getBaseProfileName();
37 void setBaseProfile(InspectionProfile profile);
39 void enableTool(String inspectionTool, NamedScope namedScope);
41 void disableTool(String inspectionTool, NamedScope namedScope);
43 void setErrorLevel(HighlightDisplayKey key, HighlightDisplayLevel level);
45 HighlightDisplayLevel getErrorLevel(HighlightDisplayKey inspectionToolKey, PsiElement element);
47 boolean isToolEnabled(HighlightDisplayKey key);
49 boolean isToolEnabled(HighlightDisplayKey key, PsiElement element);
51 void commit() throws IOException;
53 boolean isChanged();
55 void setModified(final boolean toolsSettingsChanged);
57 boolean isProperSetting(HighlightDisplayKey key);
59 void resetToBase();
61 void resetToEmpty();
63 InspectionProfileEntry getInspectionTool(String shortName, PsiElement element);
65 InspectionProfileEntry[] getInspectionTools(PsiElement element);
67 void copyFrom(InspectionProfile profile);
69 boolean isDefault();
71 void setEditable(String toolDisplayName);
73 void save() throws IOException;
75 boolean isProfileLocked();
77 void lockProfile(boolean isLocked);
79 void disableTool(String toolId, PsiElement element);
81 void disableTool(String inspectionTool);