Ejemplo n.º 1
0
 @Override
 public void setProperties(List<Property> properties) {
   if (!properties.isEmpty()) {
     properties = new ArrayList<Property>(properties);
     properties.add(NAME_PROPERTY);
     properties.add(CLASS_PROPERTY);
     properties.add(IdProperty.INSTANCE);
     properties.add(TAG_PROPERTY);
   }
   super.setProperties(properties);
 }
Ejemplo n.º 2
0
 @Override
 public boolean addPopupActions(
     @NotNull AndroidDesignerEditorPanel designer,
     @NotNull DefaultActionGroup beforeGroup,
     @NotNull DefaultActionGroup afterGroup,
     @Nullable JComponent shortcuts,
     @NotNull List<RadComponent> selection) {
   super.addPopupActions(designer, beforeGroup, afterGroup, shortcuts, selection);
   beforeGroup.add(new AssignFragmentLayoutAction(designer));
   beforeGroup.addSeparator();
   return true;
 }