mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
option not to reformat created groovy file
This commit is contained in:
+1
-1
@@ -436,7 +436,7 @@ public class GrIntroduceConstantDialog extends DialogWrapper
|
||||
final AccessToken lock = ApplicationManager.getApplication().acquireWriteActionLock(GrIntroduceConstantDialog.class);
|
||||
try {
|
||||
final GroovyFile file =
|
||||
(GroovyFile)GroovyTemplatesFactory.createFromTemplate(psiDirectory, shortName, fileName, GroovyTemplates.GROOVY_CLASS);
|
||||
(GroovyFile)GroovyTemplatesFactory.createFromTemplate(psiDirectory, shortName, fileName, GroovyTemplates.GROOVY_CLASS, true);
|
||||
return file.getTypeDefinitions()[0];
|
||||
}
|
||||
finally {
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
* Copyright 2000-2013 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.
|
||||
@@ -123,7 +123,7 @@ public class MoveGroovyClassHandler implements MoveClassHandler {
|
||||
correctSelfReferences(aClass, newPackage);
|
||||
|
||||
final PsiFile fromTemplate =
|
||||
GroovyTemplatesFactory.createFromTemplate(moveDestination, aClass.getName(), aClass.getName() + NewGroovyActionBase.GROOVY_EXTENSION, GroovyTemplates.GROOVY_CLASS);
|
||||
GroovyTemplatesFactory.createFromTemplate(moveDestination, aClass.getName(), aClass.getName() + NewGroovyActionBase.GROOVY_EXTENSION, GroovyTemplates.GROOVY_CLASS, true);
|
||||
final PsiClass created = ((GroovyFile)fromTemplate).getClasses()[0];
|
||||
PsiDocComment docComment = aClass.getDocComment();
|
||||
if (docComment != null) {
|
||||
|
||||
Reference in New Issue
Block a user