|
What this is
Other links
The source code
/*
* Sun Public License Notice
*
* The contents of this file are subject to the Sun Public License
* Version 1.0 (the "License"). You may not use this file except in
* compliance with the License. A copy of the License is available at
* http://www.sun.com/
*
* The Original Code is NetBeans. The Initial Developer of the Original
* Code is Sun Microsystems, Inc. Portions Copyright 1997-2000 Sun
* Microsystems, Inc. All Rights Reserved.
*/
package org.netbeans.spi.vcs;
import java.util.Map;
import java.util.Collection;
import org.openide.filesystems.FileObject;
import org.netbeans.api.vcs.FileStatusInfo;
/**
* The provider of VCS attributes of the file. These describes the status
* of the working file with respect to its repository version. Any method
* that returns the string representation of an VCS attribute of a file
* may return an empty string if that information is not available from
* the given version control system.
*
* @author Martin Entlicher
*/
public abstract class VcsStatusProvider extends Object {
/**
* The name of FileObject attribute, that contains instance of VcsStatusProvider
* on VCS filesystems.
*/
private static final String FO_ATTRIBUTE = "org.netbeans.spi.vcs.VcsStatusProvider"; // NOI18N
/**
* Find the status provider for a FileObject.
*/
public static VcsStatusProvider findProvider(FileObject file) {
return (VcsStatusProvider) file.getAttribute(FO_ATTRIBUTE);
}
/** It should return all possible VCS states in which the files in the filesystem
* can reside.
*/
//public String[] getPossibleFileStatuses();
/**
* Get the table of the possible status strings. This table is used in search
* service. The table contains the original statuses (obtained from the VCS tool)
* as keys and localized statuses as values.
*
public abstract Map getFileStatusMap();
*/
/**
* Get the array of all possible file states.
*/
public abstract FileStatusInfo[] getPossibleStates();
/**
* Get the table of icon badges, that are displayed on the data objects' node.
* The table contains the original statuses (obtained from the VCS tool)
* as keys and the icons of type
|
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.