org.eclipse.xtext.ui.refactoring.IRenameRefactoringProvider Java Examples

The following examples show how to use org.eclipse.xtext.ui.refactoring.IRenameRefactoringProvider. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AbstractProcessorBasedRenameParticipant.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
protected RenameProcessor getRenameProcessor(IRenameElementContext participantContext) {
	IRenameRefactoringProvider renameRefactoringProvider = getRenameRefactoringProvider(participantContext);
	if (renameRefactoringProvider != null)
		return renameRefactoringProvider.getRenameProcessor(participantContext);
	else
		return null;
}
 
Example #2
Source File: SharedCommonTypesModule.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
public void configure(Binder binder) {
	binder.bind(IEObjectHoverProvider.class).to(JdtHoverProvider.class);
	binder.bind(IEObjectHoverDocumentationProvider.class).to(JdtHoverDocumentationProvider.class);
	binder.bind(IResourceServiceProvider.class).to(SharedCommonTypesResourceServiceProvider.class);
	binder.bind(IResourceSetProvider.class).to(XtextResourceSetProvider.class);
	binder.bindConstant().annotatedWith(Names.named(Constants.FILE_EXTENSIONS)).to("java");

	binder.bind(IQualifiedNameProvider.class).to(JvmIdentifiableQualifiedNameProvider.class);
	binder.bind(ICopyQualifiedNameService.class).to(DefaultCopyQualifiedNameService.class);
	binder.bind(IJvmTypeProvider.Factory.class).to(JdtTypeProviderFactory.class);
	binder.bind(IRenameRefactoringProvider.class).to(DefaultRenameRefactoringProvider.class);
	binder.bind(AbstractRenameProcessor.class).to(JvmMemberRenameProcessor.class);
	binder.bind(IRenameStrategy.Provider.class).to(JvmMemberRenameStrategy.Provider.class);
	binder.bind(RefactoringResourceSetProvider.class).to(JvmRefactoringResourceSetProvider.class);
	binder.bind(String.class).annotatedWith(Names.named(Constants.LANGUAGE_NAME)).toInstance("Java");

	binder.bind(IResourceDescriptions.class).annotatedWith(Names.named(ResourceDescriptionsProvider.LIVE_SCOPE))
			.to(LiveShadowedResourceDescriptions.class);
	binder.bind(IResourceDescriptions.class)
			.annotatedWith(Names.named(ResourceDescriptionsProvider.NAMED_BUILDER_SCOPE))
			.to(CurrentDescriptions.ResourceSetAware.class);
	binder.bind(IResourceDescriptions.class)
			.annotatedWith(Names.named(ResourceDescriptionsProvider.PERSISTED_DESCRIPTIONS))
			.to(IBuilderState.class);

	binder.bind(IWorkspaceRoot.class).toInstance(ResourcesPlugin.getWorkspace().getRoot());
	binder.bind(ITraceForStorageProvider.class).to(TraceForStorageProvider.class);

	binder.bind(IReferenceUpdater.class).to(NullReferenceUpdater.class);
}
 
Example #3
Source File: AbstractDomainmodelUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IRenameRefactoringProvider> bindIRenameRefactoringProvider() {
	return CombinedJvmJdtRenameRefactoringProvider.class;
}
 
Example #4
Source File: AbstractRefactoringTestLanguage1UiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IRenameRefactoringProvider> bindIRenameRefactoringProvider() {
	return DefaultRenameRefactoringProvider.class;
}
 
Example #5
Source File: AbstractStatemachineUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IRenameRefactoringProvider> bindIRenameRefactoringProvider() {
	return DefaultRenameRefactoringProvider.class;
}
 
Example #6
Source File: AbstractRuleEngineUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IRenameRefactoringProvider> bindIRenameRefactoringProvider() {
	return CombinedJvmJdtRenameRefactoringProvider.class;
}
 
Example #7
Source File: AbstractArithmeticsUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IRenameRefactoringProvider> bindIRenameRefactoringProvider() {
	return DefaultRenameRefactoringProvider.class;
}
 
Example #8
Source File: AbstractBuilderTestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IRenameRefactoringProvider> bindIRenameRefactoringProvider() {
	return DefaultRenameRefactoringProvider.class;
}
 
Example #9
Source File: EmfUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
/**
 * @since 2.1
 */
public Class<? extends IRenameRefactoringProvider> bindIRenameRefactoringProvider() {
	return DefaultRenameRefactoringProvider.class;
}
 
Example #10
Source File: AbstractProcessorBasedRenameParticipant.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
protected IRenameRefactoringProvider getRenameRefactoringProvider(IRenameElementContext renameElementContext) {
	return globalServiceProvider.findService(renameElementContext.getTargetElementURI(),
			IRenameRefactoringProvider.class);
}
 
