add file color for navigation list items which are not PsiElements but could fetch...
[fedora-idea.git] / platform / lang-impl / src / com / intellij / refactoring / RefactoringSettings.java
blob0b39c1432dcba137ff86000bfe972890f27a1ff4
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.refactoring;
19 import com.intellij.openapi.components.State;
20 import com.intellij.openapi.components.Storage;
21 import com.intellij.openapi.components.PersistentStateComponent;
22 import com.intellij.openapi.components.ServiceManager;
23 import com.intellij.util.xmlb.XmlSerializerUtil;
25 /**
26 * @author yole
28 @State(
29 name = "BaseRefactoringSettings",
30 storages = {
31 @Storage(
32 id ="other",
33 file = "$APP_CONFIG$/other.xml"
36 public class RefactoringSettings implements PersistentStateComponent<RefactoringSettings> {
37 public static RefactoringSettings getInstance() {
38 return ServiceManager.getService(RefactoringSettings.class);
41 public boolean SAFE_DELETE_WHEN_DELETE = true;
42 public boolean SAFE_DELETE_SEARCH_IN_COMMENTS = true;
43 public boolean SAFE_DELETE_SEARCH_IN_NON_JAVA = true;
45 public boolean RENAME_SEARCH_IN_COMMENTS_FOR_FILE = true;
46 public boolean RENAME_SEARCH_FOR_TEXT_FOR_FILE = true;
48 public RefactoringSettings getState() {
49 return this;
52 public void loadState(final RefactoringSettings state) {
53 XmlSerializerUtil.copyBean(state, this);