blob: 8762132c5e36b3bbbfb32a0a15600969d7db0f50 [file] [log] [blame]
package org.eclipse.fx.code.editor.services.internal;
import org.eclipse.fx.code.editor.Input;
import org.eclipse.fx.code.editor.services.DocumentTypeProvider;
import org.eclipse.fx.code.editor.services.InputDocument;
import org.eclipse.jface.text.IDocument;
import org.osgi.service.component.annotations.Component;
@Component
public class InputDocumentTypeProvider implements DocumentTypeProvider {
@Override
public Class<? extends IDocument> getType(Input<?> s) {
return InputDocument.class;
}
@Override
public boolean test(Input<?> t) {
return true;
}
}