org.eclipse.xtext.ui.editor.IURIEditorOpener Java Examples

The following examples show how to use org.eclipse.xtext.ui.editor.IURIEditorOpener. 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: TesterUiModule.java    From n4js with Eclipse Public License 1.0 6 votes vote down vote up
@Override
public void configure(Binder binder) {
	// define all bindings to N4JS-UI here (ui packages)
	binder.bind(XtextPresentationReconciler.class)
			.toProvider(() -> n4jsInjector.getInstance(XtextPresentationReconciler.class));
	binder.bind(EditorContentExtractor.class)
			.toProvider(() -> n4jsInjector.getInstance(EditorContentExtractor.class));
	binder.bind(IN4JSEclipseCore.class)
			.toProvider(() -> n4jsInjector.getInstance(IN4JSEclipseCore.class));
	binder.bind(IURIEditorOpener.class)
			.toProvider(() -> n4jsInjector.getInstance(IURIEditorOpener.class));
	binder.bind(RunnerFrontEndUI.class)
			.toProvider(() -> n4jsInjector.getInstance(RunnerFrontEndUI.class));

	binder.bind(TestResultsView.class);
	binder.bind(TestConfigurationConverter.class);
}
 
Example #2
Source File: SCTXtextIntegrationModule.java    From statecharts with Eclipse Public License 1.0 6 votes vote down vote up
@Override
public void configure(Binder binder) {
	binder.bind(IResourceValidator.class).to(SCTResourceValidatorImpl.class);
	binder.bind(String.class).annotatedWith(Names.named(Constants.FILE_EXTENSIONS)).toInstance("sct");
	binder.bind(IEncodingProvider.class).to(IEncodingProvider.Runtime.class);
	binder.bind(IQualifiedNameProvider.class).to(StextNameProvider.class);
	binder.bind(org.eclipse.jface.viewers.ILabelProvider.class)
			.annotatedWith(org.eclipse.xtext.ui.resource.ResourceServiceDescriptionLabelProvider.class)
			.to(DefaultDescriptionLabelProvider.class);
	binder.bind(IDefaultResourceDescriptionStrategy.class).to(SCTResourceDescriptionStrategy.class);
	
	binder.bind(MarkerCreator.class).to(SCTMarkerCreator.class);
	binder.bind(MarkerTypeProvider.class).to(SCTMarkerTypeProvider.class);
	binder.bind(IDiagnosticConverter.class).to(SCTDiagnosticConverterImpl.class);
	binder.bind(IURIEditorOpener.class).annotatedWith(LanguageSpecific.class).to(SCTFileEditorOpener.class);
	
	binder.bind(IMarkerContributor.class).to(TaskMarkerContributor.class);
	binder.bind(ITaskFinder.class).to(DomainSpecificTaskFinder.class);
	binder.bind(TaskMarkerCreator.class).to(SCTTaskMarkerCreator.class);
	binder.bind(TaskMarkerTypeProvider.class).to(SCTTaskMarkerTypeProvider.class);
}
 
Example #3
Source File: AbstractSARLUiModule.java    From sarl with Apache License 2.0 4 votes vote down vote up
public void configureLanguageSpecificURIEditorOpener(Binder binder) {
	if (PlatformUI.isWorkbenchRunning()) {
		binder.bind(IURIEditorOpener.class).annotatedWith(LanguageSpecific.class).to(DerivedMemberAwareEditorOpener.class);
		binder.bind(IDerivedMemberAwareEditorOpener.class).to(DerivedMemberAwareEditorOpener.class);
	}
}
 
Example #4
Source File: AbstractXtendUiModule.java    From xtext-xtend with Eclipse Public License 2.0 4 votes vote down vote up
public void configureLanguageSpecificURIEditorOpener(Binder binder) {
	if (PlatformUI.isWorkbenchRunning()) {
		binder.bind(IURIEditorOpener.class).annotatedWith(LanguageSpecific.class).to(DerivedMemberAwareEditorOpener.class);
		binder.bind(IDerivedMemberAwareEditorOpener.class).to(DerivedMemberAwareEditorOpener.class);
	}
}
 
Example #5
Source File: AbstractContentAssistFragmentTestLangUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public void configureLanguageSpecificURIEditorOpener(Binder binder) {
	if (PlatformUI.isWorkbenchRunning()) {
		binder.bind(IURIEditorOpener.class).annotatedWith(LanguageSpecific.class).to(DerivedMemberAwareEditorOpener.class);
		binder.bind(IDerivedMemberAwareEditorOpener.class).to(DerivedMemberAwareEditorOpener.class);
	}
}
 
