com.intellij.uiDesigner.componentTree.ComponentTree



API Populatity

1 Client projects

Project: com.intellij

Project JetBrains/intellij-community in file ...j.uiDesigner.inspections.NoLabelForInspection.java (2006-06-06)
@@ -6,7 +6,6 @@ import com.intellij.openapi.util.text.StringUtil;
 import com.intellij.uiDesigner.FormEditingUtil;
 import com.intellij.uiDesigner.SwingProperties;
 import com.intellij.uiDesigner.UIDesignerBundle;
-import com.intellij.uiDesigner.componentTree.ComponentTree;
 import com.intellij.uiDesigner.core.GridConstraints;
 import com.intellij.uiDesigner.designSurface.GuiEditor;
 import com.intellij.uiDesigner.lw.IComponent;
@@ -83,7 +82,7 @@ public class NoLabelForInspection extends BaseFormInspection {
 
     public MyQuickFix(final GuiEditor editor, RadComponent component, RadComponent label) {
       super(editor, UIDesignerBundle.message("inspection.no.label.for.quickfix",
-                                             ComponentTree.getComponentTitle(label)), component);
+                                             label.getComponentTitle()), component);
       myLabel = label;
     }
 
Project JetBrains/intellij-community in file ....uiDesigner.designSurface.QuickFixManagerImpl.java (2010-04-02)
@@ -18,10 +18,9 @@ package com.intellij.uiDesigner.designSurface;
 import com.intellij.uiDesigner.ErrorAnalyzer;
 import com.intellij.uiDesigner.ErrorInfo;
 import com.intellij.uiDesigner.FormEditingUtil;
-import com.intellij.uiDesigner.radComponents.RadComponent;
-import com.intellij.uiDesigner.componentTree.ComponentTree;
 import com.intellij.uiDesigner.propertyInspector.UIDesignerToolWindowManager;
 import com.intellij.uiDesigner.quickFixes.QuickFixManager;
+import com.intellij.uiDesigner.radComponents.RadComponent;
 import org.jetbrains.annotations.NotNull;
 
 import javax.swing.*;
@@ -36,8 +35,8 @@ import java.util.ArrayList;
 public class QuickFixManagerImpl extends QuickFixManager<GlassLayer> {
   public QuickFixManagerImpl(final GuiEditor editor, final GlassLayer component, final JViewport viewPort) {
     super(editor, component, viewPort);
-    final ComponentTree tree = UIDesignerToolWindowManager.getInstance(editor.getProject()).getComponentTree();
-    tree.addTreeSelectionListener(new TreeSelectionListener() {
+    final UIDesignerToolWindowManager toolWindowManager = UIDesignerToolWindowManager.getInstance(editor.getProject());
+    toolWindowManager.addComponentSelectionListener(new TreeSelectionListener() {
       public void valueChanged(TreeSelectionEvent e) {
         hideIntentionHint();
         updateIntentionHintVisibility();
Project JetBrains/intellij-community in file ....uiDesigner.designSurface.QuickFixManagerImpl.java (2006-01-24)
@@ -4,6 +4,8 @@ import com.intellij.uiDesigner.ErrorInfo;
 import com.intellij.uiDesigner.FormEditingUtil;
 import com.intellij.uiDesigner.RadComponent;
 import com.intellij.uiDesigner.ErrorAnalyzer;
+import com.intellij.uiDesigner.componentTree.ComponentTree;
+import com.intellij.uiDesigner.propertyInspector.UIDesignerToolWindowManager;
 import com.intellij.uiDesigner.quickFixes.QuickFixManager;
 
 import javax.swing.*;
@@ -18,7 +20,8 @@ import java.util.ArrayList;
 public class QuickFixManagerImpl extends QuickFixManager<GlassLayer> {
   public QuickFixManagerImpl(final GuiEditor editor, final GlassLayer component) {
     super(editor, component);
-    getEditor().getComponentTree().addTreeSelectionListener(new TreeSelectionListener() {
+    final ComponentTree tree = UIDesignerToolWindowManager.getInstance(editor.getProject()).getComponentTree();
+    tree.addTreeSelectionListener(new TreeSelectionListener() {
       public void valueChanged(TreeSelectionEvent e) {
         hideIntentionHint();
         updateIntentionHintVisibility();