public final class Utils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
EVENT_ANNOTATIONS_CHANGED
Used to signal the Versioning manager that some annotations changed.
|
static String |
EVENT_STATUS_CHANGED
The NEW value is a Set of Files whose versioning status changed.
|
static String |
EVENT_VERSIONED_ROOTS
Indicates to the Versioning manager that the layout of versioned files may have changed.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addPropertyChangeListener(PropertyChangeListener l)
Add PropertyChangeListener to be notified about changes in the versioning infrastructure.
|
static void |
connectRepository(VCSSystemProvider.VersioningSystem versioningSystem,
String absolutePath)
Start again to manage the given path by the given versioning system
|
static VCSHistoryProvider.HistoryEntry |
createHistoryEntry(VCSFileProxy[] proxies,
Date dateTime,
String message,
String username,
String usernameShort,
String revision,
String revisionShort,
Action[] actions,
VCSHistoryProvider.RevisionProvider rp,
VCSHistoryProvider.MessageEditProvider mep,
VCSHistoryProvider.ParentProvider pp,
Object[] lookupObjects) |
static void |
disconnectRepository(VCSSystemProvider.VersioningSystem versioningSystem,
String absolutePath)
Stop managing the given path by the given versioning system
|
static void |
fireVisibilityChanged()
Notifies about visibility changes according to
VisibilityQueryImplementation |
static void |
fireVisibilityChanged(File... files)
Notifies about visibility changes according to
VisibilityQueryImplementation |
static void |
flushNullOwners()
Empties the file owner cache
|
static Object[] |
getDelegateEntry(VCSHistoryProvider.HistoryEntry entry) |
static String[] |
getDisconnectedRoots(VCSSystemProvider.VersioningSystem versioningSystem)
Returns all paths marked as not to managed by the given system
|
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 VCSSystemProvider.VersioningSystem |
getLocalHistory(File file) |
static VCSSystemProvider.VersioningSystem |
getOwner(VCSFileProxy proxy)
Queries the Versioning infrastructure for file ownership.
|
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 |
removePropertyChangeListener(PropertyChangeListener l)
Remove PropertyChangeListener
|
static void |
versionedRootsChanged()
Notifies that a versioning system started to manage some previously unversioned files
(e.g.
|
public static final String EVENT_VERSIONED_ROOTS
public static final String EVENT_STATUS_CHANGED
public static final String EVENT_ANNOTATIONS_CHANGED
public static VCSSystemProvider.VersioningSystem getLocalHistory(File file)
public static void disconnectRepository(VCSSystemProvider.VersioningSystem versioningSystem, String absolutePath)
versioningSystem - the versioning system to stop manage for the given pathabsolutePath - the path to stop managed by the given versioning systemconnectRepository(org.netbeans.modules.versioning.core.util.VCSSystemProvider.VersioningSystem, java.lang.String)public static void connectRepository(VCSSystemProvider.VersioningSystem versioningSystem, String absolutePath)
versioningSystem - the versioning system to stop manage for the given pathabsolutePath - the path to stop managed by the given versioning systemdisconnectRepository(org.netbeans.modules.versioning.core.util.VCSSystemProvider.VersioningSystem, java.lang.String)public static String[] getDisconnectedRoots(VCSSystemProvider.VersioningSystem versioningSystem)
versioningSystem - the versioning systempublic static void flushNullOwners()
public static void fireVisibilityChanged()
VisibilityQueryImplementationpublic static void fireVisibilityChanged(File... files)
VisibilityQueryImplementationFile[] - the files with a changed visibilitypublic static void versionedRootsChanged()
public static VCSSystemProvider.VersioningSystem getOwner(VCSFileProxy proxy)
proxy - public static boolean isFlat(File file)
file - a File to testpublic static File getFlat(String path)
path - a file pathpublic static void addPropertyChangeListener(PropertyChangeListener l)
l - public static void removePropertyChangeListener(PropertyChangeListener l)
l - public static Object[] getDelegateEntry(VCSHistoryProvider.HistoryEntry entry)
public static VCSHistoryProvider.HistoryEntry createHistoryEntry(VCSFileProxy[] proxies, Date dateTime, String message, String username, String usernameShort, String revision, String revisionShort, Action[] actions, VCSHistoryProvider.RevisionProvider rp, VCSHistoryProvider.MessageEditProvider mep, VCSHistoryProvider.ParentProvider pp, Object[] lookupObjects)
Built on May 16 2013. | Portions Copyright 1997-2013 Oracle. All rights reserved.