Example #6
Source File: AbstractXImportSectionTestLangUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public void configureLanguageSpecificURIEditorOpener(Binder binder) {
	if (PlatformUI.isWorkbenchRunning()) {
		binder.bind(IURIEditorOpener.class).annotatedWith(LanguageSpecific.class).to(DerivedMemberAwareEditorOpener.class);
		binder.bind(IDerivedMemberAwareEditorOpener.class).to(DerivedMemberAwareEditorOpener.class);
	}
}
 
Example #7
Source File: AbstractBug462047LangUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public void configureLanguageSpecificURIEditorOpener(Binder binder) {
	if (PlatformUI.isWorkbenchRunning()) {
		binder.bind(IURIEditorOpener.class).annotatedWith(LanguageSpecific.class).to(DerivedMemberAwareEditorOpener.class);
		binder.bind(IDerivedMemberAwareEditorOpener.class).to(DerivedMemberAwareEditorOpener.class);
	}
}
 
Example #8
Source File: AbstractPureXbaseUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public void configureLanguageSpecificURIEditorOpener(Binder binder) {
	if (PlatformUI.isWorkbenchRunning()) {
		binder.bind(IURIEditorOpener.class).annotatedWith(LanguageSpecific.class).to(DerivedMemberAwareEditorOpener.class);
		binder.bind(IDerivedMemberAwareEditorOpener.class).to(DerivedMemberAwareEditorOpener.class);
	}
}
 
Example #9
Source File: DefaultUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public void configureLanguageSpecificURIEditorOpener(com.google.inject.Binder binder) {
	if (PlatformUI.isWorkbenchRunning())
		binder.bind(IURIEditorOpener.class).annotatedWith(LanguageSpecific.class)
				.to(LanguageSpecificURIEditorOpener.class);
}
 
Example #10
Source File: DefaultResourceUIServiceProvider.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public IURIEditorOpener getURIEditorOpener() {
	return uriEditorOpener;
}
 
Example #11
Source File: EmfUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public void configureLanguageSpecificURIEditorOpener(com.google.inject.Binder binder) {
	binder.bind(IURIEditorOpener.class).annotatedWith(LanguageSpecific.class).to(LanguageSpecificURIEditorOpener.class);
}
 
Example #12
Source File: EcoreUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public void configureLanguageSpecificURIEditorOpener(com.google.inject.Binder binder) {
	binder.bind(IURIEditorOpener.class).annotatedWith(LanguageSpecific.class).to(EcoreEditorOpener.class);
}
 
Example #13
Source File: SharedStateModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Provider<IURIEditorOpener> provideIURIEditorOpener() {
	return Access.getIURIEditorOpener();
}
 
Example #14
Source File: Access.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public static Provider<IURIEditorOpener> getIURIEditorOpener() {
	return provider(IURIEditorOpener.class);
}
 
Example #15
Source File: AbstractRuleEngineUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public void configureLanguageSpecificURIEditorOpener(Binder binder) {
	if (PlatformUI.isWorkbenchRunning()) {
		binder.bind(IURIEditorOpener.class).annotatedWith(LanguageSpecific.class).to(DerivedMemberAwareEditorOpener.class);
		binder.bind(IDerivedMemberAwareEditorOpener.class).to(DerivedMemberAwareEditorOpener.class);
	}
}
 
Example #16
Source File: AbstractDomainmodelUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public void configureLanguageSpecificURIEditorOpener(Binder binder) {
	if (PlatformUI.isWorkbenchRunning()) {
		binder.bind(IURIEditorOpener.class).annotatedWith(LanguageSpecific.class).to(DerivedMemberAwareEditorOpener.class);
		binder.bind(IDerivedMemberAwareEditorOpener.class).to(DerivedMemberAwareEditorOpener.class);
	}
}
 
Example #17
Source File: IResourceUIServiceProvider.java    From xtext-eclipse with Eclipse Public License 2.0 2 votes vote down vote up
/**
 * The {@link IURIEditorOpener}�of the language
 */
IURIEditorOpener getURIEditorOpener();
 
Example #18
Source File: CheckUiModule.java    From dsl-devkit with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * Binds a editor opener for platform plugin URIs.
 *
 * @param binder
 *          the binder
 */
@Override
public void configureLanguageSpecificURIEditorOpener(final com.google.inject.Binder binder) {
  binder.bind(IURIEditorOpener.class).annotatedWith(LanguageSpecific.class).to(PlatformPluginAwareEditorOpener.class);
}
 
Example #19
Source File: ChangeManager.java    From n4js with Eclipse Public License 1.0 2 votes vote down vote up
private IURIEditorOpener getEditorOpener() {
	return org.eclipse.ui.PlatformUI.isWorkbenchRunning() ? tempInjector.getInstance(IURIEditorOpener.class) : null;

}