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


Java RefactoringWizard.DIALOG_BASED_USER_INTERFACE属性代码示例

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

示例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) {}
	}
 
开发者ID:chrisGerken,项目名称:transformAuthoring,代码行数:15,代码来源:ReplaceTokens.java

示例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);
}
 
开发者ID:secondfiddle,项目名称:pep-tools,代码行数:6,代码来源:RenameProductWizard.java

示例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);
}
 
开发者ID:secondfiddle,项目名称:pep-tools,代码行数:6,代码来源:RenameFeatureWizard.java

示例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;
}
 
开发者ID:fabioz,项目名称:Pydev,代码行数:5,代码来源:InlineLocalAction.java

示例9: getWizardFlags

@Override
protected int getWizardFlags() {
    return RefactoringWizard.DIALOG_BASED_USER_INTERFACE | RefactoringWizard.PREVIEW_EXPAND_FIRST_NODE;
}
 
开发者ID:fabioz,项目名称:Pydev,代码行数:4,代码来源:ExtractLocalAction.java

示例10: ReplaceWizard

public ReplaceWizard(ReplaceRefactoring refactoring) {
    super(refactoring, RefactoringWizard.DIALOG_BASED_USER_INTERFACE);
}
 
开发者ID:fabioz,项目名称:Pydev,代码行数:3,代码来源:ReplaceAction.java


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