Community
Participate
Working Groups
We are using internal jdt calls to perform some of our operations. StubUtility is being used to get the lineDelimiter and Indent used for a give IType. We couldn't find public API to replace this usage. This is blocking our effort to remove access to JDT internal source.
The chance that StubUtility.getLineDelimiterUsed becomes public is very small. I agree however that it would be important to solve this. For the indent we are trying to make Indent API (see bug 111446). For the short term I would recommend you to copy the two methods.
Moving to jdt.core
There is now new API on ICompilationUnit: findRecommendedLineSeparator. For indents there is bug 111446.
Thanks Martin. To be exact, the API is IOpenable#findRecommendedLineSeparator() *** This bug has been marked as a duplicate of 110650 ***