forked from Fascinated/Bat
impl drag feature
This commit is contained in:
@ -0,0 +1,23 @@
|
||||
package cc.fascinated.bat.features.drag;
|
||||
|
||||
import cc.fascinated.bat.command.Category;
|
||||
import cc.fascinated.bat.features.Feature;
|
||||
import cc.fascinated.bat.features.drag.command.DragCommand;
|
||||
import cc.fascinated.bat.service.CommandService;
|
||||
import lombok.NonNull;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* @author Fascinated (fascinated7)
|
||||
*/
|
||||
@Component
|
||||
public class DragFeature extends Feature {
|
||||
@Autowired
|
||||
public DragFeature(@NonNull ApplicationContext context, @NonNull CommandService commandService) {
|
||||
super("Drag", true,Category.GENERAL);
|
||||
|
||||
super.registerCommand(commandService, context.getBean(DragCommand.class));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user