采用jface dataBinding来实现内容填充

//采用jface dataBinding来实现内容填充
		input = new WritableList(getInput(),AliasModel.class);
		ViewerSupport.bind(tableViewer, input, BeanProperties.values(
						new String[]{AliasModel.SOURCENAME,AliasModel.ALIASNAME}));
		
		tableViewer = new TableViewer(this, SWT.BORDER | SWT.FULL_SELECTION|SWT.H_SCROLL|SWT.V_SCROLL);
		tableViewer.setUseHashlookup(true);

 

你可能感兴趣的:(采用jface dataBinding来实现内容填充)