Bug 520363 - [Templates] e4 RCP template should use lambdas
Summary: [Templates] e4 RCP template should use lambdas
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.7   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 4.8 M2   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords: bugday, helpwanted
Depends on: 518302
Blocks:
  Show dependency tree
 
Reported: 2017-07-31 09:52 EDT by Lars Vogel CLA
Modified: 2017-08-28 07:20 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Vogel CLA 2017-07-31 09:52:10 EDT
We should use lambdas in the e4 RCP template:

txtInput.addModifyListener(e -> part.setDirty(true));

instead of:

txtInput.addModifyListener(new ModifyListener() {
			@Override
			public void modifyText(ModifyEvent e) {
				part.setDirty(true);
			}
		});


Also there are two ;; in the setContentProvider call, we should also fix that.

tableViewer.setContentProvider(ArrayContentProvider.getInstance());;
Comment 1 Eclipse Genie CLA 2017-08-28 06:15:45 EDT
New Gerrit change created: https://git.eclipse.org/r/103759