Skip to content

Commit

Permalink
TEIIDDES-2417 added initial selection of first CP if it exists, so Edit
Browse files Browse the repository at this point in the history
actually works
  • Loading branch information
blafond committed Jan 6, 2015
1 parent b913f2b commit 6fcde4c
Showing 1 changed file with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ public String getText(final Object source) {
@Override
public void widgetSelected(SelectionEvent e) {
// Need to sync the worker with the current profile
handleConnectionProfileSelected();
handleConnectionProfileSelected(false);
}

@Override
Expand Down Expand Up @@ -324,9 +324,14 @@ public void widgetSelected(final SelectionEvent event) {
GridDataFactory.fillDefaults().grab(true, false).applyTo(endPointURIText);

updateWidgetEnablements();
if( connectionProfilesCombo.getItemCount() > 0 ) {
connectionProfilesCombo.select(0);
handleConnectionProfileSelected(true);
}

}

private void handleConnectionProfileSelected() {
private void handleConnectionProfileSelected(boolean initializing) {
int selIndex = connectionProfilesCombo.getSelectionIndex();

if (selIndex >= 0) {
Expand All @@ -353,11 +358,15 @@ private void handleConnectionProfileSelected() {
this.wsdlStatus = null;
}

this.operationsPanel.notifyWsdlChanged(true);
if( !initializing ) {
this.operationsPanel.notifyWsdlChanged(true);
}
}
}

notifyChanged();
if( !initializing ) {
notifyChanged();
}
}

private void createWsdlOperationsPanel(Composite theParent) {
Expand Down Expand Up @@ -727,7 +736,7 @@ public void setVisible(boolean visible) {
refreshUiFromManager();

if( profileChanged ) {
handleConnectionProfileSelected();
handleConnectionProfileSelected(false);
}

setPageStatus();
Expand Down

0 comments on commit 6fcde4c

Please sign in to comment.