From d29425e7adacebc5e38311d32f97cb04d77f6837 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Wed, 25 Jun 2014 11:55:58 +0200 Subject: [PATCH] Cleanup (formatting) --- .../ClassesOrderRootTypeUIFactory.java | 13 +++++----- .../roots/ui/OrderRootTypeUIFactory.java | 25 +++++++++---------- 2 files changed, 18 insertions(+), 20 deletions(-) diff --git a/java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/libraryEditor/ClassesOrderRootTypeUIFactory.java b/java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/libraryEditor/ClassesOrderRootTypeUIFactory.java index 92b110caef43..c2d3d801a211 100644 --- a/java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/libraryEditor/ClassesOrderRootTypeUIFactory.java +++ b/java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/libraryEditor/ClassesOrderRootTypeUIFactory.java @@ -13,11 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - -/* - * User: anna - * Date: 26-Dec-2007 - */ package com.intellij.openapi.roots.ui.configuration.libraryEditor; import com.intellij.icons.AllIcons; @@ -30,11 +25,15 @@ import com.intellij.openapi.roots.ui.OrderRootTypeUIFactory; import javax.swing.*; +/** + * @author anna + * @since 26-Dec-2007 + */ public class ClassesOrderRootTypeUIFactory implements OrderRootTypeUIFactory { - @Override public SdkPathEditor createPathEditor(Sdk sdk) { - return new SdkPathEditor(ProjectBundle.message("sdk.configure.classpath.tab"), OrderRootType.CLASSES, new FileChooserDescriptor(true, true, true, false, true, true)); + FileChooserDescriptor descriptor = new FileChooserDescriptor(true, true, true, false, true, true); + return new SdkPathEditor(ProjectBundle.message("sdk.configure.classpath.tab"), OrderRootType.CLASSES, descriptor); } @Override diff --git a/platform/lang-api/src/com/intellij/openapi/roots/ui/OrderRootTypeUIFactory.java b/platform/lang-api/src/com/intellij/openapi/roots/ui/OrderRootTypeUIFactory.java index ee36676ec5fc..021c055dd70f 100644 --- a/platform/lang-api/src/com/intellij/openapi/roots/ui/OrderRootTypeUIFactory.java +++ b/platform/lang-api/src/com/intellij/openapi/roots/ui/OrderRootTypeUIFactory.java @@ -13,11 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - -/* - * User: anna - * Date: 26-Dec-2007 - */ package com.intellij.openapi.roots.ui; import com.intellij.openapi.application.ApplicationManager; @@ -31,16 +26,20 @@ import org.jetbrains.annotations.NotNull; import javax.swing.*; +/** + * @author anna + * @since 26-Dec-2007 + */ public interface OrderRootTypeUIFactory { ExtensionPointName EP_NAME = ExtensionPointName.create("com.intellij.OrderRootTypeUI"); - KeyedExtensionFactory FACTORY = new KeyedExtensionFactory(OrderRootTypeUIFactory.class, EP_NAME, - ApplicationManager - .getApplication().getPicoContainer()) { - @Override - public String getKey(@NotNull final OrderRootType key) { - return key.name(); - } - }; + + KeyedExtensionFactory FACTORY = + new KeyedExtensionFactory(OrderRootTypeUIFactory.class, EP_NAME, ApplicationManager.getApplication().getPicoContainer()) { + @Override + public String getKey(@NotNull final OrderRootType key) { + return key.name(); + } + }; SdkPathEditor createPathEditor(Sdk sdk);