public static class EclipseJsonFormatterStepImpl.SpotlessJsonCleanup extends org.eclipse.wst.json.core.cleanup.CleanupProcessorJSON implements CleanupStep.ProcessorAccessor
For example the abstract formatter supports the CASE_PROPERTY_NAME configuration item. However, this seems to be all dead code and there seems to be no way in the latest Eclipse GUI to configure or trigger the clean-up process.
Here we just use the CleanupProcessorJSON to reuse the common interface to trigger the formatting.
Seeorg.eclipse.wst.json.core.internal.format.AbstractJSONSourceFormatter for details.| Constructor and Description |
|---|
SpotlessJsonCleanup() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
cleanupContent(java.lang.String input) |
java.lang.String |
getThisContentType()
Returns this.getContentType()
|
org.eclipse.wst.sse.core.internal.format.IStructuredFormatProcessor |
getThisFormatProcessor()
Returns this.getFormatProcessor()
|
void |
refreshThisCleanupPreferences()
Calls this.refreshCleanupPreferences()
|
cleanupDocument, cleanupDocument, cleanupModel, cleanupModel, getCleanupHandler, getContentType, getFormatProcessor, refreshCleanupPreferencescleanupContent, cleanupFile, cleanupFile, cleanupFileName, cleanupFileName, cleanupModel, cleanupModel, cleanupNode, convertLineDelimiters, ensureClosed, getActiveNodes, getConvertEOLCodesPreference, getEOLCodePreference, getFormatSourcePreference, isSiblingOfpublic java.lang.String getThisContentType()
CleanupStep.ProcessorAccessorgetThisContentType in interface CleanupStep.ProcessorAccessorpublic org.eclipse.wst.sse.core.internal.format.IStructuredFormatProcessor getThisFormatProcessor()
CleanupStep.ProcessorAccessorgetThisFormatProcessor in interface CleanupStep.ProcessorAccessorpublic void refreshThisCleanupPreferences()
CleanupStep.ProcessorAccessorrefreshThisCleanupPreferences in interface CleanupStep.ProcessorAccessorpublic java.lang.String cleanupContent(java.lang.String input)
throws java.io.IOException,
org.eclipse.core.runtime.CoreException
cleanupContent in interface org.eclipse.wst.sse.core.internal.cleanup.IStructuredCleanupProcessorcleanupContent in class org.eclipse.wst.sse.core.internal.cleanup.AbstractStructuredCleanupProcessorjava.io.IOExceptionorg.eclipse.core.runtime.CoreException