mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup
This commit is contained in:
+3
-9
@@ -13,7 +13,6 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.intellij.psi.impl.source.codeStyle;
|
||||
|
||||
import com.intellij.openapi.components.ExportableComponent;
|
||||
@@ -44,10 +43,10 @@ public abstract class CodeStyleSchemesImpl extends CodeStyleSchemes implements E
|
||||
|
||||
public String CURRENT_SCHEME_NAME = DEFAULT_SCHEME_NAME;
|
||||
private boolean myIsInitialized = false;
|
||||
@NonNls static final String CODESTYLES_DIRECTORY = "codestyles";
|
||||
@NonNls static final String CODE_STYLES_DIRECTORY = "codestyles";
|
||||
|
||||
private final SchemesManager<CodeStyleScheme, CodeStyleSchemeImpl> mySchemesManager;
|
||||
@NonNls private static final String FILE_SPEC = "$ROOT_CONFIG$/" + CODESTYLES_DIRECTORY;
|
||||
@NonNls private static final String FILE_SPEC = "$ROOT_CONFIG$/" + CODE_STYLES_DIRECTORY;
|
||||
|
||||
public CodeStyleSchemesImpl(SchemesManagerFactory schemesManagerFactory) {
|
||||
SchemeProcessor<CodeStyleSchemeImpl> processor = new BaseSchemeProcessor<CodeStyleSchemeImpl>() {
|
||||
@@ -97,6 +96,7 @@ public abstract class CodeStyleSchemesImpl extends CodeStyleSchemes implements E
|
||||
CURRENT_SCHEME_NAME = schemeName;
|
||||
}
|
||||
|
||||
@SuppressWarnings("ForLoopThatDoesntUseLoopVariable")
|
||||
@Override
|
||||
public CodeStyleScheme createNewScheme(String preferredName, CodeStyleScheme parentScheme) {
|
||||
String name;
|
||||
@@ -154,10 +154,6 @@ public abstract class CodeStyleSchemesImpl extends CodeStyleSchemes implements E
|
||||
mySchemesManager.addNewScheme(scheme, true);
|
||||
}
|
||||
|
||||
protected void removeScheme(CodeStyleScheme scheme) {
|
||||
mySchemesManager.removeScheme(scheme);
|
||||
}
|
||||
|
||||
protected void init() {
|
||||
if (myIsInitialized) return;
|
||||
myIsInitialized = true;
|
||||
@@ -173,6 +169,4 @@ public abstract class CodeStyleSchemesImpl extends CodeStyleSchemes implements E
|
||||
public SchemesManager<CodeStyleScheme, CodeStyleSchemeImpl> getSchemesManager() {
|
||||
return mySchemesManager;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user