// Path: com.palantir.typescript/src/com/palantir/typescript/TypeScriptPlugin.java
// public static IStatus logInfo(String message) {
//     IStatus status = new Status(IStatus.INFO, TypeScriptPlugin.ID, message);
//     TypeScriptPlugin.getDefault().getLog().log(status);
//     return status;
// }
// 
// Path: com.palantir.typescript/src/com/palantir/typescript/TypeScriptProjects.java
// public enum Folders {
//     EXPORTED, SOURCE, SOURCE_AND_EXPORTED
// }


import static com.google.common.base.Preconditions.checkNotNull;
import static com.palantir.typescript.TypeScriptPlugin.logInfo;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IResourceDelta;
import org.eclipse.core.resources.IResourceDeltaVisitor;
import org.eclipse.core.resources.IResourceVisitor;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
import com.google.common.base.Splitter;
import com.google.common.base.Strings;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
import com.palantir.typescript.TypeScriptProjects.Folders;
import com.palantir.typescript.preferences.ProjectPreferenceStore;
import com.palantir.typescript.services.language.FileDelta;
import com.palantir.typescript.services.language.FileDelta.Delta;
/*
 * Copyright 2013 Palantir Technologies, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.palantir.typescript;





/**
 * This class models a TypeScript project's sources input.
 *
 * @author lgrignon
 */
public class TypeScriptProjectSources {

    public static final char BUILD_PATH_SPEC_SEPARATOR = ';';
    public static final Splitter PATH_SPLITTER = Splitter.on(BUILD_PATH_SPEC_SEPARATOR);

    private static final class SourcesSpecs {
        private final List<String> files;
        private final List<String> include;
        private final List<String> exclude;

        private SourcesSpecs(List<String> files, List<String> include, List<String> exclude) {
            checkNotNull(files);
            checkNotNull(include);
            checkNotNull(exclude);

            this.files = files;
            this.include = include;
            this.exclude = exclude;
        }

        @Override
// Path: com.palantir.typescript/src/com/palantir/typescript/TypeScriptPlugin.java
// public static IStatus logInfo(String message) {
//     IStatus status = new Status(IStatus.INFO, TypeScriptPlugin.ID, message);
//     TypeScriptPlugin.getDefault().getLog().log(status);
//     return status;
// }
// 
// Path: com.palantir.typescript/src/com/palantir/typescript/TypeScriptProjects.java
// public enum Folders {
//     EXPORTED, SOURCE, SOURCE_AND_EXPORTED
// }


// Path: com.palantir.typescript/src/com/palantir/typescript/TypeScriptProjectSources.java
import static com.google.common.base.Preconditions.checkNotNull;
import static com.palantir.typescript.TypeScriptPlugin.logInfo;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IResourceDelta;
import org.eclipse.core.resources.IResourceDeltaVisitor;
import org.eclipse.core.resources.IResourceVisitor;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
import com.google.common.base.Splitter;
import com.google.common.base.Strings;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
import com.palantir.typescript.TypeScriptProjects.Folders;
import com.palantir.typescript.preferences.ProjectPreferenceStore;
import com.palantir.typescript.services.language.FileDelta;
import com.palantir.typescript.services.language.FileDelta.Delta;

/*
 * Copyright 2013 Palantir Technologies, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.palantir.typescript;





/**
 * This class models a TypeScript project's sources input.
 *
 * @author lgrignon
 */
public class TypeScriptProjectSources {

    public static final char BUILD_PATH_SPEC_SEPARATOR = ';';
    public static final Splitter PATH_SPLITTER = Splitter.on(BUILD_PATH_SPEC_SEPARATOR);

    private static final class SourcesSpecs {
        private final List<String> files;
        private final List<String> include;
        private final List<String> exclude;

        private SourcesSpecs(List<String> files, List<String> include, List<String> exclude) {
            checkNotNull(files);
            checkNotNull(include);
            checkNotNull(exclude);

            this.files = files;
            this.include = include;
            this.exclude = exclude;
        }

        @Override
        public String toString() {