Apply a quicklist with description ending on ONLY only when the filtype matches #357
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I would like to be able to perform an action only on certain filetypes. In our case we want properties to be sorted on save. For this purpose we use a quicklist and an external plugin. With this change if a quicklist (that is executed by save actions) has a description that ends with the word ONLY, the previous word is expected to be the filetype and the quicklist is executed only for these filetypes. In our case the quicklist's description is 'properties ONLY', then it is only executed for properties file.
This would become much more powerful if multiple quicklists could be selected. This probably would be a useful feature.
I am having two problems when trying to build the plugin:
com/dubreuia/processors/GlobalProcessor.java:43
is marked as an error as there is noCOMMAND_NAME
Any idea what the problem might be?
However testing with the
runIde
target works fine.