Esempio n. 1
0
 public com.google.inject.Provider<org.eclipse.xtext.resource.containers.IAllContainersState>
     provideIAllContainersState() {
   if (Access.getJdtHelper().get().isJavaCoreAvailable()) {
     return Access.getJavaProjectsState();
   } else {
     return Access.getWorkspaceProjectsState();
   }
 }
Esempio n. 2
0
 @Override
 public Class<? extends IResourceForEditorInputFactory> bindIResourceForEditorInputFactory() {
   if (Access.getJdtHelper().get().isJavaCoreAvailable()) {
     return JavaClassPathResourceForIEditorInputFactory.class;
   } else {
     return ResourceForIEditorInputFactory.class;
   }
 }
Esempio n. 3
0
 @Override
 public Class<? extends IResourceSetProvider> bindIResourceSetProvider() {
   if (Access.getJdtHelper().get().isJavaCoreAvailable()) {
     return XtextResourceSetProvider.class;
   } else {
     return SimpleResourceSetProvider.class;
   }
 }
 // contributed by org.eclipse.xtext.ui.generator.ImplicitUiFragment
 public com.google.inject.Provider<org.eclipse.xtext.resource.containers.IAllContainersState>
     provideIAllContainersState() {
   return org.eclipse.xtext.ui.shared.Access.getJavaProjectsState();
 }
 public DirtyStateAwareDiagramDocumentEditor(boolean hasFlyoutPalette) {
   super(hasFlyoutPalette);
   dirtyStateManager = Access.getIDirtyStateManager().get();
   uri2dirtyResource = Maps.newHashMap();
 }
Esempio n. 6
0
 @Override
 public Provider<IAllContainersState> provideIAllContainersState() {
   return Access.getWorkspaceProjectsState();
 }
Esempio n. 7
0
 // contributed by org.eclipse.xtext.xtext.generator.ImplicitFragment
 public Provider<IAllContainersState> provideIAllContainersState() {
   return Access.getJavaProjectsState();
 }