mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Move GitDefineRemoteDialog to a more appropriate package
This commit is contained in:
@@ -43,6 +43,7 @@ import com.intellij.util.ui.table.ComponentsListFocusTraversalPolicy;
|
||||
import git4idea.GitRemoteBranch;
|
||||
import git4idea.commands.Git;
|
||||
import git4idea.commands.GitCommandResult;
|
||||
import git4idea.remote.GitDefineRemoteDialog;
|
||||
import git4idea.repo.GitRemote;
|
||||
import git4idea.repo.GitRepository;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
+6
-6
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2015 JetBrains s.r.o.
|
||||
* Copyright 2000-2016 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package git4idea.push;
|
||||
package git4idea.remote;
|
||||
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.progress.ProcessCanceledException;
|
||||
@@ -37,7 +37,7 @@ import org.jetbrains.annotations.Nullable;
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
|
||||
class GitDefineRemoteDialog extends DialogWrapper {
|
||||
public class GitDefineRemoteDialog extends DialogWrapper {
|
||||
|
||||
private static final Logger LOG = Logger.getInstance(GitDefineRemoteDialog.class);
|
||||
|
||||
@@ -47,7 +47,7 @@ class GitDefineRemoteDialog extends DialogWrapper {
|
||||
@NotNull private final JTextField myRemoteName;
|
||||
@NotNull private final JTextField myRemoteUrl;
|
||||
|
||||
GitDefineRemoteDialog(@NotNull GitRepository repository, @NotNull Git git) {
|
||||
public GitDefineRemoteDialog(@NotNull GitRepository repository, @NotNull Git git) {
|
||||
super(repository.getProject());
|
||||
myRepository = repository;
|
||||
myGit = git;
|
||||
@@ -73,12 +73,12 @@ class GitDefineRemoteDialog extends DialogWrapper {
|
||||
}
|
||||
|
||||
@NotNull
|
||||
String getRemoteName() {
|
||||
public String getRemoteName() {
|
||||
return StringUtil.notNullize(myRemoteName.getText()).trim();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
String getRemoteUrl() {
|
||||
public String getRemoteUrl() {
|
||||
return StringUtil.notNullize(myRemoteUrl.getText()).trim();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user