public static interface HasLockSyncMenuStateHelper.LockSyncMenuStateHelper
MenuItem
s synchronized with lock state.Modifier and Type | Interface and Description |
---|---|
static class |
HasLockSyncMenuStateHelper.LockSyncMenuStateHelper.Operation
Possible operations; enable/disable MenuItem or veto any change all together.
|
Modifier and Type | Method and Description |
---|---|
HasLockSyncMenuStateHelper.LockSyncMenuStateHelper.Operation |
enable(Path file,
boolean isLocked,
boolean isLockedByCurrentUser)
Returns whether
MenuItem s should be enabled or disabled based on the provide lock information. |
HasLockSyncMenuStateHelper.LockSyncMenuStateHelper.Operation enable(Path file, boolean isLocked, boolean isLockedByCurrentUser)
MenuItem
s should be enabled or disabled based on the provide lock information.file
- Path
to which the lock relates.isLocked
- true if the file is locked.isLockedByCurrentUser
- true if the file is locked by the current User.Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.