1 11 package org.eclipse.jdt.internal.ui.text; 12 13 import org.eclipse.jface.preference.IPreferenceStore; 14 15 import org.eclipse.jface.text.IAutoEditStrategy; 16 import org.eclipse.jface.text.IInformationControlCreator; 17 import org.eclipse.jface.text.ITextHover; 18 import org.eclipse.jface.text.formatter.IContentFormatter; 19 import org.eclipse.jface.text.hyperlink.IHyperlinkDetector; 20 import org.eclipse.jface.text.information.IInformationPresenter; 21 import org.eclipse.jface.text.source.IAnnotationHover; 22 import org.eclipse.jface.text.source.ISourceViewer; 23 24 import org.eclipse.ui.texteditor.ITextEditor; 25 26 import org.eclipse.jdt.ui.text.IColorManager; 27 import org.eclipse.jdt.ui.text.JavaSourceViewerConfiguration; 28 29 30 39 public class SimpleJavaSourceViewerConfiguration extends JavaSourceViewerConfiguration { 40 41 42 private boolean fConfigureFormatter; 43 44 54 public SimpleJavaSourceViewerConfiguration(IColorManager colorManager, IPreferenceStore preferenceStore, ITextEditor editor, String partitioning, boolean configureFormatter) { 55 super(colorManager, preferenceStore, editor, partitioning); 56 fConfigureFormatter= configureFormatter; 57 } 58 59 62 public IAutoEditStrategy[] getAutoEditStrategies(ISourceViewer sourceViewer, String contentType) { 63 return null; 64 } 65 66 69 public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer) { 70 return null; 71 } 72 73 76 public IAnnotationHover getOverviewRulerAnnotationHover(ISourceViewer sourceViewer) { 77 return null; 78 } 79 80 83 public int[] getConfiguredTextHoverStateMasks(ISourceViewer sourceViewer, String contentType) { 84 return null; 85 } 86 87 90 public ITextHover getTextHover(ISourceViewer sourceViewer, String contentType, int stateMask) { 91 return null; 92 } 93 94 97 public ITextHover getTextHover(ISourceViewer sourceViewer, String contentType) { 98 return null; 99 } 100 101 104 public IContentFormatter getContentFormatter(ISourceViewer sourceViewer) { 105 if (fConfigureFormatter) 106 return super.getContentFormatter(sourceViewer); 107 else 108 return null; 109 } 110 111 114 public IInformationControlCreator getInformationControlCreator(ISourceViewer sourceViewer) { 115 return null; 116 } 117 118 121 public IInformationPresenter getInformationPresenter(ISourceViewer sourceViewer) { 122 return null; 123 } 124 125 128 public IInformationPresenter getOutlinePresenter(ISourceViewer sourceViewer, boolean doCodeResolve) { 129 return null; 130 } 131 132 135 public IInformationPresenter getHierarchyPresenter(ISourceViewer sourceViewer, boolean doCodeResolve) { 136 return null; 137 } 138 139 142 public IHyperlinkDetector[] getHyperlinkDetectors(ISourceViewer sourceViewer) { 143 return null; 144 } 145 } 146 | Popular Tags |