Recaf icon indicating copy to clipboard operation
Recaf copied to clipboard

Provide an interface that enables plugins to add Transformers to the DeobfuscationWindow

Open luiox opened this issue 6 months ago • 1 comments

Provide an interface that enables plugins to add Transformers to the DeobfuscationWindow

Assuming that the current manual loading of the transformer into the DeobfuscationWindow remains unchanged, provide an interface for the Plugin to add a new transformer.

In this way, the existing transformer can be reused through a plugin as an adapter, eliminating the need to re-transplant the existing transformer.

luiox avatar Jun 30 '25 07:06 luiox

Per the comment in the window class: https://github.com/Col-E/Recaf/blob/master/recaf-ui/src/main/java/software/coley/recaf/ui/window/DeobfuscationWindow.java#L135

// TODO: It would be nice to have the tree be auto-generated in some fashion.
//  - But we may not want a flat category system, so an enum probably is too short-sighted.
//  - It also shouldn't be annoying to configure for each transformer and how they show in the UI _(Without relying on anything in our UI module)_.
//  - Not all transformers necessarily should be shown, so there needs to be some sort of filter system.

Col-E avatar Jun 30 '25 16:06 Col-E