本文整理汇总了Java中org.eclipse.ltk.ui.refactoring.RefactoringWizard.DIALOG_BASED_USER_INTERFACE属性的典型用法代码示例。如果您正苦于以下问题:Java RefactoringWizard.DIALOG_BASED_USER_INTERFACE属性的具体用法?Java RefactoringWizard.DIALOG_BASED_USER_INTERFACE怎么用?Java RefactoringWizard.DIALOG_BASED_USER_INTERFACE使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.eclipse.ltk.ui.refactoring.RefactoringWizard
的用法示例。
在下文中一共展示了RefactoringWizard.DIALOG_BASED_USER_INTERFACE属性的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: RenamePluginWizard
public RenamePluginWizard(IPluginModelBase pluginModel) {
super(new EmptyRefactoring(), RefactoringWizard.DIALOG_BASED_USER_INTERFACE | RefactoringWizard.NO_PREVIEW_PAGE);
setWindowTitle(TITLE);
this.refactoringInfo = new RefactoringPluginInfo();
this.refactoringInfo.setSelection(pluginModel);
}
示例2: RenameUMLElementRefactoringWizard
/**
* Instantiates the wizard.
*
* @param namedElement
* The UML element to be renamed.
* @param editor
* The editor that called the wizard.
*/
public RenameUMLElementRefactoringWizard(UMLReferencingElement<NamedElement> namedElement, IEditorPart editor) {
super(new RenameUMLElementRefactoring(), RefactoringWizard.DIALOG_BASED_USER_INTERFACE);
nameMightBeEmpty = determineIfNameMightBeEmpty(namedElement);
aliasIsAvailable = determineIfAliasIsAvailable(namedElement);
getTypedRefactoring().setElementToRename(namedElement);
Optional<String> umlName = Optional.ofNullable(namedElement.getReferencedElement()).map(NamedElement::getName);
Optional<String> umlAlias = Optional.ofNullable(namedElement.getReferencedElement())
.map(NamedElement::getNameExpression).map(StringExpression::getName);
String aliasToShow;
String nameToShow;
// please refer to handleValuesChanged() for an explanation of this piece of code
if (umlAlias.isPresent()) {
aliasToShow = umlName.orElse(null);
nameToShow = umlAlias.orElse(null);
} else {
nameToShow = umlName.orElse(null);
aliasToShow = null;
}
newAlias.setValue(aliasToShow);
newAlias.addChangeListener(e -> handleValuesChanged());
newName.setValue(nameToShow);
newName.addChangeListener(e -> handleValuesChanged());
getTypedRefactoring().setEditor(editor);
}
开发者ID:Cooperate-Project,项目名称:CooperateModelingEnvironment,代码行数:34,代码来源:RenameUMLElementRefactoringWizard.java
示例3: run
/**
* @see IActionDelegate#run(IAction)
*/
public void run(IAction action) {
// MessageDialog.openInformation(shell,"Refactor Plug-in","Replace Known Tokens was executed.");
Hashtable<String,String> ht = buildReplacements();
XaaTemplateRefactoring refactoring = new XaaTemplateRefactoring(file,ht);
TokenRefactoringWizard wizard = new TokenRefactoringWizard(refactoring,RefactoringWizard.DIALOG_BASED_USER_INTERFACE);
RefactoringWizardOpenOperation op = new RefactoringWizardOpenOperation(wizard);
try {
op.run(shell,"Replace Tokens");
} catch (InterruptedException e) {}
}
示例4: MigrateSkeletalImplementationToInterfaceRefactoringWizard
public MigrateSkeletalImplementationToInterfaceRefactoringWizard(Refactoring refactoring) {
super(refactoring,
RefactoringWizard.DIALOG_BASED_USER_INTERFACE & RefactoringWizard.CHECK_INITIAL_CONDITIONS_ON_OPEN);
this.setWindowTitle(Messages.Name);
}
开发者ID:ponder-lab,项目名称:Migrate-Skeletal-Implementation-to-Interface-Refactoring,代码行数:5,代码来源:MigrateSkeletalImplementationToInterfaceRefactoringWizard.java
示例5: RenameProductWizard
public RenameProductWizard(IProductModel productModel) {
super(new EmptyRefactoring(), RefactoringWizard.DIALOG_BASED_USER_INTERFACE | RefactoringWizard.NO_PREVIEW_PAGE);
setWindowTitle(TITLE);
this.refactoringInfo = new ProductRefactoringInfo(productModel);
}
示例6: RenameFeatureWizard
public RenameFeatureWizard(IFeatureModel featureModel) {
super(new EmptyRefactoring(), RefactoringWizard.DIALOG_BASED_USER_INTERFACE | RefactoringWizard.NO_PREVIEW_PAGE);
setWindowTitle(TITLE);
this.refactoringInfo = new FeatureRefactoringInfo(featureModel);
}
示例7: ForeachLoopToLambdaRefactoringWizard
public ForeachLoopToLambdaRefactoringWizard(Refactoring refactoring) {
super(refactoring, RefactoringWizard.DIALOG_BASED_USER_INTERFACE);
}
开发者ID:mdarefin,项目名称:Convert-For-Each-Loop-to-Lambda-Expression-Eclipse-Plugin,代码行数:3,代码来源:ForeachLoopToLambdaRefactoringWizard.java
示例8: getWizardFlags
@Override
protected int getWizardFlags() {
return RefactoringWizard.DIALOG_BASED_USER_INTERFACE | RefactoringWizard.PREVIEW_EXPAND_FIRST_NODE
| RefactoringWizard.NO_BACK_BUTTON_ON_STATUS_DIALOG;
}
示例9: getWizardFlags
@Override
protected int getWizardFlags() {
return RefactoringWizard.DIALOG_BASED_USER_INTERFACE | RefactoringWizard.PREVIEW_EXPAND_FIRST_NODE;
}
示例10: ReplaceWizard
public ReplaceWizard(ReplaceRefactoring refactoring) {
super(refactoring, RefactoringWizard.DIALOG_BASED_USER_INTERFACE);
}