Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse JDT
Release 3.5

org.eclipse.jdt.ui
Class CodeStyleConfiguration


java.lang.Object
  extended by 
org.eclipse.jdt.ui.CodeStyleConfiguration

public class CodeStyleConfiguration
extends Object

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.

Since:
3.2
Restriction:
This class is not intended to be subclassed by clients.
Restriction:
This class is not intended to be 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

createImportRewrite

public static 
ImportRewrite createImportRewrite(
ICompilationUnit cu,
                                                boolean restoreExistingImports)
                                         throws 
JavaModelException
Returns a ImportRewrite using ImportRewrite.create(ICompilationUnit, boolean) and configures the rewriter with the settings as specified in the JDT UI preferences.

Parameters:
cu - the compilation unit to create the rewriter on
restoreExistingImports - specifies if the existing imports should be kept or removed.
Returns:
the new rewriter configured with the settings as specified in the JDT UI preferences.
Throws:
JavaModelException - thrown when the compilation unit could not be accessed.
See Also:
ImportRewrite.create(ICompilationUnit, boolean)

createImportRewrite

public 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.

Parameters:
astRoot - the AST root to create the rewriter on
restoreExistingImports - specifies if the existing imports should be kept or removed.
Returns:
the new rewriter configured with the settings as specified in the JDT UI preferences.
See Also:
ImportRewrite.create(CompilationUnit, boolean)

Eclipse JDT
Release 3.5

Copyright (c) IBM Corp. and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire