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


Java JavaMoveProcessor.canEnableQualifiedNameUpdating方法代码示例

本文整理汇总了Java中org.eclipse.jdt.internal.corext.refactoring.reorg.JavaMoveProcessor.canEnableQualifiedNameUpdating方法的典型用法代码示例。如果您正苦于以下问题:Java JavaMoveProcessor.canEnableQualifiedNameUpdating方法的具体用法?Java JavaMoveProcessor.canEnableQualifiedNameUpdating怎么用?Java JavaMoveProcessor.canEnableQualifiedNameUpdating使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.jdt.internal.corext.refactoring.reorg.JavaMoveProcessor的用法示例。


在下文中一共展示了JavaMoveProcessor.canEnableQualifiedNameUpdating方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: updateUIStatus

import org.eclipse.jdt.internal.corext.refactoring.reorg.JavaMoveProcessor; //导入方法依赖的package包/类
private void updateUIStatus() {
	getRefactoringWizard().setForcePreviewReview(false);
	JavaMoveProcessor processor= getJavaMoveProcessor();
	if (fReferenceCheckbox != null){
		processor.setUpdateReferences(fReferenceCheckbox.getSelection());
	}
	if (fQualifiedNameCheckbox != null){
		boolean enabled= processor.canEnableQualifiedNameUpdating();
		fQualifiedNameCheckbox.setEnabled(enabled);
		if (enabled) {
			fQualifiedNameComponent.setEnabled(processor.getUpdateQualifiedNames());
			if (processor.getUpdateQualifiedNames())
				getRefactoringWizard().setForcePreviewReview(true);
		} else {
			fQualifiedNameComponent.setEnabled(false);
		}
		processor.setUpdateQualifiedNames(fQualifiedNameCheckbox.getEnabled() && fQualifiedNameCheckbox.getSelection());
	}
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:20,代码来源:ReorgMoveWizard.java

示例2: addUpdateQualifiedNameComponent

import org.eclipse.jdt.internal.corext.refactoring.reorg.JavaMoveProcessor; //导入方法依赖的package包/类
private void addUpdateQualifiedNameComponent(Composite parent, int marginWidth) {
	final JavaMoveProcessor processor= getJavaMoveProcessor();
	if (!processor.canEnableQualifiedNameUpdating() || !processor.canUpdateQualifiedNames())
		return;
	fQualifiedNameCheckbox= new Button(parent, SWT.CHECK);
	int indent= marginWidth + fQualifiedNameCheckbox.computeSize(SWT.DEFAULT, SWT.DEFAULT).x;
	fQualifiedNameCheckbox.setText(RefactoringMessages.RenameInputWizardPage_update_qualified_names);
	fQualifiedNameCheckbox.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
	fQualifiedNameCheckbox.setSelection(processor.getUpdateQualifiedNames());

	fQualifiedNameComponent= new QualifiedNameComponent(parent, SWT.NONE, processor, getRefactoringSettings());
	fQualifiedNameComponent.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
	GridData gd= (GridData)fQualifiedNameComponent.getLayoutData();
	gd.horizontalAlignment= GridData.FILL;
	gd.horizontalIndent= indent;
	updateQualifiedNameUpdating(processor, processor.getUpdateQualifiedNames());

	fQualifiedNameCheckbox.addSelectionListener(new SelectionAdapter() {
		@Override
		public void widgetSelected(SelectionEvent e) {
			boolean enabled= ((Button)e.widget).getSelection();
			updateQualifiedNameUpdating(processor, enabled);
		}
	});
	fQualifiedNameCheckbox.setSelection(getRefactoringSettings().getBoolean(UPDATE_QUALIFIED_NAMES));
	updateQualifiedNameUpdating(processor, fQualifiedNameCheckbox.getSelection());
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:28,代码来源:ReorgMoveWizard.java


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