|
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-2002 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.api.vcs; import java.awt.Image; import org.openide.util.NbBundle; /** * The file status information class. * * @author Martin Entlicher */ public abstract class FileStatusInfo extends Object { /** * The status of local files (files present in working directory, but * not in the version control repository). */ public static final FileStatusInfo LOCAL = new DefaultFileStatusInfo("Local", NbBundle.getMessage(FileStatusInfo.class, "FileStatusInfo.local"), null); /** * The status of up-to-date files. The content of the file in working directory * is exactly the same as the content of the recent revision in the version control repository. */ public static final FileStatusInfo UP_TO_DATE = new DefaultFileStatusInfo("Up To Date", NbBundle.getMessage(FileStatusInfo.class, "FileStatusInfo.up_to_date"), null); /** * The status of out-of-date files. The content of the file in working directory * is older, than the content of the recent revision in the version control repository. */ public static final FileStatusInfo OUT_OF_DATE = new DefaultFileStatusInfo("Out Of Date", NbBundle.getMessage(FileStatusInfo.class, "FileStatusInfo.out_of_date"), null); /** * The status of out-of-date files. The content of the file in working directory * is modified with respect to the corresponding revision in the version control repository. */ public static final FileStatusInfo MODIFIED = new DefaultFileStatusInfo("Modified", NbBundle.getMessage(FileStatusInfo.class, "FileStatusInfo.modified"), "org/netbeans/api/vcs/resources/badgeLocModified.gif"); /** * The status of missing files (files present in the version control repository, * but not in the working directory). */ public static final FileStatusInfo MISSING = new DefaultFileStatusInfo("Missing", NbBundle.getMessage(FileStatusInfo.class, "FileStatusInfo.missing"), null); /** The name of the status. */ private String status; /** * Creates a new instance of FileStatusInfo * @param status The string representation of this status. This string should * be different for different FileStatusInfo instances. */ public FileStatusInfo(String status) { this.status = status; } /** * Get the string representation of this FileStatusInfo. * @return The string status representation. */ public final String getName() { return status; } /* public void setDisplayedStatus(String displayedStatus) { this.displayedStatus = displayedStatus; } */ /** * Get the localized string representation of this status info. Used for * displaying purposes. * @return The localized status representation. */ public abstract String getDisplayName(); /** * Get the icon for this status info. * @return The icon representing this status info or * |
... 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.