Bug 111464 - API to get line delimiter / indent of a JavaElement
Summary: API to get line delimiter / indent of a JavaElement
Status: RESOLVED DUPLICATE of bug 110650
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-04 11:28 EDT by Vikas Trivedi CLA
Modified: 2006-01-30 07:08 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vikas Trivedi CLA 2005-10-04 11:28:39 EDT
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.
Comment 1 Martin Aeschlimann CLA 2005-10-05 12:48:37 EDT
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.
Comment 2 Martin Aeschlimann CLA 2005-10-05 13:51:17 EDT
Moving to jdt.core
Comment 3 Martin Aeschlimann CLA 2006-01-27 12:17:37 EST
There is now new API on ICompilationUnit: findRecommendedLineSeparator.
For indents there is bug 111446.
Comment 4 Jerome Lanneluc CLA 2006-01-30 07:08:20 EST
Thanks Martin. To be exact, the API is IOpenable#findRecommendedLineSeparator()

*** This bug has been marked as a duplicate of 110650 ***