Package ghidra.framework.data
Class DefaultCheckinHandler
- java.lang.Object
-
- ghidra.framework.data.DefaultCheckinHandler
-
- All Implemented Interfaces:
CheckinHandler
public class DefaultCheckinHandler extends java.lang.Object implements CheckinHandler
DefaultCheckinHandler
provides a simple check-in handler for use withDomainFile.checkin(CheckinHandler, boolean, ghidra.util.task.TaskMonitor)
-
-
Constructor Summary
Constructors Constructor Description DefaultCheckinHandler(java.lang.String comment, boolean keepCheckedOut, boolean createKeepFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
createKeepFile()
Returns true if the system should create a keep file copy of the user's check-in file.java.lang.String
getComment()
Returns the check-in comment.boolean
keepCheckedOut()
Returns true if check-out state should be retained.
-
-
-
Method Detail
-
getComment
public java.lang.String getComment() throws CancelledException
Description copied from interface:CheckinHandler
Returns the check-in comment.- Specified by:
getComment
in interfaceCheckinHandler
- Returns:
- the check-in comment
- Throws:
CancelledException
- thrown if user cancels the check-in
-
keepCheckedOut
public boolean keepCheckedOut() throws CancelledException
Description copied from interface:CheckinHandler
Returns true if check-out state should be retained.- Specified by:
keepCheckedOut
in interfaceCheckinHandler
- Returns:
- true if check-out state should be retained
- Throws:
CancelledException
- thrown if user cancels the check-in
-
createKeepFile
public boolean createKeepFile() throws CancelledException
Description copied from interface:CheckinHandler
Returns true if the system should create a keep file copy of the user's check-in file.- Specified by:
createKeepFile
in interfaceCheckinHandler
- Throws:
CancelledException
- thrown if user cancels the check-in
-
-