本文整理汇总了Java中org.eclipse.jface.text.IEditingSupportRegistry.unregister方法的典型用法代码示例。如果您正苦于以下问题:Java IEditingSupportRegistry.unregister方法的具体用法?Java IEditingSupportRegistry.unregister怎么用?Java IEditingSupportRegistry.unregister使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.jface.text.IEditingSupportRegistry
的用法示例。
在下文中一共展示了IEditingSupportRegistry.unregister方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: linkedModeLeft
import org.eclipse.jface.text.IEditingSupportRegistry; //导入方法依赖的package包/类
/**
* PopUp gets closed and the focus goes back to the editor. Linked mode stays active and can be reenabled, i.e. by
* putting the caret back into a linked editing position.
*/
public void linkedModeLeft() {
if (linkedModeModel != null) {
linkedModeModel.exit(ILinkedModeListener.NONE);
}
if (popup != null) {
popup.close();
}
if (editor != null) {
ISourceViewer viewer = editor.getInternalSourceViewer();
if (viewer instanceof IEditingSupportRegistry) {
IEditingSupportRegistry registry = (IEditingSupportRegistry) viewer;
registry.unregister(focusEditingSupport);
}
}
}
示例2: hide
import org.eclipse.jface.text.IEditingSupportRegistry; //导入方法依赖的package包/类
/**
* Hides this popup.
*/
public void hide()
{
bufferString = "";
selectedProposal = null;
fLastKeyPressed = '\0';
unregister();
if (fViewer instanceof IEditingSupportRegistry)
{
IEditingSupportRegistry registry = (IEditingSupportRegistry) fViewer;
registry.unregister(fFocusHelper);
}
if (Helper.okToUse(fProposalShell))
{
fContentAssistant.removeContentAssistListener(this, ContentAssistant.PROPOSAL_SELECTOR);
// TISTUD-913: moved the 'fPopupCloser.uninstall();' to disposePopup()
if (fAdditionalInfoController != null)
{
fAdditionalInfoController.disposeInformationControl();
}
if (Helper.okToUse(fProposalTable))
{
fProposalTable.removeAll();
fProposalTable.update();
}
// TISTUD-1550: Call to dispose, instead of fProposalShell.setVisible(false);
fProposalShell.setVisible(false);
}
}
示例3: linkedModeLeft
import org.eclipse.jface.text.IEditingSupportRegistry; //导入方法依赖的package包/类
private void linkedModeLeft() {
fgActiveLinkedMode= null;
if (fInfoPopup != null) {
fInfoPopup.close();
}
ISourceViewer viewer= fEditor.getViewer();
if (viewer instanceof IEditingSupportRegistry) {
IEditingSupportRegistry registry= (IEditingSupportRegistry) viewer;
registry.unregister(fFocusEditingSupport);
}
}
示例4: deregisterHelper
import org.eclipse.jface.text.IEditingSupportRegistry; //导入方法依赖的package包/类
private void deregisterHelper(IEditingSupport helper, JavaEditor editor) {
ISourceViewer viewer= editor.getViewer();
if (viewer instanceof IEditingSupportRegistry) {
IEditingSupportRegistry registry= (IEditingSupportRegistry) viewer;
registry.unregister(helper);
}
}
示例5: deregisterHelper
import org.eclipse.jface.text.IEditingSupportRegistry; //导入方法依赖的package包/类
private void deregisterHelper(IEditingSupport helper) {
ISourceViewer viewer= fEditor.getViewer();
if (viewer instanceof IEditingSupportRegistry) {
IEditingSupportRegistry registry= (IEditingSupportRegistry) viewer;
registry.unregister(helper);
}
}