org.netbeans.modules.versioning/1 1.32.0 1

org.netbeans.modules.versioning.spi
Class VersioningSupport

java.lang.Object
  extended by org.netbeans.modules.versioning.spi.VersioningSupport

public final class VersioningSupport
extends Object

Collection of utility methods for Versioning systems implementors.


Field Summary
static String PREF_BOOLEAN_TEXT_ANNOTATIONS_VISIBLE
          Boolean property defining visibility of textual versioning annotations (aka Status Labels).
 
Method Summary
static File getFlat(String path)
          Creates a File that is marked is flat (eg a java package), that is a folder that contains only its direct children.
static VersioningSystem getOwner(File file)
          Queries the Versioning infrastructure for file ownership.
static Preferences getPreferences()
          Common settings and preferences for versioning modules are set in this preferences node.
static boolean isExcluded(File folder)
          Tests whether the given folder is excluded (unversioned) from version control.
static boolean isFlat(File file)
          Tests whether the given file represents a flat folder (eg a java package), that is a folder that contains only its direct children.
static void versionedRootsChanged()
          Helper method to signal that a versioning system started to manage some previously unversioned files (those files were imported into repository).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREF_BOOLEAN_TEXT_ANNOTATIONS_VISIBLE

public static final String PREF_BOOLEAN_TEXT_ANNOTATIONS_VISIBLE
Boolean property defining visibility of textual versioning annotations (aka Status Labels).

See Also:
getPreferences(), Constant Field Values
Method Detail

getPreferences

public static Preferences getPreferences()
Common settings and preferences for versioning modules are set in this preferences node.

Returns:
Preferences node for Versioning modules
See Also:
PREF_BOOLEAN_TEXT_ANNOTATIONS_VISIBLE

getOwner

public static VersioningSystem getOwner(File file)
Queries the Versioning infrastructure for file ownership.

Parameters:
file - a file to examine
Returns:
VersioningSystem a system that owns (manages) the file or null if the file is not versioned

isFlat

public static boolean isFlat(File file)
Tests whether the given file represents a flat folder (eg a java package), that is a folder that contains only its direct children.

Parameters:
file - a File to test
Returns:
true if the File represents a flat folder (eg a java package), false otherwise

getFlat

public static File getFlat(String path)
Creates a File that is marked is flat (eg a java package), that is a folder that contains only its direct children.

Parameters:
path - a file path
Returns:
File a flat file representing given abstract path

versionedRootsChanged

public static void versionedRootsChanged()
Helper method to signal that a versioning system started to manage some previously unversioned files (those files were imported into repository).

See Also:
VersioningSystem.fireVersionedFilesChanged()

isExcluded

public static boolean isExcluded(File folder)
Tests whether the given folder is excluded (unversioned) from version control.

Versioning systems must NOT scan a folder if this method returns true and should consider it as unversioned.

Parameters:
folder - a folder to query
Returns:
true if the given folder is excluded from version control, false otherwise
Since:
1.25

org.netbeans.modules.versioning/1 1.32.0 1

Built on May 25 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.