...
Code Block | ||
---|---|---|
| ||
@Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) public @interface Macro { /** * Default status if macro is enabled. */ boolean DEFAULT_STATUS = true; /** * Returns if macro is enabled. Default is 'true'. */ boolean enabled() default DEFAULT_STATUS; } |
Code Block |
---|
/**
* Contains information about a property used by a plugin.
*/
@Beta
public class PluginPropertyField {
private final String name;
private final String description;
private final String type;
private final boolean required;
// returns true if this field can accept macro
private final boolean macroEnabled;
...
} |
Changes to Existing Plugins (WIP)
...