public class CodeStyleConfiguration
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static ImportRewrite |
createImportRewrite(IJavaScriptUnit cu,
boolean restoreExistingImports)
Returns a
ImportRewrite using ImportRewrite.create(IJavaScriptUnit, boolean) and
configures the rewriter with the settings as specified in the JDT UI preferences. |
static ImportRewrite |
createImportRewrite(JavaScriptUnit astRoot,
boolean restoreExistingImports)
Returns a
ImportRewrite using ImportRewrite.create(JavaScriptUnit, boolean) and
configures the rewriter with the settings as specified in the JDT UI preferences. |
public static ImportRewrite createImportRewrite(IJavaScriptUnit cu, boolean restoreExistingImports) throws JavaScriptModelException
ImportRewrite
using ImportRewrite.create(IJavaScriptUnit, 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.JavaScriptModelException
- thrown when the compilation unit could not be accessed.ImportRewrite.create(IJavaScriptUnit, boolean)
public static ImportRewrite createImportRewrite(JavaScriptUnit astRoot, boolean restoreExistingImports)
ImportRewrite
using ImportRewrite.create(JavaScriptUnit, 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(JavaScriptUnit, boolean)
Copyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.