KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > corext > codemanipulation > CodeGenerationSettings


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.internal.corext.codemanipulation;
12
13 public class CodeGenerationSettings {
14     
15     public boolean createComments= true;
16     public boolean useKeywordThis= false;
17     
18     public String JavaDoc[] importOrder= new String JavaDoc[0];
19     public int importThreshold= 99;
20     public int staticImportThreshold= 99;
21     public boolean importIgnoreLowercase= true;
22     public boolean overrideAnnotation= false;
23         
24     public int tabWidth;
25     public int indentWidth;
26
27
28     
29     public void setSettings(CodeGenerationSettings settings) {
30         settings.createComments= createComments;
31         settings.useKeywordThis= useKeywordThis;
32         settings.importOrder= importOrder;
33         settings.importThreshold= importThreshold;
34         settings.staticImportThreshold= staticImportThreshold;
35         settings.importIgnoreLowercase= importIgnoreLowercase;
36         settings.overrideAnnotation= overrideAnnotation;
37         settings.tabWidth= tabWidth;
38         settings.indentWidth= indentWidth;
39     }
40     
41
42 }
43
44
Popular Tags