chore: rename to mp.code.ij

This commit is contained in:
zaaarf 2024-10-17 03:11:02 +02:00
parent 7464a69ee9
commit b577ec9c21
No known key found for this signature in database
GPG key ID: 102E445F4C3F829B
35 changed files with 109 additions and 112 deletions

View file

@ -1,4 +1,4 @@
package mp.code.intellij;
package mp.code.ij;
import com.google.common.collect.BiMap;
import com.google.common.collect.HashBiMap;
@ -9,7 +9,7 @@ import mp.code.Extensions;
import mp.code.Workspace;
import mp.code.data.Config;
import mp.code.exceptions.ConnectionException;
import mp.code.intellij.exceptions.ide.NotConnectedException;
import mp.code.ij.exceptions.ide.NotConnectedException;
import mp.code.Client;
import java.nio.file.Path;

View file

@ -1,8 +1,8 @@
package mp.code.intellij.actions;
package mp.code.ij.actions;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import mp.code.intellij.util.InteractionUtil;
import mp.code.ij.util.InteractionUtil;
import org.jetbrains.annotations.NotNull;
public class ConnectAction extends AnAction {

View file

@ -1,10 +1,10 @@
package mp.code.intellij.actions;
package mp.code.ij.actions;
import com.intellij.openapi.actionSystem.ActionUpdateThread;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import mp.code.intellij.CodeMP;
import mp.code.intellij.util.InteractionUtil;
import mp.code.ij.CodeMP;
import mp.code.ij.util.InteractionUtil;
import org.jetbrains.annotations.NotNull;
public class DisconnectAction extends AnAction {

View file

@ -1,4 +1,4 @@
package mp.code.intellij.actions.buffer;
package mp.code.ij.actions.buffer;
import com.intellij.openapi.actionSystem.ActionUpdateThread;
import com.intellij.openapi.actionSystem.AnAction;
@ -13,10 +13,10 @@ import com.intellij.openapi.project.Project;
import com.intellij.openapi.ui.Messages;
import mp.code.BufferController;
import mp.code.exceptions.ControllerException;
import mp.code.intellij.CodeMP;
import mp.code.intellij.util.FileUtil;
import mp.code.intellij.util.InteractionUtil;
import mp.code.intellij.util.cb.BufferCallback;
import mp.code.ij.CodeMP;
import mp.code.ij.util.FileUtil;
import mp.code.ij.util.InteractionUtil;
import mp.code.ij.util.cb.BufferCallback;
import org.jetbrains.annotations.NotNull;
import java.util.Optional;

View file

@ -1,11 +1,11 @@
package mp.code.intellij.actions.buffer;
package mp.code.ij.actions.buffer;
import com.intellij.openapi.actionSystem.ActionUpdateThread;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.ui.Messages;
import mp.code.exceptions.ConnectionRemoteException;
import mp.code.intellij.CodeMP;
import mp.code.ij.CodeMP;
import org.jetbrains.annotations.NotNull;
public class BufferCreateAction extends AnAction {

View file

@ -1,11 +1,11 @@
package mp.code.intellij.actions.buffer;
package mp.code.ij.actions.buffer;
import com.intellij.openapi.actionSystem.ActionUpdateThread;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.ui.Messages;
import mp.code.exceptions.ConnectionRemoteException;
import mp.code.intellij.CodeMP;
import mp.code.ij.CodeMP;
import org.jetbrains.annotations.NotNull;
public class BufferDeleteAction extends AnAction {

View file

@ -1,11 +1,11 @@
package mp.code.intellij.actions.buffer;
package mp.code.ij.actions.buffer;
import com.intellij.openapi.actionSystem.ActionUpdateThread;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.ui.Messages;
import mp.code.BufferController;
import mp.code.intellij.CodeMP;
import mp.code.ij.CodeMP;
import org.jetbrains.annotations.NotNull;
import java.nio.file.Path;

View file

@ -1,4 +1,4 @@
package mp.code.intellij.actions.buffer;
package mp.code.ij.actions.buffer;
import com.intellij.openapi.actionSystem.ActionUpdateThread;
import com.intellij.openapi.actionSystem.AnAction;
@ -9,8 +9,8 @@ import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.ui.Messages;
import mp.code.BufferController;
import mp.code.exceptions.ControllerException;
import mp.code.intellij.CodeMP;
import mp.code.intellij.util.FileUtil;
import mp.code.ij.CodeMP;
import mp.code.ij.util.FileUtil;
import org.jetbrains.annotations.NotNull;

View file

@ -1,8 +1,8 @@
package mp.code.intellij.actions.workspace;
package mp.code.ij.actions.workspace;
import com.intellij.openapi.actionSystem.ActionUpdateThread;
import mp.code.intellij.CodeMP;
import mp.code.intellij.util.InteractionUtil;
import mp.code.ij.CodeMP;
import mp.code.ij.util.InteractionUtil;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.ui.Messages;

View file

@ -1,12 +1,12 @@
package mp.code.intellij.actions.workspace;
package mp.code.ij.actions.workspace;
import com.intellij.openapi.actionSystem.ActionUpdateThread;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.ui.Messages;
import mp.code.intellij.CodeMP;
import mp.code.intellij.util.InteractionUtil;
import mp.code.ij.CodeMP;
import mp.code.ij.util.InteractionUtil;
import org.jetbrains.annotations.NotNull;
public class WorkspaceCreateAction extends AnAction {

View file

@ -1,12 +1,12 @@
package mp.code.intellij.actions.workspace;
package mp.code.ij.actions.workspace;
import com.intellij.openapi.actionSystem.ActionUpdateThread;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.ui.Messages;
import mp.code.intellij.CodeMP;
import mp.code.intellij.util.InteractionUtil;
import mp.code.ij.CodeMP;
import mp.code.ij.util.InteractionUtil;
import org.jetbrains.annotations.NotNull;
public class WorkspaceDeleteAction extends AnAction {

View file

@ -1,11 +1,11 @@
package mp.code.intellij.actions.workspace;
package mp.code.ij.actions.workspace;
import com.intellij.openapi.actionSystem.ActionUpdateThread;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.ui.Messages;
import mp.code.intellij.CodeMP;
import mp.code.intellij.util.InteractionUtil;
import mp.code.ij.CodeMP;
import mp.code.ij.util.InteractionUtil;
import org.jetbrains.annotations.NotNull;
public class WorkspaceInviteAction extends AnAction {

View file

@ -1,10 +1,10 @@
package mp.code.intellij.actions.workspace;
package mp.code.ij.actions.workspace;
import com.intellij.openapi.actionSystem.ActionUpdateThread;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import mp.code.intellij.CodeMP;
import mp.code.intellij.util.InteractionUtil;
import mp.code.ij.CodeMP;
import mp.code.ij.util.InteractionUtil;
import org.jetbrains.annotations.NotNull;
import java.util.Objects;

View file

@ -1,4 +1,4 @@
package mp.code.intellij.exceptions;
package mp.code.ij.exceptions;
public class CodeMPIJException extends RuntimeException {
public CodeMPIJException(String s) {

View file

@ -1,6 +1,6 @@
package mp.code.intellij.exceptions.ide;
package mp.code.ij.exceptions.ide;
import mp.code.intellij.exceptions.CodeMPIJException;
import mp.code.ij.exceptions.CodeMPIJException;
/**
* Fired when trying to access the CodeMP client without first connecting

View file

@ -1,11 +1,11 @@
package mp.code.intellij.listeners;
package mp.code.ij.listeners;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.editor.EditorFactory;
import com.intellij.openapi.vfs.VirtualFile;
import lombok.SneakyThrows;
import mp.code.exceptions.ControllerException;
import mp.code.intellij.CodeMP;
import mp.code.ij.CodeMP;
import com.intellij.openapi.command.CommandProcessor;
import com.intellij.openapi.editor.event.DocumentEvent;
import com.intellij.openapi.editor.event.DocumentListener;

View file

@ -1,12 +1,12 @@
package mp.code.intellij.listeners;
package mp.code.ij.listeners;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.editor.LogicalPosition;
import com.intellij.openapi.vfs.VirtualFile;
import mp.code.data.Selection;
import mp.code.exceptions.ControllerException;
import mp.code.intellij.CodeMP;
import mp.code.intellij.util.FileUtil;
import mp.code.ij.CodeMP;
import mp.code.ij.util.FileUtil;
import com.intellij.openapi.editor.Caret;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.editor.event.CaretEvent;

View file

@ -1,4 +1,4 @@
package mp.code.intellij.settings;
package mp.code.ij.settings;
import com.intellij.credentialStore.CredentialAttributes;
import com.intellij.credentialStore.CredentialAttributesKt;

View file

@ -1,4 +1,4 @@
package mp.code.intellij.settings;
package mp.code.ij.settings;
import com.intellij.credentialStore.Credentials;
import com.intellij.credentialStore.OneTimeString;

View file

@ -1,4 +1,4 @@
package mp.code.intellij.ui;
package mp.code.ij.ui;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.editor.Editor;
@ -13,10 +13,10 @@ import mp.code.BufferController;
import mp.code.Workspace;
import mp.code.data.TextChange;
import mp.code.exceptions.ControllerException;
import mp.code.intellij.CodeMP;
import mp.code.intellij.util.FileUtil;
import mp.code.intellij.util.InteractionUtil;
import mp.code.intellij.util.cb.BufferCallback;
import mp.code.ij.CodeMP;
import mp.code.ij.util.FileUtil;
import mp.code.ij.util.InteractionUtil;
import mp.code.ij.util.cb.BufferCallback;
import javax.swing.*;
import javax.swing.tree.DefaultMutableTreeNode;

View file

@ -1,4 +1,4 @@
package mp.code.intellij.ui;
package mp.code.ij.ui;
import com.intellij.openapi.project.DumbAware;
import com.intellij.openapi.project.Project;
@ -6,7 +6,7 @@ import com.intellij.openapi.wm.ToolWindow;
import com.intellij.openapi.wm.ToolWindowFactory;
import com.intellij.ui.content.Content;
import com.intellij.ui.content.ContentFactory;
import mp.code.intellij.CodeMP;
import mp.code.ij.CodeMP;
import org.jetbrains.annotations.NotNull;
public class CodeMPWindowFactory implements ToolWindowFactory, DumbAware {

View file

@ -1,4 +1,4 @@
package mp.code.intellij.ui;
package mp.code.ij.ui;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

View file

@ -1,4 +1,4 @@
package mp.code.intellij.util;
package mp.code.ij.util;
import com.intellij.ui.JBColor;

View file

@ -1,4 +1,4 @@
package mp.code.intellij.util;
package mp.code.ij.util;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.fileEditor.FileEditor;
@ -12,8 +12,8 @@ import com.intellij.openapi.vfs.VirtualFile;
import mp.code.BufferController;
import mp.code.exceptions.ConnectionException;
import mp.code.exceptions.ControllerException;
import mp.code.intellij.CodeMP;
import mp.code.intellij.vfs.CodeMPPath;
import mp.code.ij.CodeMP;
import mp.code.ij.vfs.CodeMPPath;
import java.io.IOException;
import java.util.Arrays;

View file

@ -1,4 +1,4 @@
package mp.code.intellij.util;
package mp.code.ij.util;
import com.intellij.credentialStore.Credentials;
import com.intellij.notification.Notification;
@ -19,13 +19,13 @@ import mp.code.Client;
import mp.code.Workspace;
import mp.code.exceptions.ConnectionException;
import mp.code.exceptions.ConnectionRemoteException;
import mp.code.intellij.CodeMP;
import mp.code.intellij.listeners.BufferEventListener;
import mp.code.intellij.listeners.CursorEventListener;
import mp.code.intellij.settings.CodeMPSettings;
import mp.code.intellij.ui.CodeMPToolPanel;
import mp.code.intellij.util.cb.CursorCallback;
import mp.code.intellij.util.cb.WorkspaceCallback;
import mp.code.ij.CodeMP;
import mp.code.ij.listeners.BufferEventListener;
import mp.code.ij.listeners.CursorEventListener;
import mp.code.ij.settings.CodeMPSettings;
import mp.code.ij.ui.CodeMPToolPanel;
import mp.code.ij.util.cb.CursorCallback;
import mp.code.ij.util.cb.WorkspaceCallback;
import org.apache.commons.lang3.ArrayUtils;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

View file

@ -1,4 +1,4 @@
package mp.code.intellij.util;
package mp.code.ij.util;
import com.intellij.openapi.Disposable;
import com.intellij.openapi.util.Disposer;

View file

@ -1,4 +1,4 @@
package mp.code.intellij.util.cb;
package mp.code.ij.util.cb;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.command.CommandProcessor;
@ -9,8 +9,8 @@ import mp.code.BufferController;
import mp.code.Extensions;
import mp.code.data.BufferUpdate;
import mp.code.exceptions.ControllerException;
import mp.code.intellij.CodeMP;
import mp.code.intellij.util.FileUtil;
import mp.code.ij.CodeMP;
import mp.code.ij.util.FileUtil;
import java.util.ArrayList;
import java.util.List;

View file

@ -1,4 +1,4 @@
package mp.code.intellij.util.cb;
package mp.code.ij.util.cb;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.editor.Editor;
@ -11,10 +11,10 @@ import lombok.RequiredArgsConstructor;
import mp.code.CursorController;
import mp.code.data.Cursor;
import mp.code.exceptions.ControllerException;
import mp.code.intellij.CodeMP;
import mp.code.intellij.util.ColorUtil;
import mp.code.intellij.util.FileUtil;
import mp.code.intellij.util.InteractionUtil;
import mp.code.ij.CodeMP;
import mp.code.ij.util.ColorUtil;
import mp.code.ij.util.FileUtil;
import mp.code.ij.util.InteractionUtil;
import java.awt.*;
import java.util.Optional;

View file

@ -1,12 +1,12 @@
package mp.code.intellij.util.cb;
package mp.code.ij.util.cb;
import com.intellij.openapi.editor.markup.RangeHighlighter;
import com.intellij.openapi.project.Project;
import lombok.RequiredArgsConstructor;
import mp.code.Workspace;
import mp.code.exceptions.ControllerException;
import mp.code.intellij.CodeMP;
import mp.code.intellij.util.InteractionUtil;
import mp.code.ij.CodeMP;
import mp.code.ij.util.InteractionUtil;
import java.util.Optional;
import java.util.concurrent.Executor;

View file

@ -1,7 +1,7 @@
package mp.code.intellij.vfs;
package mp.code.ij.vfs;
import lombok.Getter;
import mp.code.intellij.CodeMP;
import mp.code.ij.CodeMP;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

View file

@ -1,13 +1,10 @@
package mp.code.intellij.vfs;
package mp.code.ij.vfs;
import com.intellij.ide.projectView.impl.ProjectTreeStructure;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.openapi.vfs.VirtualFileWithId;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import mp.code.exceptions.ControllerException;
import mp.code.intellij.CodeMP;
import mp.code.intellij.util.FileUtil;
import mp.code.ij.util.FileUtil;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

View file

@ -1,4 +1,4 @@
package mp.code.intellij.vfs;
package mp.code.ij.vfs;
import com.intellij.platform.workspace.jps.entities.ModuleEntity;
import com.intellij.platform.workspace.storage.EntityStorage;

View file

@ -1,4 +1,4 @@
package mp.code.intellij.vfs;
package mp.code.ij.vfs;
import com.google.common.collect.Sets;
import com.intellij.credentialStore.Credentials;
@ -10,10 +10,10 @@ import mp.code.data.TextChange;
import mp.code.exceptions.ConnectionException;
import mp.code.exceptions.ConnectionRemoteException;
import mp.code.exceptions.ControllerException;
import mp.code.intellij.CodeMP;
import mp.code.intellij.exceptions.ide.NotConnectedException;
import mp.code.intellij.settings.CodeMPSettings;
import mp.code.intellij.util.FileUtil;
import mp.code.ij.CodeMP;
import mp.code.ij.exceptions.ide.NotConnectedException;
import mp.code.ij.settings.CodeMPSettings;
import mp.code.ij.util.FileUtil;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@ -22,7 +22,6 @@ import java.io.IOException;
import java.nio.file.Path;
import java.util.Objects;
import java.util.Optional;
import java.util.OptionalLong;
import java.util.Set;
import java.util.function.BiConsumer;

View file

@ -1,4 +1,4 @@
package mp.code.intellij.vfs;
package mp.code.ij.vfs;
import lombok.EqualsAndHashCode;
import lombok.Getter;

View file

@ -1,6 +1,7 @@
<idea-plugin>
<id>mp.code.intellij</id>
<id>mp.code.ij</id>
<name>CodeMP</name>
<version>0.0.1</version>
<vendor email="support@codemp.dev" url="https://code.mp">CodeMP</vendor>
<description>A plugin for MultiPlayer code editing across different IDEs.</description>
@ -10,30 +11,30 @@
<actions>
<group id="codemp" text="CodeMP" popup="true">
<add-to-group group-id="ToolsMenu" anchor="first"/>
<action id="codemp.connect" class="mp.code.intellij.actions.ConnectAction" text="Connect..."/>
<action id="codemp.disconnect" class="mp.code.intellij.actions.DisconnectAction" text="Disconnect..."/>
<action id="codemp.connect" class="mp.code.ij.actions.ConnectAction" text="Connect..."/>
<action id="codemp.disconnect" class="mp.code.ij.actions.DisconnectAction" text="Disconnect..."/>
<group id="codemp.workspace" text="Workspace" popup="true">
<action id="codemp.workspace.create" class="mp.code.intellij.actions.workspace.WorkspaceCreateAction"
<action id="codemp.workspace.create" class="mp.code.ij.actions.workspace.WorkspaceCreateAction"
text="Create Workspace"/>
<action id="codemp.workspace.join" class="mp.code.intellij.actions.workspace.WorkspaceAttachAction"
<action id="codemp.workspace.join" class="mp.code.ij.actions.workspace.WorkspaceAttachAction"
text="Attach To Workspace"/>
<action id="codemp.workspace.invite" class="mp.code.intellij.actions.workspace.WorkspaceInviteAction"
<action id="codemp.workspace.invite" class="mp.code.ij.actions.workspace.WorkspaceInviteAction"
text="Invite To Workspace"/>
<action id="codemp.workspace.delete" class="mp.code.intellij.actions.workspace.WorkspaceDeleteAction"
<action id="codemp.workspace.delete" class="mp.code.ij.actions.workspace.WorkspaceDeleteAction"
text="Delete Workspace"/>
<action id="codemp.workspace.leave" class="mp.code.intellij.actions.workspace.WorkspaceLeaveAction"
<action id="codemp.workspace.leave" class="mp.code.ij.actions.workspace.WorkspaceLeaveAction"
text="Leave Workspace"/>
</group>
<group id="codemp.buffer" text="Buffer" popup="true">
<action id="codemp.buffer.attach" class="mp.code.intellij.actions.buffer.BufferAttachAction"
<action id="codemp.buffer.attach" class="mp.code.ij.actions.buffer.BufferAttachAction"
text="Attach to Remote Buffer"/>
<action id="codemp.buffer.detach" class="mp.code.intellij.actions.buffer.BufferDetachAction"
<action id="codemp.buffer.detach" class="mp.code.ij.actions.buffer.BufferDetachAction"
text="Detach from Remote Buffer"/>
<action id="codemp.buffer.create" class="mp.code.intellij.actions.buffer.BufferCreateAction"
<action id="codemp.buffer.create" class="mp.code.ij.actions.buffer.BufferCreateAction"
text="Create a New Empty Remote Buffer"/>
<action id="codemp.buffer.delete" class="mp.code.intellij.actions.buffer.BufferDeleteAction"
<action id="codemp.buffer.delete" class="mp.code.ij.actions.buffer.BufferDeleteAction"
text="Delete a Remote Buffer"/>
<action id="codemp.buffer.sync" class="mp.code.intellij.actions.buffer.BufferSyncAction"
<action id="codemp.buffer.sync" class="mp.code.ij.actions.buffer.BufferSyncAction"
text="Sync Content of a Managed Buffer"/>
</group>
</group>
@ -45,19 +46,19 @@
id="codemp_vfs"
key="codemp"
physical="false"
implementationClass="mp.code.intellij.vfs.CodeMPFileSystem"/>
<workspaceModel.fileIndexContributor implementation="mp.code.intellij.vfs.CodeMPFileIndexContributor" />
implementationClass="mp.code.ij.vfs.CodeMPFileSystem"/>
<workspaceModel.fileIndexContributor implementation="mp.code.ij.vfs.CodeMPFileIndexContributor" />
-->
<notificationGroup id="CodeMP" displayType="BALLOON"/>
<applicationService serviceImplementation="mp.code.intellij.settings.CodeMPSettings"/>
<applicationService serviceImplementation="mp.code.ij.settings.CodeMPSettings"/>
<applicationConfigurable
parentId="tools"
instance="mp.code.intellij.settings.CodeMPSettingsConfigurable"
id="mp.code.intellij.settings.CodeMPSettingsConfigurable"
instance="mp.code.ij.settings.CodeMPSettingsConfigurable"
id="mp.code.ij.settings.CodeMPSettingsConfigurable"
displayName="CodeMP"/>
<toolWindow
id="CodeMP"
factoryClass="mp.code.intellij.ui.CodeMPWindowFactory"
factoryClass="mp.code.ij.ui.CodeMPWindowFactory"
anchor="right"
icon="/icons/codempToolWindow.svg"
doNotActivateOnStart="false" />