Idex 983 Use codemirror as default editor

Depends on IDEX-982 being merged.
Hm, I was followingthe same pattern as in
https://github.com/codenvy/ide/blob/master/codenvy-ide-core/src/main/java/com/codenvy/ide/core/inject/FileTypeModule.java#L35
and
https://github.com/codenvy/ide/blob/master/codenvy-ide-core/src/main/java/com/codenvy/ide/core/StandardComponentInitializer.java#L160

But I have no problem with defining a custom annotation. Which do you
prefer ?


2014-08-04 12:05 GMT+02:00 Vitalii Parfonov <notifications@github.com>:

> In
> codenvy-ide-jseditor/src/main/java/com/codenvy/ide/jseditor/client/defaulteditor/DefaultEditorProvider.java:
>
> > +import com.codenvy.ide.jseditor.client.editortype.EditorTypeRegistry;
> > +import com.codenvy.ide.util.loging.Log;
> > +import com.google.inject.Inject;
> > +
> > +
> > +public class DefaultEditorProvider implements EditorProvider {
> > +
> > +    private final EditorTypeMapping  editorTypeMapping;
> > +    private final EditorTypeRegistry editorTypeRegistry;
> > +    private final FileType           plainTextFileType;
> > +    private final EditorType         defaultEditorType;
> > +
> > +    @Inject
> > +    public DefaultEditorProvider(final EditorTypeMapping editorTypeMapping,
> > +                                 final EditorTypeRegistry editorTypeRegistry,
> > +                                 final @Named(JsEditorExtension.PLAIN_TEXT_FILETYPE_INJECT_NAME) FileType plainTextFileType,
>
> can we use here custome annotation?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/codenvy/ide/pull/153/files#r15748213>.
>