Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed addButton on click exception #517

Open
chqu1012 opened this issue Jul 17, 2019 · 0 comments
Open

Fixed addButton on click exception #517

chqu1012 opened this issue Jul 17, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@chqu1012
Copy link
Owner

	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()
			}
		}
	})
@chqu1012 chqu1012 created this issue from a note in EMF.edit to viewers Integration (In progress) Jul 17, 2019
@chqu1012 chqu1012 added the bug Something isn't working label Jul 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

1 participant