| | |
| | | import org.eclipse.jgit.util.FS;
|
| | |
|
| | | import com.gitblit.Constants;
|
| | | import com.gitblit.GitBlitException.ForbiddenException;
|
| | | import com.gitblit.utils.StringUtils;
|
| | |
|
| | | /**
|
| | |
| | | @Override
|
| | | public void windowClosing(WindowEvent event) {
|
| | | saveSizeAndPosition();
|
| | | }
|
| | | |
| | | @Override
|
| | | public void windowOpened(WindowEvent event) {
|
| | | manageRegistrations();
|
| | | }
|
| | | });
|
| | |
|
| | |
| | | if (cause instanceof ConnectException) {
|
| | | JOptionPane.showMessageDialog(GitblitManager.this, cause.getMessage(),
|
| | | Translation.get("gb.error"), JOptionPane.ERROR_MESSAGE);
|
| | | } else if (cause instanceof ForbiddenException) {
|
| | | JOptionPane
|
| | | .showMessageDialog(
|
| | | GitblitManager.this,
|
| | | "This Gitblit server does not allow RPC Management or Administration",
|
| | | Translation.get("gb.error"), JOptionPane.ERROR_MESSAGE);
|
| | | } else {
|
| | | Utils.showException(GitblitManager.this, t);
|
| | | }
|