Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,16 @@ public void modifyText(ModifyEvent e) {
new Label(this, SWT.NONE);
}

SwtUtils.createLink(this, Messages.getString("label.AddVar"), new LoggingHyperlinkAdapter() {

@Override
protected void onLinkActivated(HyperlinkEvent e) throws Exception {
model.constraints.add(new StorageConstraintsModel(StorageConstraintsModel.ATTR, queryType));
buildFromModel();
}
}).setLayoutData(new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_END));
if (queryType != null) {
SwtUtils.createLink(this, Messages.getString("label.AddVar"), new LoggingHyperlinkAdapter() {

@Override
protected void onLinkActivated(HyperlinkEvent e) throws Exception {
model.constraints.add(new StorageConstraintsModel(StorageConstraintsModel.ATTR, queryType));
buildFromModel();
}
}).setLayoutData(new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_END));
}
new Label(this, SWT.NONE);
warning = new Label(this, SWT.NONE);
warning.setForeground(darkRed);
Expand Down