use of jetbrains.communicator.commands.SendCodePointerCommand in project intellij-plugins by JetBrains.
the class SendCodePointerAction method prepareCommand.
protected void prepareCommand(FileCommand command, Editor editor, MutablePicoContainer container) {
CodePointer codePointer = ActionUtil.getCodePointer(editor);
((SendCodePointerCommand) command).setCodePointer(codePointer);
}
use of jetbrains.communicator.commands.SendCodePointerCommand in project intellij-plugins by JetBrains.
the class SendToAction method doActionCommand.
protected void doActionCommand(final User user, final VirtualFile file, final Editor editor) {
VFile vFile = VFSUtil.createFileFrom(file, editor.getProject());
if (vFile == null) {
LOG.info("Unable to send code pointer for " + file);
return;
}
CodePointer codePointer = ActionUtil.getCodePointer(editor);
SendCodePointerCommand command = Pico.getCommandManager().getCommand(SendCodePointerCommand.class, BaseAction.getContainer(editor.getProject()));
command.setCodePointer(codePointer);
command.setVFile(vFile);
command.setUser(user);
command.execute();
}
Aggregations