Skip to content

Commit

Permalink
IDE-1239 Cant add set to actions in Graphical Editor of Web Flow
Browse files Browse the repository at this point in the history
definition file
  • Loading branch information
leods authored and Martin Lippert committed Mar 18, 2012
1 parent d3c3a39 commit 5f03a9d
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2007, 2010 Spring IDE Developers
* Copyright (c) 2007 - 2012 Spring IDE Developers
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
Expand Down Expand Up @@ -110,7 +110,9 @@ protected void createButtonsForButtonBar(Composite parent) {
createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false);
// do this here because setting the text will set enablement on the
// ok button
nameText.setFocus();
if (nameText != null) {
nameText.setFocus();
}
if (this.action != null && this.action.getName() != null) {
okButton.setEnabled(true);
}
Expand Down Expand Up @@ -228,7 +230,7 @@ public void modifyText(ModifyEvent e) {
typeLabel = new Label(nameGroup, SWT.NONE);
typeLabel.setText("Type");
typeText = new Text(nameGroup, SWT.SINGLE | SWT.BORDER);
if (this.action != null && this.action.getType() != null) {
if (this.action != null && this.action.getSetType() != null) {
this.typeText.setText(this.action.getSetType());
}
typeText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
Expand Down

0 comments on commit 5f03a9d

Please sign in to comment.