List of usage examples for org.eclipse.jface.fieldassist ContentProposalAdapter getControl
public Control getControl()
From source file:org.eclipse.sirius.ui.tools.api.assist.TextContentProposalProvider.java
License:Open Source License
/** * Action when the popup is closing.//from w ww. j a v a 2 s . com * * @param adapter * the ContentProposalAdater */ public void proposalPopupClosed(final ContentProposalAdapter adapter) { final Text text = (Text) adapter.getControl(); /* restart to listen to key events */ if (view instanceof ContentProposalClient) { final TextChangeListener helper = ((ContentProposalClient) view).getListener(); helper.startListeningTo(text); helper.startListeningForEnter(text); } }
From source file:org.eclipse.sirius.ui.tools.api.assist.TextContentProposalProvider.java
License:Open Source License
/** * {@inheritDoc}/*ww w . ja v a 2 s . co m*/ * * @see org.eclipse.jface.fieldassist.IContentProposalListener2#proposalPopupOpened(org.eclipse.jface.fieldassist.ContentProposalAdapter) */ public void proposalPopupOpened(final ContentProposalAdapter adapter) { final Text text = (Text) adapter.getControl(); /* stop to listen key events */ if (view instanceof ContentProposalClient) { final TextChangeListener helper = ((ContentProposalClient) view).getListener(); helper.stopListeningTo(text); } }