Code example for PropertyChangeEvent

Methods: getNewValue, getPropertyName

0
		PVFormulaInputBar bar = new PVFormulaInputBar(shell, SWT.NONE, null, null);
		bar.addPropertyChangeListener(new PropertyChangeListener() {
			 
			@Override 
			public void propertyChange(PropertyChangeEvent arg0) {
				if ("pvFormula".equals(arg0.getPropertyName())) {
					System.out.println(arg0.getNewValue());
				} 
			} 
		}); 
		shell.setLayout (new RowLayout());
		shell.pack ();
		shell.open ();
		while (!shell.isDisposed ()) {
			if (!display.readAndDispatch ()) display.sleep ();
		} 
		display.dispose ();
	} 
 
}