platform35/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/RootInfo.java
changeset 40 eb3c938c7fef
equal deleted inserted replaced
39:2a03ec4dbf31 40:eb3c938c7fef
       
     1 /*******************************************************************************
       
     2  *  Copyright (c) 2000, 2008 IBM Corporation and others.
       
     3  *  All rights reserved. This program and the accompanying materials
       
     4  *  are made available under the terms of the Eclipse Public License v1.0
       
     5  *  which accompanies this distribution, and is available at
       
     6  *  http://www.eclipse.org/legal/epl-v10.html
       
     7  * 
       
     8  *  Contributors:
       
     9  *     IBM Corporation - initial API and implementation
       
    10  *******************************************************************************/
       
    11 package org.eclipse.core.internal.resources;
       
    12 
       
    13 import org.eclipse.core.runtime.QualifiedName;
       
    14 
       
    15 public class RootInfo extends ResourceInfo {
       
    16 	/** The property store for this resource */
       
    17 	protected Object propertyStore = null;
       
    18 
       
    19 	/**
       
    20 	 * Returns the property store associated with this info.  The return value may be null.
       
    21 	 */
       
    22 	public Object getPropertyStore() {
       
    23 		return propertyStore;
       
    24 	}
       
    25 
       
    26 	/**
       
    27 	 * Override parent's behaviour and do nothing. Sync information
       
    28 	 * cannot be stored on the workspace root so we don't need to
       
    29 	 * update this counter which is used for deltas.
       
    30 	 */
       
    31 	public void incrementSyncInfoGenerationCount() {
       
    32 		// do nothing
       
    33 	}
       
    34 
       
    35 	/**
       
    36 	 * Sets the property store associated with this info.  The value may be null.
       
    37 	 */
       
    38 	public void setPropertyStore(Object value) {
       
    39 		propertyStore = value;
       
    40 	}
       
    41 
       
    42 	/**
       
    43 	 * Overrides parent's behaviour since sync information is not
       
    44 	 * stored on the workspace root.
       
    45 	 */
       
    46 	public void setSyncInfo(QualifiedName id, byte[] value) {
       
    47 		// do nothing
       
    48 	}
       
    49 }