Skip to content

Commit

Permalink
Code reformat using IJ4 code style (part 9).
Browse files Browse the repository at this point in the history
  • Loading branch information
unv-unv committed Aug 1, 2024
1 parent ab81786 commit 03a1a5b
Show file tree
Hide file tree
Showing 25 changed files with 2,423 additions and 2,230 deletions.
303 changes: 154 additions & 149 deletions plugin/src/main/java/org/jetbrains/idea/devkit/dom/Action.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,153 +32,158 @@
* plugin.dtd:action interface.
*/
public interface Action extends ActionOrGroup {

/**
* Returns the value of the popup child.
* Attribute popup
*
* @return the value of the popup child.
*/
@Nonnull
GenericAttributeValue<Boolean> getPopup();


/**
* Returns the value of the icon child.
* Attribute icon
*
* @return the value of the icon child.
*/
@Nonnull
GenericAttributeValue<String> getIcon();


/**
* Returns the value of the description child.
* Attribute description
*
* @return the value of the description child.
*/
@Nonnull
GenericAttributeValue<String> getDescription();


/**
* Returns the value of the class child.
* Attribute class
*
* @return the value of the class child.
*/
@Nonnull
@Attribute("class")
@Required
@ExtendClass(value = "com.intellij.openapi.actionSystem.AnAction", instantiatable = false, allowNonPublic = true, allowAbstract = false, allowInterface = false)
@Convert(PluginPsiClassConverter.class)
GenericAttributeValue<PsiClass> getClazz();


/**
* Returns the value of the text child.
* Attribute text
*
* @return the value of the text child.
*/
@Nonnull
@Stubbed
GenericAttributeValue<String> getText();

/**
* Returns the value of the id child.
* Attribute id
*
* @return the value of the id child.
*/
@Nonnull
@Required
@Stubbed
GenericAttributeValue<String> getId();

/**
* Returns the list of keyboard-shortcut children.
*
* @return the list of keyboard-shortcut children.
*/
@Nonnull
List<KeyboardShortcut> getKeyboardShortcuts();

/**
* Adds new child to the list of keyboard-shortcut children.
*
* @return created child
*/
KeyboardShortcut addKeyboardShortcut();


/**
* Returns the list of mouse-shortcut children.
*
* @return the list of mouse-shortcut children.
*/
@Nonnull
List<MouseShortcut> getMouseShortcuts();

/**
* Adds new child to the list of mouse-shortcut children.
*
* @return created child
*/
MouseShortcut addMouseShortcut();


/**
* Returns the list of shortcut children.
*
* @return the list of shortcut children.
*/
@Nonnull
List<Shortcut> getShortcuts();

/**
* Adds new child to the list of shortcut children.
*
* @return created child
*/
Shortcut addShortcut();

/**
* Returns the list of add-to-group children.
*
* @return the list of add-to-group children.
*/
@Nonnull
List<AddToGroup> getAddToGroups();

/**
* Adds new child to the list of add-to-group children.
*
* @return created child
*/
AddToGroup addAddToGroup();

@Nonnull
@Convert(ActionOrGroupResolveConverter.OnlyActions.class)
GenericAttributeValue<ActionOrGroup> getUseShortcutOf();

@Nonnull
GenericAttributeValue<String> getKeymap();

/**
* Return internal flag - show in internal Consulo mode.
*/
@Nonnull
GenericAttributeValue<Boolean> isInternal();

@Nonnull
GenericAttributeValue<Boolean> isSecondary();

@Nonnull
GenericAttributeValue<Boolean> isCanUseProjectAsDefault();

@Nonnull
GenericAttributeValue<String> getRequireModuleExtensions();
/**
* Returns the value of the popup child.
* Attribute popup
*
* @return the value of the popup child.
*/
@Nonnull
GenericAttributeValue<Boolean> getPopup();


/**
* Returns the value of the icon child.
* Attribute icon
*
* @return the value of the icon child.
*/
@Nonnull
GenericAttributeValue<String> getIcon();


/**
* Returns the value of the description child.
* Attribute description
*
* @return the value of the description child.
*/
@Nonnull
GenericAttributeValue<String> getDescription();


/**
* Returns the value of the class child.
* Attribute class
*
* @return the value of the class child.
*/
@Nonnull
@Attribute("class")
@Required
@ExtendClass(
value = "com.intellij.openapi.actionSystem.AnAction",
instantiatable = false,
allowNonPublic = true,
allowAbstract = false,
allowInterface = false
)
@Convert(PluginPsiClassConverter.class)
GenericAttributeValue<PsiClass> getClazz();


/**
* Returns the value of the text child.
* Attribute text
*
* @return the value of the text child.
*/
@Nonnull
@Stubbed
GenericAttributeValue<String> getText();

/**
* Returns the value of the id child.
* Attribute id
*
* @return the value of the id child.
*/
@Nonnull
@Required
@Stubbed
GenericAttributeValue<String> getId();

/**
* Returns the list of keyboard-shortcut children.
*
* @return the list of keyboard-shortcut children.
*/
@Nonnull
List<KeyboardShortcut> getKeyboardShortcuts();

/**
* Adds new child to the list of keyboard-shortcut children.
*
* @return created child
*/
KeyboardShortcut addKeyboardShortcut();


/**
* Returns the list of mouse-shortcut children.
*
* @return the list of mouse-shortcut children.
*/
@Nonnull
List<MouseShortcut> getMouseShortcuts();

/**
* Adds new child to the list of mouse-shortcut children.
*
* @return created child
*/
MouseShortcut addMouseShortcut();


/**
* Returns the list of shortcut children.
*
* @return the list of shortcut children.
*/
@Nonnull
List<Shortcut> getShortcuts();

/**
* Adds new child to the list of shortcut children.
*
* @return created child
*/
Shortcut addShortcut();

/**
* Returns the list of add-to-group children.
*
* @return the list of add-to-group children.
*/
@Nonnull
List<AddToGroup> getAddToGroups();

/**
* Adds new child to the list of add-to-group children.
*
* @return created child
*/
AddToGroup addAddToGroup();

@Nonnull
@Convert(ActionOrGroupResolveConverter.OnlyActions.class)
GenericAttributeValue<ActionOrGroup> getUseShortcutOf();

@Nonnull
GenericAttributeValue<String> getKeymap();

/**
* Return internal flag - show in internal Consulo mode.
*/
@Nonnull
GenericAttributeValue<Boolean> isInternal();

@Nonnull
GenericAttributeValue<Boolean> isSecondary();

@Nonnull
GenericAttributeValue<Boolean> isCanUseProjectAsDefault();

@Nonnull
GenericAttributeValue<String> getRequireModuleExtensions();
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@
* @since 15
*/
public interface ActionOrGroup extends DomElement {

@Nonnull
@NameValue
@Stubbed
@Required(value = false, nonEmpty = true)
GenericAttributeValue<String> getId();
@Nonnull
@NameValue
@Stubbed
@Required(value = false, nonEmpty = true)
GenericAttributeValue<String> getId();
}
23 changes: 11 additions & 12 deletions plugin/src/main/java/org/jetbrains/idea/devkit/dom/Actions.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,20 @@
import java.util.List;

public interface Actions extends DomElement {
@Nonnull
@Stubbed
List<Action> getActions();
@Nonnull
@Stubbed
List<Action> getActions();

Action addAction();
Action addAction();

@Nonnull
@Stubbed
List<Group> getGroups();

@Nonnull
@Stubbed
List<Group> getGroups();
Group addGroup();

Group addGroup();
@Nonnull
List<Reference> getReferences();

@Nonnull
List<Reference> getReferences();

Reference addReference();
Reference addReference();
}
Loading

0 comments on commit 03a1a5b

Please sign in to comment.