当前位置: 首页>>代码示例>>Java>>正文


Java IEditingSupportRegistry.unregister方法代码示例

本文整理汇总了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);
		}
	}
}
 
开发者ID:cplutte,项目名称:bts,代码行数:21,代码来源:RenameLinkedMode.java

示例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);
	}
	}
 
开发者ID:apicloudcom,项目名称:APICloud-Studio,代码行数:35,代码来源:CompletionProposalPopup.java

示例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);
	}
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:13,代码来源:RenameLinkedMode.java

示例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);
	}
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:8,代码来源:OrganizeImportsAction.java

示例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);
	}
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:8,代码来源:AddImportOnSelectionAction.java


注:本文中的org.eclipse.jface.text.IEditingSupportRegistry.unregister方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。