| /* |
| * Copyright (c) 2020 Eclipse contributors and others. |
| * |
| * This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License 2.0 |
| * which accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| */ |
| package org.eclipse.justj.codegen.templates.fragment; |
| |
| public class PDEPrefs |
| { |
| protected static String nl; |
| public static synchronized PDEPrefs create(String lineSeparator) |
| { |
| nl = lineSeparator; |
| PDEPrefs result = new PDEPrefs(); |
| nl = null; |
| return result; |
| } |
| |
| public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; |
| protected static final String _1 = "compilers.incompatible-environment=2"; |
| protected static final String _2 = "eclipse.preferences.version=1"; |
| protected final String _3 = _2 + NL + _1; |
| |
| public String generate(Object argument) |
| { |
| final StringBuilder builder = new StringBuilder(); |
| builder.append(_3); |
| builder.append(NL); |
| return builder.toString(); |
| } |
| } |