-
- Session defaultSession = null;
- try{
- defaultSession = RepoUtils.getCorrespondingSession(repositoryFactory, keyring, re.getRepoNode(), re.getUri(), null);
-
-
- InformationDialog inputDialog = new InformationDialog(HandlerUtil
- .getActiveSite(event).getShell());
- inputDialog.create();
- inputDialog.loginTxt.setText(defaultSession.getUserID());
- inputDialog.nameTxt.setText(re.getLabel());
- inputDialog.uriTxt.setText(re.getUri());
- inputDialog.readOnlyBtn.setSelection(re.isReadOnly());
-
- inputDialog.open();
+
+ Session defaultSession = null;
+ try {
+ defaultSession = repoService.getRemoteSession(re.getRepoNodePath(),
+ re.getUri(), null);
+
+ InformationDialog inputDialog = new InformationDialog(
+ HandlerUtil.getActiveSite(event).getShell());
+ inputDialog.create();
+ // TODO add more information.
+ inputDialog.loginTxt.setText(defaultSession.getUserID());
+ inputDialog.nameTxt.setText(re.getLabel());
+ inputDialog.uriTxt.setText(re.getUri());
+ inputDialog.readOnlyBtn.setSelection(re.isReadOnly());
+
+ inputDialog.open();