From 7be1cd15700319b3231d43f6234b2ae548f48ce0 Mon Sep 17 00:00:00 2001 From: Yann Cebron Date: Mon, 30 May 2011 10:26:22 +0400 Subject: [PATCH] IDEA-63542 "Copyright" settings/table list settings UI glitches --- .../idea/copyright/ui/TemplateCommentPanel.form | 13 +++++++++---- .../idea/copyright/ui/TemplateCommentPanel.java | 5 +---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/plugins/copyright/src/com/maddyhome/idea/copyright/ui/TemplateCommentPanel.form b/plugins/copyright/src/com/maddyhome/idea/copyright/ui/TemplateCommentPanel.form index ab1deeb0ab90..6d794134ef56 100644 --- a/plugins/copyright/src/com/maddyhome/idea/copyright/ui/TemplateCommentPanel.form +++ b/plugins/copyright/src/com/maddyhome/idea/copyright/ui/TemplateCommentPanel.form @@ -24,7 +24,7 @@ - + @@ -74,7 +74,7 @@ - + @@ -111,6 +111,11 @@ + + + + + @@ -183,7 +188,7 @@ - + @@ -191,7 +196,7 @@ - + diff --git a/plugins/copyright/src/com/maddyhome/idea/copyright/ui/TemplateCommentPanel.java b/plugins/copyright/src/com/maddyhome/idea/copyright/ui/TemplateCommentPanel.java index aefc040dac23..eff607f210b4 100644 --- a/plugins/copyright/src/com/maddyhome/idea/copyright/ui/TemplateCommentPanel.java +++ b/plugins/copyright/src/com/maddyhome/idea/copyright/ui/TemplateCommentPanel.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2009 JetBrains s.r.o. + * Copyright 2000-2011 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. @@ -23,7 +23,6 @@ import com.intellij.openapi.fileTypes.StdFileTypes; import com.intellij.openapi.options.ConfigurationException; import com.intellij.openapi.options.SearchableConfigurable; import com.intellij.openapi.project.Project; -import com.intellij.psi.codeStyle.CodeStyleSettingsManager; import com.intellij.ui.DocumentAdapter; import com.intellij.uiDesigner.core.GridConstraints; import com.intellij.util.ui.UIUtil; @@ -157,8 +156,6 @@ public class TemplateCommentPanel implements SearchableConfigurable { preview.setFont(EditorColorsManager.getInstance().getGlobalScheme().getFont(EditorFontType.PLAIN)); - preview.setColumns(CodeStyleSettingsManager.getInstance(project).getCurrentSettings().RIGHT_MARGIN); - myUseDefaultSettingsRadioButton.setSelected(true); final ActionListener listener = new ActionListener() {