Bug 520363

Summary: [Templates] e4 RCP template should use lambdas
Product: [Eclipse Project] PDE Reporter: Lars Vogel <Lars.Vogel>
Component: UIAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: fabian.pfaff, Lars.Vogel, nobody
Version: 4.7Keywords: bugday, helpwanted
Target Milestone: 4.8 M2   
Hardware: PC   
OS: Linux   
See Also: https://git.eclipse.org/r/103759
https://git.eclipse.org/c/pde/eclipse.pde.ui.git/commit/?id=5db9567d9ee22564559ddb85d85e7795bcba8f70
Whiteboard:
Bug Depends on: 518302    
Bug Blocks:    

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