Ejemplo 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();
   }
 }
Ejemplo n.º 2
0
 @Override
 public Class<? extends IResourceForEditorInputFactory> bindIResourceForEditorInputFactory() {
   if (Access.getJdtHelper().get().isJavaCoreAvailable()) {
     return JavaClassPathResourceForIEditorInputFactory.class;
   } else {
     return ResourceForIEditorInputFactory.class;
   }
 }
Ejemplo n.º 3
0
 @Override
 public Class<? extends IResourceSetProvider> bindIResourceSetProvider() {
   if (Access.getJdtHelper().get().isJavaCoreAvailable()) {
     return XtextResourceSetProvider.class;
   } else {
     return SimpleResourceSetProvider.class;
   }
 }
Ejemplo n.º 4
0
 // 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();
 }
Ejemplo n.º 6
0
 @Override
 public Provider<IAllContainersState> provideIAllContainersState() {
   return Access.getWorkspaceProjectsState();
 }
Ejemplo n.º 7
0
 // contributed by org.eclipse.xtext.xtext.generator.ImplicitFragment
 public Provider<IAllContainersState> provideIAllContainersState() {
   return Access.getJavaProjectsState();
 }