org.eclipse.draw2d.FocusEvent Java Examples

The following examples show how to use org.eclipse.draw2d.FocusEvent. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CustomDrawerEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
@Override
public IFigure createFigure() {
	final CustomDrawerFigure fig = new CustomDrawerFigure(getViewer().getControl());
	fig.setExpanded(true);
	fig.setPinned(true);

	fig.getCollapseToggle().addFocusListener(new FocusListener.Stub() {
		public void focusGained(FocusEvent fe) {
			getViewer().select(CustomDrawerEditPart.this);
		}
	});

	return fig;
}
 
Example #2
Source File: EditorGuideFigure.java    From birt with Eclipse Public License 1.0 4 votes vote down vote up
public void handleFocusGained( FocusEvent event )
{
	super.handleFocusGained( event );
	repaint( );
	getUpdateManager( ).performUpdate( );
}
 
Example #3
Source File: EditorGuideFigure.java    From birt with Eclipse Public License 1.0 4 votes vote down vote up
public void handleFocusLost( FocusEvent event )
{
	super.handleFocusLost( event );
	repaint( );
	getUpdateManager( ).performUpdate( );
}