Java Code Examples for org.eclipse.jface.text.IWidgetTokenOwner#releaseWidgetToken()
The following examples show how to use
org.eclipse.jface.text.IWidgetTokenOwner#releaseWidgetToken() .
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: RenameRefactoringPopup.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
protected void releaseWidgetToken() { ISourceViewer viewer = editor.getInternalSourceViewer(); if (viewer instanceof IWidgetTokenOwner) { IWidgetTokenOwner widgetTokenOwner = (IWidgetTokenOwner) viewer; widgetTokenOwner.releaseWidgetToken(this); } }
Example 2
Source File: RenameInformationPopup.java From typescript.java with MIT License | 5 votes |
private void releaseWidgetToken() { ISourceViewer viewer= fEditor.getViewer(); if (viewer instanceof IWidgetTokenOwner) { IWidgetTokenOwner widgetTokenOwner= (IWidgetTokenOwner) viewer; widgetTokenOwner.releaseWidgetToken(this); } }
Example 3
Source File: RenameInformationPopup.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
private void releaseWidgetToken() { ISourceViewer viewer= fEditor.getViewer(); if (viewer instanceof IWidgetTokenOwner) { IWidgetTokenOwner widgetTokenOwner= (IWidgetTokenOwner) viewer; widgetTokenOwner.releaseWidgetToken(this); } }
Example 4
Source File: InformationPresenterControlManager.java From Pydev with Eclipse Public License 1.0 | 5 votes |
@Override protected void handleInformationControlDisposed() { try { super.handleInformationControlDisposed(); } finally { if (fControl instanceof IWidgetTokenOwner) { IWidgetTokenOwner owner = (IWidgetTokenOwner) fControl; owner.releaseWidgetToken(this); } } }
Example 5
Source File: InformationPresenterControlManager.java From Pydev with Eclipse Public License 1.0 | 4 votes |
@Override public void hideInformationControl(boolean activateEditor, boolean restoreFocus) { //When hiding it may call hide again (because as it gets hidden our handlers are still connected). if (this.onHide) { return; } this.onHide = true; try { try { super.hideInformationControl(); } finally { if (fControl instanceof IWidgetTokenOwner) { IWidgetTokenOwner owner = (IWidgetTokenOwner) fControl; owner.releaseWidgetToken(this); } } this.disposeInformationControl(); //Restore previous active shell? if (this.fInitiallyActiveShell != null && !this.fInitiallyActiveShell.isDisposed()) { if (restoreFocus) { this.fInitiallyActiveShell.setActive(); } this.fInitiallyActiveShell = null; } if (this.fFocusControl != null && !this.fFocusControl.isDisposed()) { if (restoreFocus) { this.fFocusControl.setFocus(); } this.fFocusControl = null; } if (activateEditor) { KeyBindingHelper.executeCommand("org.eclipse.ui.window.activateEditor"); } } finally { this.onHide = false; } }