Java 类com.intellij.uiDesigner.actions.SurroundAction 实例源码

项目:intellij-ce-playground    文件:NoScrollPaneInspection.java   
public void run() {
  String scrollPane = JScrollPane.class.getName();
  ComponentItem item = Palette.getInstance(myEditor.getProject()).getItem(scrollPane);

  SurroundAction action = new SurroundAction(item == null ? JBScrollPane.class.getName() : scrollPane);

  ArrayList<RadComponent> targetList = new ArrayList<RadComponent>(Collections.singletonList(myComponent));
  action.actionPerformed(myEditor, targetList, null);
}
项目:tools-idea    文件:NoScrollPaneInspection.java   
public void run() {
  String scrollPane = JScrollPane.class.getName();
  ComponentItem item = Palette.getInstance(myEditor.getProject()).getItem(scrollPane);

  SurroundAction action = new SurroundAction(item == null ? JBScrollPane.class.getName() : scrollPane);

  ArrayList<RadComponent> targetList = new ArrayList<RadComponent>(Collections.singletonList(myComponent));
  action.actionPerformed(myEditor, targetList, null);
}
项目:consulo-ui-designer    文件:NoScrollPaneInspection.java   
public void run() {
  String scrollPane = JScrollPane.class.getName();
  ComponentItem item = Palette.getInstance(myEditor.getProject()).getItem(scrollPane);

  SurroundAction action = new SurroundAction(item == null ? JBScrollPane.class.getName() : scrollPane);

  ArrayList<RadComponent> targetList = new ArrayList<RadComponent>(Collections.singletonList(myComponent));
  action.actionPerformed(myEditor, targetList, null);
}