|
Eclipse JDT Release 3.7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.ui.CodeStyleConfiguration
public class CodeStyleConfiguration
Gives access to the import rewrite configured with the settings as specified in the user interface. These settings are kept in JDT UI for compatibility reasons.
This class is not intended to be subclassed or instantiated by clients.
Method Summary | |
---|---|
static ImportRewrite |
createImportRewrite(CompilationUnit astRoot,
boolean restoreExistingImports)
Returns a ImportRewrite using ImportRewrite.create(CompilationUnit, boolean) and
configures the rewriter with the settings as specified in the JDT UI preferences. |
static ImportRewrite |
createImportRewrite(ICompilationUnit cu,
boolean restoreExistingImports)
Returns a ImportRewrite using ImportRewrite.create(ICompilationUnit, boolean) and
configures the rewriter with the settings as specified in the JDT UI preferences. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ImportRewrite createImportRewrite(ICompilationUnit cu, boolean restoreExistingImports) throws JavaModelException
ImportRewrite
using ImportRewrite.create(ICompilationUnit, boolean)
and
configures the rewriter with the settings as specified in the JDT UI preferences.
cu
- the compilation unit to create the rewriter onrestoreExistingImports
- specifies if the existing imports should be kept or removed.
JavaModelException
- thrown when the compilation unit could not be accessed.ImportRewrite.create(ICompilationUnit, boolean)
public static ImportRewrite createImportRewrite(CompilationUnit astRoot, boolean restoreExistingImports)
ImportRewrite
using ImportRewrite.create(CompilationUnit, boolean)
and
configures the rewriter with the settings as specified in the JDT UI preferences.
astRoot
- the AST root to create the rewriter onrestoreExistingImports
- specifies if the existing imports should be kept or removed.
ImportRewrite.create(CompilationUnit, boolean)
|
Eclipse JDT Release 3.7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) 2000, 2011 IBM Corporation and others. All rights reserved.