本文整理汇总了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());
}
}
示例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());
}