01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdt.internal.corext.codemanipulation;
11:
12: public class CodeGenerationSettings {
13:
14: public boolean createComments = true;
15: public boolean useKeywordThis = false;
16:
17: public String[] importOrder = new String[0];
18: public int importThreshold = 99;
19: public int staticImportThreshold = 99;
20: public boolean importIgnoreLowercase = true;
21: public boolean overrideAnnotation = false;
22:
23: public int tabWidth;
24: public int indentWidth;
25:
26: public void setSettings(CodeGenerationSettings settings) {
27: settings.createComments = createComments;
28: settings.useKeywordThis = useKeywordThis;
29: settings.importOrder = importOrder;
30: settings.importThreshold = importThreshold;
31: settings.staticImportThreshold = staticImportThreshold;
32: settings.importIgnoreLowercase = importIgnoreLowercase;
33: settings.overrideAnnotation = overrideAnnotation;
34: settings.tabWidth = tabWidth;
35: settings.indentWidth = indentWidth;
36: }
37:
38: }
|