|
org.netbeans.modules.versioning.core/1 1.5.0 1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.modules.versioning.core.util.Utils
public final class Utils
Provides access to some versioning.core functionality needed by versioning.spi and versioning.ui. WARNING: VCS internal use only, might be subject of future change and shouldn't be accessed by vcs clients.
| Field Summary | |
|---|---|
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. |
| Method Summary | |
|---|---|
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 |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String EVENT_VERSIONED_ROOTS
public static final String EVENT_STATUS_CHANGED
public static final String EVENT_ANNOTATIONS_CHANGED
| Method Detail |
|---|
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 system
public static void flushNullOwners()
public static void fireVisibilityChanged()
VisibilityQueryImplementation
public static void versionedRootsChanged()
public static VCSSystemProvider.VersioningSystem getOwner(VCSFileProxy proxy)
proxy -
public static boolean isFlat(File file)
file - a File to test
public static File getFlat(String path)
path - a file path
public 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)
|
org.netbeans.modules.versioning.core/1 1.5.0 1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||