Search in sources :

Example 1 with JavaCore

use of org.eclipse.jdt.core.JavaCore in project che by eclipse.

the class JavaPlugin method start.

@PostConstruct
public void start() {
    //        WorkingCopyOwner.setPrimaryBufferProvider(new WorkingCopyOwner() {
    //            @Override
    //            public IBuffer createBuffer(ICompilationUnit workingCopy) {
    //                ICompilationUnit original = workingCopy.getPrimary();
    //                IResource resource = original.getResource();
    //                if (resource instanceof IFile)
    //                    return new DocumentAdapter(workingCopy, (IFile)resource);
    //                return DocumentAdapter.NULL;
    //            }
    //        });
    new JavaCore();
    fMembersOrderPreferenceCache = new MembersOrderPreferenceCache();
    PreferenceConstants.initializeDefaultValues(PreferenceConstants.getPreferenceStore());
    new JavaCorePreferenceInitializer().initializeDefaultPreferences();
    new CheCodeFormatterInitializer().initializeDefaultPreferences();
}
Also used : MembersOrderPreferenceCache(org.eclipse.jdt.internal.ui.preferences.MembersOrderPreferenceCache) JavaCorePreferenceInitializer(org.eclipse.jdt.internal.core.JavaCorePreferenceInitializer) JavaCore(org.eclipse.jdt.core.JavaCore) CheCodeFormatterInitializer(org.eclipse.jdt.internal.corext.format.CheCodeFormatterInitializer) PostConstruct(javax.annotation.PostConstruct)

Aggregations

PostConstruct (javax.annotation.PostConstruct)1 JavaCore (org.eclipse.jdt.core.JavaCore)1 JavaCorePreferenceInitializer (org.eclipse.jdt.internal.core.JavaCorePreferenceInitializer)1 CheCodeFormatterInitializer (org.eclipse.jdt.internal.corext.format.CheCodeFormatterInitializer)1 MembersOrderPreferenceCache (org.eclipse.jdt.internal.ui.preferences.MembersOrderPreferenceCache)1