update copyright
[fedora-idea.git] / plugins / cvs / cvs-core / src / com / intellij / cvsSupport2 / config / LocalSettings.java
blob823839e4b93a16ba633e9221846957388cfd44dc
1 /*
2 * Copyright 2000-2009 JetBrains s.r.o.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package com.intellij.cvsSupport2.config;
18 import com.intellij.openapi.diagnostic.Logger;
19 import com.intellij.openapi.util.DefaultJDOMExternalizer;
20 import com.intellij.openapi.util.InvalidDataException;
21 import com.intellij.openapi.util.JDOMExternalizable;
22 import com.intellij.openapi.util.WriteExternalException;
23 import org.jdom.Element;
24 import org.jetbrains.annotations.NonNls;
26 /**
27 * author: lesya
29 public class LocalSettings implements JDOMExternalizable, Cloneable {
31 private static final Logger LOG = Logger.getInstance("#com.intellij.cvsSupport2.config.LocalSettings");
33 @NonNls
34 public String PATH_TO_CVS_CLIENT = "cvs";
35 @NonNls
36 public String SERVER_COMMAND = "server";
38 private boolean myCvsClientVerified = false;
40 public void readExternal(Element element) throws InvalidDataException {
41 DefaultJDOMExternalizer.readExternal(this, element);
44 public void writeExternal(Element element) throws WriteExternalException {
45 DefaultJDOMExternalizer.writeExternal(this, element);
48 public boolean isCvsClientVerified() {
49 return myCvsClientVerified;
52 public void setCvsClientVerified(final boolean cvsClientVerified) {
53 myCvsClientVerified = cvsClientVerified;
56 public LocalSettings clone() {
57 try {
58 return (LocalSettings)super.clone();
60 catch (CloneNotSupportedException e) {
61 LOG.error(e);
62 return new LocalSettings();