Example #11
Source File: AbstractPureXbaseUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IRenameRefactoringProvider> bindIRenameRefactoringProvider() {
	return CombinedJvmJdtRenameRefactoringProvider.class;
}
 
Example #12
Source File: AbstractBug462047LangUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IRenameRefactoringProvider> bindIRenameRefactoringProvider() {
	return CombinedJvmJdtRenameRefactoringProvider.class;
}
 
Example #13
Source File: AbstractXImportSectionTestLangUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IRenameRefactoringProvider> bindIRenameRefactoringProvider() {
	return CombinedJvmJdtRenameRefactoringProvider.class;
}
 
Example #14
Source File: AbstractContentAssistFragmentTestLangUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IRenameRefactoringProvider> bindIRenameRefactoringProvider() {
	return CombinedJvmJdtRenameRefactoringProvider.class;
}
 
Example #15
Source File: AbstractXtendUiModule.java    From xtext-xtend with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IRenameRefactoringProvider> bindIRenameRefactoringProvider() {
	return CombinedJvmJdtRenameRefactoringProvider.class;
}
 
Example #16
Source File: AbstractHelloWorldUiModule.java    From dsl-devkit with Eclipse Public License 1.0 4 votes vote down vote up
public Class<? extends IRenameRefactoringProvider> bindIRenameRefactoringProvider() {
	return DefaultRenameRefactoringProvider.class;
}
 
Example #17
Source File: AbstractGamlUiModule.java    From gama with GNU General Public License v3.0 4 votes vote down vote up
public Class<? extends IRenameRefactoringProvider> bindIRenameRefactoringProvider() {
	return DefaultRenameRefactoringProvider.class;
}
 
Example #18
Source File: AbstractSARLUiModule.java    From sarl with Apache License 2.0 4 votes vote down vote up
public Class<? extends IRenameRefactoringProvider> bindIRenameRefactoringProvider() {
	return CombinedJvmJdtRenameRefactoringProvider.class;
}
 
Example #19
Source File: AbstractNestedRefsTestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IRenameRefactoringProvider> bindIRenameRefactoringProvider() {
	return DefaultRenameRefactoringProvider.class;
}
 
Example #20
Source File: AbstractRegularExpressionUiModule.java    From n4js with Eclipse Public License 1.0 4 votes vote down vote up
public Class<? extends IRenameRefactoringProvider> bindIRenameRefactoringProvider() {
	return DefaultRenameRefactoringProvider.class;
}
 
Example #21
Source File: AbstractJSONUiModule.java    From n4js with Eclipse Public License 1.0 4 votes vote down vote up
public Class<? extends IRenameRefactoringProvider> bindIRenameRefactoringProvider() {
	return DefaultRenameRefactoringProvider.class;
}
 
Example #22
Source File: AbstractTypesUiModule.java    From n4js with Eclipse Public License 1.0 4 votes vote down vote up
public Class<? extends IRenameRefactoringProvider> bindIRenameRefactoringProvider() {
	return DefaultRenameRefactoringProvider.class;
}
 
Example #23
Source File: AbstractBromiumUiModule.java    From bromium with MIT License 4 votes vote down vote up
public Class<? extends IRenameRefactoringProvider> bindIRenameRefactoringProvider() {
	return DefaultRenameRefactoringProvider.class;
}
 
Example #24
Source File: AbstractMyDslUiModule.java    From M2Doc with Eclipse Public License 1.0 4 votes vote down vote up
public Class<? extends IRenameRefactoringProvider> bindIRenameRefactoringProvider() {
	return DefaultRenameRefactoringProvider.class;
}
 
Example #25
Source File: AbstractFileAwareTestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IRenameRefactoringProvider> bindIRenameRefactoringProvider() {
	return DefaultRenameRefactoringProvider.class;
}
 
Example #26
Source File: AbstractXtextGrammarTestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IRenameRefactoringProvider> bindIRenameRefactoringProvider() {
	return DefaultRenameRefactoringProvider.class;
}
 
Example #27
Source File: AbstractNoJdtTestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IRenameRefactoringProvider> bindIRenameRefactoringProvider() {
	return DefaultRenameRefactoringProvider.class;
}
 
Example #28
Source File: AbstractN4JSUiModule.java    From n4js with Eclipse Public License 1.0 4 votes vote down vote up
public Class<? extends IRenameRefactoringProvider> bindIRenameRefactoringProvider() {
	return DefaultRenameRefactoringProvider.class;
}
 
Example #29
Source File: AbstractXmlUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IRenameRefactoringProvider> bindIRenameRefactoringProvider() {
	return DefaultRenameRefactoringProvider.class;
}
 
Example #30
Source File: AbstractRefactoringTestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IRenameRefactoringProvider> bindIRenameRefactoringProvider() {
	return DefaultRenameRefactoringProvider.class;
}