Issue #440 fix login dialog not popping up
Former-commit-id:a8c5c7b3ca
[formerly 8b9c87c5e4fe04405ce1fa3cb86eeaed14e3aadb] Former-commit-id:fa89b0cf6e
This commit is contained in:
parent
dd0192fef2
commit
ed501edb0c
1 changed files with 12 additions and 7 deletions
|
@ -180,16 +180,14 @@ public class CollaborationGroupView extends ViewPart implements IPartListener {
|
|||
|
||||
private TreeEditor treeEditor;
|
||||
|
||||
private Composite parent;
|
||||
|
||||
/**
|
||||
* @param parent
|
||||
*/
|
||||
@Override
|
||||
public void createPartControl(Composite parent) {
|
||||
CollaborationConnection connection = CollaborationDataManager
|
||||
.getInstance().getCollaborationConnection(true);
|
||||
if (connection == null) {
|
||||
return;
|
||||
}
|
||||
this.parent = parent;
|
||||
// build the necessary actions for the view
|
||||
createActions();
|
||||
|
||||
|
@ -198,7 +196,11 @@ public class CollaborationGroupView extends ViewPart implements IPartListener {
|
|||
|
||||
// add some actions to the menubar
|
||||
createMenubar();
|
||||
|
||||
CollaborationConnection connection = CollaborationDataManager
|
||||
.getInstance().getCollaborationConnection(true);
|
||||
if (connection == null) {
|
||||
return;
|
||||
}
|
||||
// add a part listener so that we can check when things about the view
|
||||
// change
|
||||
getViewSite().getWorkbenchWindow().getPartService()
|
||||
|
@ -216,6 +218,7 @@ public class CollaborationGroupView extends ViewPart implements IPartListener {
|
|||
}
|
||||
populateTree();
|
||||
usersTreeViewer.refresh();
|
||||
parent.layout();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -350,7 +353,9 @@ public class CollaborationGroupView extends ViewPart implements IPartListener {
|
|||
logonAction = new Action("Login...") {
|
||||
@Override
|
||||
public void run() {
|
||||
populateTree();
|
||||
if (usersTreeViewer == null) {
|
||||
createPartControl(parent);
|
||||
}
|
||||
}
|
||||
};
|
||||
logonAction.setImageDescriptor(IconUtil.getImageDescriptor(bundle,
|
||||
|
|
Loading…
Add table
Reference in a new issue