Skip to content

Fixed addButton on click exception #517

@chqu1012

Description

@chqu1012
	addButton.addSelectionListener(new SelectionAdapter() {
		override void widgetSelected(SelectionEvent e) {
			var ISelection selection = editableAttributesListViewer.getSelection()
			if (selection instanceof IStructuredSelection) {
				var IStructuredSelection ss = (selection as IStructuredSelection)
				val method = ss.firstElement as IMethod
				usedAttributes+=method
				availableAttributes-=method
				editableAttributesListViewer.refresh()
				usedAttributeListViewer.refresh()
			}
		}
	})

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions