blob: 25200c78a3d0eb0604fbb60434c6524b0b9d21e2 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2010 IBM Corporation 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
*
* Contributors:
* IBM Corporation - initial API and implementation
* Serge Beauchamp (Freescale Semiconductor) - [229633] Group Support
* Broadcom Corporation - build configurations
*******************************************************************************/
package org.eclipse.core.internal.resources;
import org.eclipse.core.resources.*;
import org.eclipse.core.runtime.QualifiedName;
public interface ICoreConstants {
// Standard resource properties
/** map of builders to their last built state. */
QualifiedName K_BUILD_LIST = new QualifiedName(ResourcesPlugin.PI_RESOURCES, "BuildMap"); //$NON-NLS-1$
/**
* Command line argument indicating a workspace refresh on startup is requested.
*/
String REFRESH_ON_STARTUP = "-refresh"; //$NON-NLS-1$
// resource info constants
long I_NULL_SYNC_INFO = -1;
// Useful flag masks for resource info states
int M_OPEN = 0x1;
int M_LOCAL_EXISTS = 0x2;
int M_PHANTOM = 0x8;
int M_USED = 0x10;
int M_TYPE = 0xF00;
int M_TYPE_START = 8;
int M_MARKERS_SNAP_DIRTY = 0x1000;
int M_SYNCINFO_SNAP_DIRTY = 0x2000;
/**
* Marks this resource as derived.
* @since 2.0
*/
int M_DERIVED = 0x4000;
/**
* Marks this resource as a team-private member of its container.
* @since 2.0
*/
int M_TEAM_PRIVATE_MEMBER = 0x8000;
/**
* Marks this resource as a hidden resource.
* @since 3.4
*/
int M_HIDDEN = 0x200000;
/**
* Marks this resource as a linked resource.
* @since 2.1
*/
int M_LINK = 0x10000;
/**
* Marks this resource as virtual.
* @since 3.6
*/
int M_VIRTUAL = 0x80000;
/**
* The file has no content description.
* @since 3.0
*/
int M_NO_CONTENT_DESCRIPTION = 0x20000;
/**
* The file has a default content description.
* @since 3.0
*/
int M_DEFAULT_CONTENT_DESCRIPTION = 0x40000;
/**
* Marks this resource as having undiscovered children
* @since 3.1
*/
int M_CHILDREN_UNKNOWN = 0x100000;
/**
* Set of flags that should be cleared when the contents for a file change.
* @since 3.0
*/
int M_CONTENT_CACHE = M_NO_CONTENT_DESCRIPTION | M_DEFAULT_CONTENT_DESCRIPTION;
int NULL_FLAG = -1;
/**
* A private preference stored in a preference node to indicate the preference
* version that is used. This version identifier is used to handle preference
* migration when old preferences are loaded.
*/
String PREF_VERSION_KEY = "version"; //$NON-NLS-1$
/**
* A private preference stored in a preference node to indicate the preference
* version that is used. This version identifier is used to handle preference
* migration when old preferences are loaded.
*/
String PREF_VERSION = "1"; //$NON-NLS-1$
// Internal status codes
// Information Only [00-24]
// Warnings [25-74]
int CRASH_DETECTED = 10035;
// Errors [75-99]
int PROJECT_SEGMENT_LENGTH = 1;
int MINIMUM_FOLDER_SEGMENT_LENGTH = 2;
int MINIMUM_FILE_SEGMENT_LENGTH = 2;
int WORKSPACE_TREE_VERSION_1 = 67305985;
int WORKSPACE_TREE_VERSION_2 = 67305986;
// helper constants for empty structures
IBuildConfiguration[] EMPTY_BUILD_CONFIG_ARRAY = new IBuildConfiguration[0];
IProject[] EMPTY_PROJECT_ARRAY = new IProject[0];
IResource[] EMPTY_RESOURCE_ARRAY = new IResource[0];
IFileState[] EMPTY_FILE_STATES = new IFileState[0];
}