|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Window | +--java.awt.Frame | +--javax.swing.JFrame | +--com.guiffy.inside.GuiffyFrame
Class GuiffyFrame is the Component for including Guiffy inside Java applications. GuiffyFrame extends JFrame.
Guiffy is a source file compare/merge utility(component). Plus, Guiffy also compares File Folders/Trees. The Guiffy extended JFrame includes: MenuBar, ToolBar, MergeText view, Merging ButtonBar, File TitleBars, 3 compare text views(Together view, 1st file view, 2nd file view), synchronized vertical and horizontal scroll bars, visual difference meters, and a status/progress bar. Functionality is included for Edit controls including Undo/Redo, text searching, and logical navigation. The Compare and Merge text views support basic editing operations. Extensive application JavaHelp documentation is accessible from the MenuBar which supports TOC, Index, and Search navigation.
Guiffy's user interface is engineered for localization and has been translated for Spanish, German, Italian, French, and Swedish.
Guiffy compares/merges source(text) files of any type - supports Unicode character set. And, Guiffy accepts all 3 forms of end-of-line. Guiffy supports a user choice of compare algorithms: 1) Minimum lines of difference or 2) Minimum blocks of difference. The default(which can be switched by the user) is the Mimimum lines of difference. For files with more than 32K lines, Guiffy automatically switches to its Minimum blocks of difference algorithm. The Guiffy 3-way SureMerge employs the the Minimum blocks of difference algorithm. Guiffy does NOT impose any file size limits. And, Guiffy's comparison resolution algorithm is NOT sensitive to file size.
For each File property a set?File(filepath) or set?Reader/Writer(Reader/Writer) method can be used to specify the text content. By default the specified Reader/Writer is null and a filepath is required for the File's property.
Guiffy's Stylized Text views are proprietary implementations, optimized for exceptional performance with large text documents.
Guiffy's 3-way smart merge, SureMerge, automatically merges all changes except those which conflict. SureMerge's conflict detection algorithm treats inserts and deletes(not just changes) as conflicts. SureMerge extends its conflict attention span to include modifications very near to each other but not necessarily overlapping. Plus, the Attention Focus Expander option allows the user to expand the conflict/overlap area.
The default GuiffyFrame Size is 600, 450.
The default GuiffyFrame Location is the center of the screen.
The default GuiffyFrame CloseOperation is HIDE_ON_CLOSE. GuiffyFrame has
an additional CLOSE option defined - EXIT_ON_CLOSE.
GuiffyFrame is initialized as not Visible.
If the GuiffyFrame constructor parameter usesettings is true - the user's SavedSettings are loaded and set. If usesettings is false - the File->SaveSettings menuitem is disabled.
JFrame
, Serialized FormInner classes inherited from class javax.swing.JFrame |
javax.swing.JFrame.AccessibleJFrame |
Field Summary | |
static int |
EXIT_ON_CLOSE
WindowsConstants - setDefaultCloseOperation(EXIT_ON_CLOSE) will do System.exit(0) when the Frame is closed |
static int |
SAVESETS_OFF
Auto Save Settings Constants - controls automatically saving settings on Exit. |
static int |
SAVESETS_ONPROMPT
|
static int |
SAVESETS_ONQUIET
|
Fields inherited from class javax.swing.JFrame |
accessibleContext,
rootPane,
rootPaneCheckingEnabled |
Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR,
DEFAULT_CURSOR,
E_RESIZE_CURSOR,
HAND_CURSOR,
ICONIFIED,
MOVE_CURSOR,
N_RESIZE_CURSOR,
NE_RESIZE_CURSOR,
NORMAL,
NW_RESIZE_CURSOR,
S_RESIZE_CURSOR,
SE_RESIZE_CURSOR,
SW_RESIZE_CURSOR,
TEXT_CURSOR,
W_RESIZE_CURSOR,
WAIT_CURSOR |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
Constructor Summary | |
GuiffyFrame(boolean usesettings)
Creates a GuiffyFrame with all the options defaulted, If usesettings is true - the user's SavedSettings are loaded and set. |
Method Summary | |
void |
compareFiles(boolean vis)
Compares the 1st and 2nd files and displays the differences according to the options selected. |
void |
compareFolders(boolean vis)
Compares the 1st and 2nd folders and displays the differences according to the options selected. |
boolean |
getAllowFileCompares()
Returns AllowFileCompares setting true or false. |
boolean |
getAllowFolderCompares()
Returns AllowFolderCompares setting true or false. |
boolean |
getAllowMerges()
Returns AllowMerges setting true or false. |
boolean |
getAutoDiff()
Returns AutoDiff setting true or false. |
boolean |
getAutoHTML()
Returns AutoMTML setting true or false. |
boolean |
getAutoMerg()
Returns AutoMerg setting true or false. |
boolean |
getAutoRCS()
Returns AutoRCS setting true or false. |
java.awt.Color |
getBackgroundColor()
Returns the Background(Matching) color option. |
java.awt.Color |
getChangedBackgroundColor()
Returns the Changed Background color option. |
boolean |
getComparEditBarVisible()
Returns ComparEditBarVisible option true or false. |
java.awt.Color |
getDeletesBackgroundColor()
Returns the Deleted Background color option. |
java.awt.Color |
getDeletesColor()
Returns the Deleted text foreground color option. |
java.awt.Font |
getDeletesFont()
Returns the Deleted text font option. |
boolean |
getEditBarVisible()
Returns EditBarVisible option true or false. |
java.lang.String |
getEOLOption()
Returns Write EOLs option for Saved files. |
int |
getExpandedFocus()
Returns Attention(conflict) Focus Expander value. |
java.lang.String |
getFileEncoding()
Returns FileEncoding. |
java.lang.String |
getH1()
Returns the 1st FileName header. |
java.lang.String |
getH2()
Returns the 2nd FileName header. |
java.lang.String |
getHM()
Returns the Merge FileName header. |
boolean |
getIgnoreBlanklines()
Returns IgnoreBlanklines option true or false. |
boolean |
getIgnoreCase()
Returns IgnoreCase option true or false. |
boolean |
getIgnoreDateandTime()
Returns ignore modified date and time (folder compares) option true or false. |
int |
getIgnoreField2Begin()
Returns IgnoreField2's beginning column. |
int |
getIgnoreField2End()
Returns IgnoreField2's ending column. |
int |
getIgnoreFieldBegin()
Returns IgnoreField's beginning column. |
int |
getIgnoreFieldEnd()
Returns IgnoreField's ending column. |
boolean |
getIgnoreFileSize()
Returns ignore file size (folder compares) option true or false. |
java.lang.String |
getIgnoreFils()
Returns ignore files, (folder compares) list. |
java.lang.String |
getIgnoreSubs()
Returns ignore subfolders, (folder compares) list. |
java.lang.String |
getIgnoreTyps()
Returns ignore filetypes, (folder compares) list. |
boolean |
getIgnoreWhitespace()
Returns IgnoreWhitespace option true or false. |
java.awt.Color |
getInsertsBackgroundColor()
Returns the Inserted Background color option. |
java.awt.Color |
getInsertsColor()
Returns the Inserted text foreground color option. |
java.awt.Font |
getInsertsFont()
Returns the Inserted text font option. |
java.awt.Color |
getMatchingBackgroundColor()
Returns the Matching Background color option. |
java.awt.Color |
getMatchingColor()
Returns the Matching text foreground color option. |
java.awt.Font |
getMatchingFont()
Returns the Matching text font option. |
java.lang.String |
getMergeAutoShift()
Returns Merge AutoShift value. |
boolean |
getMinimumBlocksDiff()
Returns Minimize Blocks Changed Diff option true or false. |
boolean |
getMinimumLinesDiff()
Returns Minimize Lines Changed Diff option true or false. |
boolean |
getNavigationBarVisible()
Returns NavigationBarVisible option true or false. |
int |
getNumberof1stApplied()
Returns the number of changes applied from 1st. |
int |
getNumberof2ndApplied()
Returns the number of changes applied from 2nd. |
int |
getNumberofAttentions()
Returns the number of unresolved Attentions. |
int |
getNumberofChanges()
Returns the number of change blocks. |
boolean |
getOptsBarVisible()
Returns OptsBarVisible option true or false. |
java.lang.String |
getP1()
Returns the prefix for 1st FileName header. |
java.lang.String |
getP2()
Returns the prefix for 2nd FileName header. |
java.lang.String |
getPM()
Returns the prefix for Merge FileName header. |
java.lang.String[] |
getQtRexs()
Returns Ignore Regular Expressions list. |
java.lang.String |
getSaveEncoding()
Returns SaveEncoding. |
int |
getSaveSettings()
Returns Auto Save Settings control. |
java.awt.Color |
getSelectedBackgroundColor()
Returns the Selected Background color option. |
java.awt.Color |
getSelectedColor()
Returns the Selected text foreground color option. |
boolean |
getShowAdds()
Returns show files Added (folder compares) option true or false. |
boolean |
getShowChgs()
Returns show files Changed (folder compares) option true or false. |
boolean |
getShowContextDiffs()
Returns Show Context Differences option true or false. |
int |
getShowContextSize()
Returns Show Context Differences Size. |
boolean |
getShowDels()
Returns show files Deleted (folder compares) option true or false. |
boolean |
getShowFolderDefaultFont()
Returns show folder compare using default Tree Font option true or false. |
boolean |
getShowFolderDetails()
Returns show folder compare details (Size and Modified Date) option true or false. |
boolean |
getShowInLineDiffs()
Returns Show InLine Diffs option true or false. |
boolean |
getShowInLineDiffsCharacter()
Returns Show InLine Diffs Charcater option true or false. |
int |
getShowInLineDiffsPercent()
Returns Show InLine Diffs Percent value. |
boolean |
getShowInLineDiffsString()
Returns Show InLine Diffs String option true or false. |
boolean |
getShowLineNumbers()
Returns Show Line Numbers option true or false. |
boolean |
getShowMats()
Returns show Matching files (folder compares) option true or false. |
boolean |
getShowOnlyDiffs()
Returns Show Only Differences option true or false. |
boolean |
getShowSubs()
Returns show subfolders, recursively (folder compares) option true or false. |
boolean |
getStyleBarVisible()
Returns StyleBarVisible option true or false. |
int |
getTabSize()
Returns Tab Size option. |
boolean |
getToolBarVisible()
Returns ToolBarVisible option true or false. |
boolean |
getVerifyBxb()
Returns Verify file matches, byte-by-byte (folder compares) option true or false. |
boolean |
getVerifyTxt()
Returns Verify file matches, text compared (folder compares) option true or false. |
boolean |
getViewsBarVisible()
Returns ViewsBarVisible option true or false. |
boolean |
getViewSplitHorizontal()
Returns View Split Horizontal option true or false. |
boolean |
getViewSplitVertical()
Returns View Split Vertical option true or false. |
boolean |
getViewTogether()
Returns View Together option true or false. |
void |
mergeCVSFile(boolean vis)
Performs a Merge, Opens the CVS "conflict" file and displays the differences according to the options selected. |
void |
mergeFiles(boolean vis)
Performs a Merge, Compares the 1st and 2nd files and displays the differences according to the options selected. |
void |
mergeSMFFile(boolean vis)
Performs a Merge, Opens the Saved Merge file and displays the differences according to the options selected. |
protected void |
processWindowEvent(java.awt.event.WindowEvent e)
Override JFrame implementation to exit if the close operation is set to EXIT_ON_CLOSE |
void |
resetOptions()
ReSets all the options to the defaults. |
void |
resetSavedSettings()
ReSets all the options to the defaults AND, resets to the user SavedSettings. |
void |
set1stFile(java.lang.String firstname)
Sets the 1st File Name. |
void |
set1stFolder(java.lang.String firstname)
Sets the 1st Folder Name. |
void |
set1stReader(java.io.Reader firstrder)
Sets the 1st Reader. |
void |
set2ndFile(java.lang.String secndname)
Sets the 2nd File Name. |
void |
set2ndFolder(java.lang.String secndname)
Sets the 2nd Folder Name. |
void |
set2ndReader(java.io.Reader secndrder)
Sets the 2nd Reader. |
void |
setAllowFileCompares(boolean allfic)
Sets Allow File Compares (During Merges) true or false. |
void |
setAllowFolderCompares(boolean allfoc)
Sets Allow Folder Compares (During Merges) true or false. |
void |
setAllowMerges(boolean allfoc)
Sets Allow Merges (During Compares) true or false. |
void |
setAutoDiff(boolean autod,
java.lang.String autodfn)
Sets AutoDiff option and the Save Diff filename. |
void |
setAutoHTML(boolean autoh,
java.lang.String autohfn)
Sets AutoHTML option and the Save HTML filename set. |
void |
setAutoMerg(boolean autom)
Sets AutoMerg option. |
void |
setAutoRCS(boolean autor,
java.lang.String autorfn)
Sets AutoRCS option and the Save RCS filename. |
void |
setBackgroundColor(java.awt.Color baccol)
Sets the Background color option. |
void |
setChangedBackgroundColor(java.awt.Color chnbac)
Sets the Changed background color option. |
void |
setComparEditBarVisible(boolean vcebar)
Sets View display ComparEdit ToolBar option true or false. |
void |
setCVSFile(java.lang.String cvsctname)
Sets the CVS "conflict" File Name. |
void |
setDefaultCloseOperation(int operation)
Override JFrame implementation to store the opcode locally and set exit option in Guiffy pane class |
void |
setDeletesBackgroundColor(java.awt.Color delbac)
Sets the Deleted background color option. |
void |
setDeletesColor(java.awt.Color delcol)
Sets the Deleted text foreground color option. |
void |
setDeletesFont(java.awt.Font delfon)
Sets the Deleted text font option. |
void |
setEditBarVisible(boolean vedbar)
Sets View display Edit ToolBar option true or false. |
void |
setEOLOption(java.lang.String eolopt)
Sets Write EOLs option for Saved files. |
void |
setExpandedFocus(int expfoc)
Sets Attention(conflict) Focus Expander for SureMerge. |
void |
setFileEncoding(java.lang.String encods)
Sets File Encoding for 1st, 2nd, and Parent files. |
void |
setGuiffyExit(GuiffyExit hook)
Sets the GuiffyExit hook of the GuiffyFrame If set to null, a previously added GuiffyExit hook will be removed. |
void |
setH1(java.lang.String header)
Sets the 1st FileName header. |
void |
setH2(java.lang.String header)
Sets the 2nd FileName header. |
void |
setHM(java.lang.String header)
Sets the Merge FileName header. |
void |
setIgnoreBlanklines(boolean ignbln)
Sets IgnoreBlanklines option true or false. |
void |
setIgnoreCase(boolean igncas)
Sets IgnoreCase option true or false. |
void |
setIgnoreDateandTime(boolean igmdat)
Sets ignore modified date and time (folder compares) option true or false. |
void |
setIgnoreField(int begcol,
int endcol)
Sets IgnoreField option columns xxx thru yyy. |
void |
setIgnoreField2(int begcol,
int endcol)
Sets IgnoreField2 option columns xxx thru yyy. |
void |
setIgnoreFileSize(boolean igfsiz)
Sets ignore file size (folder compares) option true or false. |
void |
setIgnoreFils(java.lang.String igfils)
Sets ignore files, (folder compares) list. |
void |
setIgnoreSubs(java.lang.String igsubs)
Sets ignore subfolders, (folder compares) list. |
void |
setIgnoreTyps(java.lang.String igtyps)
Sets ignore filetypes, (folder compares) list. |
void |
setIgnoreWhitespace(boolean ignwhi)
Sets IgnoreWhitespace option true or false. |
void |
setInsertsBackgroundColor(java.awt.Color insbac)
Sets the Inserted background color option. |
void |
setInsertsColor(java.awt.Color inscol)
Sets the Inserted text foreground color option. |
void |
setInsertsFont(java.awt.Font insfon)
Sets the Inserted text font option. |
void |
setMatchingBackgroundColor(java.awt.Color matbac)
Sets the Matching background color option. |
void |
setMatchingColor(java.awt.Color matcol)
Sets the Matching text foreground color option. |
void |
setMatchingFont(java.awt.Font matfon)
Sets the Matching text font option. |
void |
setMergeAutoShift(java.lang.String shifts)
Sets Merge AutoShift to [R] [N] or [D]. |
void |
setMinimumBlocksDiff(boolean minblk)
Sets Minimize Blocks Changed Diff option true or false. |
void |
setMinimumLinesDiff(boolean minlin)
Sets Minimize Lines Changed Diff option true or false. |
void |
setNavigationBarVisible(boolean vnabar)
Sets View display Navigation ToolBar option true or false. |
void |
setOEMLicenseKey(java.io.ByteArrayInputStream bais)
|
void |
setOptsBarVisible(boolean vopbar)
Sets View display Options ToolBar option true or false. |
void |
setP1(java.lang.String prefix)
Sets the prefix for 1st FileName header. |
void |
setP2(java.lang.String prefix)
Sets the prefix for 2nd FileName header. |
void |
setParentFile(java.lang.String parntname)
Sets the Parent File Name. |
void |
setParentReader(java.io.Reader parntrder)
Sets the Parent Reader. |
void |
setPM(java.lang.String prefix)
Sets the prefix for Merge FileName header. |
void |
setQtRexs(java.lang.String[] rxs,
int rxi)
Sets Quietly Ignore Regular Expressions list. |
void |
setResultFile(java.lang.String resltname)
Sets the Result File Name. |
void |
setResultWriter(java.io.Writer resltwrer)
Sets the Result Writer. |
void |
setSaveEncoding(java.lang.String encods)
Sets Save Encoding for Dif, RCS, MergeResult and HTML files. |
void |
setSaveSettings(int savset)
Sets Auto Save Settings control. |
void |
setSelectedBackgroundColor(java.awt.Color selbac)
Sets the Selected background color option. |
void |
setSelectedColor(java.awt.Color selcol)
Sets the Selected text foreground color option. |
void |
setShowAdds(boolean sho)
Sets show files Added (folder compares) option. |
void |
setShowChgs(boolean sho)
Sets show files Changed (folder compares) option. |
void |
setShowContextDiffs(boolean shocxt)
Sets Show Context Differences option true or false. |
void |
setShowContextSize(int conlns)
Sets Show Context Differences Size option. |
void |
setShowDels(boolean sho)
Sets show files Deleted (folder compares) option. |
void |
setShowFolderDefaultFont(boolean shfcdf)
Sets show folder compare using default Tree Font true or false. |
void |
setShowFolderDetails(boolean shfcdt)
Sets show folder compare details (Size and Modified date) true or false. |
void |
setShowInLineDiffs(boolean shoinl)
Sets Show InLine Differences option true or false. |
void |
setShowInLineDiffsCharacter(boolean shochr)
Sets Show InLine Diffs Character option true or false. |
void |
setShowInLineDiffsString(boolean shostr)
Sets Show InLine Diffs String option true or false. |
void |
setShowInLinePercent(int shopct)
Sets Show InLine Differences < Percent of line value. |
void |
setShowLineNumbers(boolean sholno)
Sets Show Line Numbers option true or false. |
void |
setShowMats(boolean sho)
Sets show Matching files (folder compares) option. |
void |
setShowOnlyDiffs(boolean shonly)
Sets Show Only Differences option true or false. |
void |
setShowSubs(boolean shsubs)
Sets show subfolders, recursively (folder compares) option true or false. |
void |
setSMFFile(java.lang.String smfname)
Sets the Saved Merge File Name. |
void |
setStyleBarVisible(boolean vstbar)
Sets View display Style ToolBar option true or false. |
void |
setTabSize(int tabsiz)
Sets Tab Size option. |
void |
setToolBarVisible(boolean vitbar)
Sets View display ToolBar option true or false. |
void |
setVerifyBxb(boolean verbxb)
Sets Verify file matches, byte-by-byte (folder compares) option true or false. |
void |
setVerifyTxt(boolean vertxt)
Sets Verify file matches, text compare (folder compares) option true or false. |
void |
setViewsBarVisible(boolean vvebar)
Sets View display Views ToolBar option true or false. |
void |
setViewSplitHorizontal(boolean viwhor)
Sets View Split Horizontal option true or false. |
void |
setViewSplitVertical(boolean viwver)
Sets View Split Vertical option true or false. |
void |
setViewTogether(boolean viwtog)
Sets View Together option true or false. |
void |
setVisible(boolean vis)
Override JFrame implementation to display registration Nag Dialog. |
Methods inherited from class javax.swing.JFrame |
addImpl,
createRootPane,
frameInit,
getAccessibleContext,
getContentPane,
getDefaultCloseOperation,
getGlassPane,
getJMenuBar,
getLayeredPane,
getRootPane,
isRootPaneCheckingEnabled,
paramString,
processKeyEvent,
remove,
setContentPane,
setGlassPane,
setJMenuBar,
setLayeredPane,
setLayout,
setRootPane,
setRootPaneCheckingEnabled,
update |
Methods inherited from class java.awt.Frame |
addNotify,
finalize,
getCursorType,
getFrames,
getIconImage,
getMenuBar,
getState,
getTitle,
isResizable,
remove,
removeNotify,
setCursor,
setIconImage,
setMenuBar,
setResizable,
setState,
setTitle |
Methods inherited from class java.awt.Window |
addWindowListener,
applyResourceBundle,
applyResourceBundle,
dispose,
getFocusOwner,
getInputContext,
getLocale,
getOwnedWindows,
getOwner,
getToolkit,
getWarningString,
hide,
isShowing,
pack,
postEvent,
processEvent,
removeWindowListener,
setCursor,
show,
toBack,
toFront |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getAlignmentX,
getAlignmentY,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getInsets,
getLayout,
getMaximumSize,
getMinimumSize,
getPreferredSize,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paint,
paintComponents,
preferredSize,
print,
printComponents,
processContainerEvent,
remove,
removeAll,
removeContainerListener,
setFont,
validate,
validateTree |
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
addPropertyChangeListener,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
contains,
createImage,
createImage,
disable,
disableEvents,
dispatchEvent,
enable,
enable,
enableEvents,
enableInputMethods,
firePropertyChange,
getBackground,
getBounds,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getHeight,
getInputMethodRequests,
getLocation,
getLocation,
getLocationOnScreen,
getName,
getParent,
getPeer,
getSize,
getSize,
getTreeLock,
getWidth,
getX,
getY,
gotFocus,
handleEvent,
hasFocus,
imageUpdate,
inside,
isDisplayable,
isDoubleBuffered,
isEnabled,
isFocusTraversable,
isLightweight,
isOpaque,
isValid,
isVisible,
keyDown,
keyUp,
list,
list,
list,
location,
lostFocus,
mouseDown,
mouseDrag,
mouseEnter,
mouseExit,
mouseMove,
mouseUp,
move,
nextFocus,
paintAll,
prepareImage,
prepareImage,
printAll,
processComponentEvent,
processFocusEvent,
processInputMethodEvent,
processMouseEvent,
processMouseMotionEvent,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removePropertyChangeListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
repaint,
requestFocus,
reshape,
resize,
resize,
setBackground,
setBounds,
setBounds,
setComponentOrientation,
setDropTarget,
setEnabled,
setForeground,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
show,
size,
toString,
transferFocus |
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int EXIT_ON_CLOSE
public static final int SAVESETS_OFF
public static final int SAVESETS_ONPROMPT
public static final int SAVESETS_ONQUIET
Constructor Detail |
public GuiffyFrame(boolean usesettings)
usesettings
- the boolean value that specifies whether to
load and set the user's SavedSettings.Method Detail |
public void setDefaultCloseOperation(int operation)
public void setVisible(boolean vis)
public void setOEMLicenseKey(java.io.ByteArrayInputStream bais)
protected void processWindowEvent(java.awt.event.WindowEvent e)
public void setGuiffyExit(GuiffyExit hook)
GuiffyExit
public void compareFiles(boolean vis) throws java.io.IOException
First, checks each File.exists(), !File.isDirectory, and File.canRead().
NOTE: If the file's Reader is set, the above checks are avoided.
Throws an IOException on any error.
Then, sets Frame Visible(or NOT) and performs the compare.
vis
- the boolean value that specifies whether to make
GuiffyFrame Visible.public void mergeFiles(boolean vis) throws java.io.IOException
First, checks 1st, 2nd, and Parent File.exists(), !File.isDirectory, and File.canRead().
NOTE: If the file's Reader is set, the above checks are avoided.
Checks Result !File.isDirectory().
NOTE: If the file's Writer is set, the above check is avoided.
Throws an IOException on any error.
Then, sets Frame Visible(or NOT) and performs the compare(s) and merge.
If a Parent file is specified, each file is compared with the Parent and all non-conflicting changes are automatically merged. The UI displays each change(without a Parent file specified) or only the changes which have a conflict to allow the user selection of the changes to be applied in the merge. And, the user can perform editing of the text in the merge view.
vis
- the boolean value that specifies whether to make
GuiffyFrame Visible.public void mergeCVSFile(boolean vis) throws java.io.IOException
First, checks CVS File.exists(), !File.isDirectory, and File.canRead().
Checks Result !File.isDirectory().
Throws an IOException on any error.
Then, sets Frame Visible(or NOT) and performs the open and merge.
The UI displays each conflict to allow the user selection of the changes to be applied in the merge. And, the user can perform editing of the text in the merge view.
vis
- the boolean value that specifies whether to make
GuiffyFrame Visible.public void mergeSMFFile(boolean vis) throws java.io.IOException
First, checks Saved Merge File.exists(), !File.isDirectory, and File.canRead().
Checks Result !File.isDirectory().
Throws an IOException on any error.
Then, sets Frame Visible(or NOT) and performs the open and merge.
The UI displays each unsresolved change to allow the user selection of the changes to be applied in the merge. And, the user can perform editing of the text in the merge view.
vis
- the boolean value that specifies whether to make
GuiffyFrame Visible.public void compareFolders(boolean vis) throws java.io.IOException
First, checks each File.exists(), File.isDirectory, and File.canRead().
Throws an IOException on any error.
Then, sets Frame Visible(or NOT) and performs the compare.
vis
- the boolean value that specifies whether to make
GuiffyFrame Visible.public void set1stFile(java.lang.String firstname)
firstname
- the 1st File name as a complete path.public void set2ndFile(java.lang.String secndname)
secndname
- the 2nd File name as a complete path.public void setParentFile(java.lang.String parntname)
parntname
- the Parent File name as a complete path.public void setResultFile(java.lang.String resltname)
resltname
- the Result File name as a complete path.public void set1stReader(java.io.Reader firstrder)
firstrder
- the 1st Reader.public void set2ndReader(java.io.Reader secndrder)
secndrder
- the 2nd Reader.public void setParentReader(java.io.Reader parntrder)
parntrder
- the Parent Reader.public void setResultWriter(java.io.Writer resltwrer)
resltname
- the Result Writer.public void setCVSFile(java.lang.String cvsctname)
cvsctname
- the CVS conflict File name as a complete path.public void setSMFFile(java.lang.String smfname)
smfname
- the Saved Merge File name as a complete path.public void set1stFolder(java.lang.String firstname)
firstname
- the 1st Folder name as a complete path.public void set2ndFolder(java.lang.String secndname)
secndname
- the 2nd Folder name as a complete path.public void setIgnoreCase(boolean igncas)
igncas
- the boolean value that determines whether case differences
are ignored during the compare.public void setIgnoreWhitespace(boolean ignwhi)
ignwhi
- the boolean value that determines whether whitespace
differences are ignored during the compare.public void setIgnoreBlanklines(boolean ignbln)
ignbln
- the boolean value that determines whether blanklines
inserted or deleted are ignored during the compare.public void setIgnoreField(int begcol, int endcol)
begcol
- the ignore field's beginning columnendcol
- the ignore field's ending columnpublic void setIgnoreField2(int begcol, int endcol)
begcol
- the ignore field's beginning columnendcol
- the ignore field's ending columnpublic void setQtRexs(java.lang.String[] rxs, int rxi)
rxs
- the String array of ignore regular expressions.rxi
- the number of regular expressions.public void setVerifyBxb(boolean verbxb)
verbxb
- the boolean value that determines whether file matches
are verified, byte-by-byte during folder compares.public void setVerifyTxt(boolean vertxt)
vertxt
- the boolean value that determines whether file matches
are verified, text compare during folder compares.public void setIgnoreDateandTime(boolean igmdat)
igmdat
- the boolean value that determines whether modified
date and time is ignored during folder compares.public void setIgnoreFileSize(boolean igfsiz)
igfsiz
- the boolean value that determines whether file
size is ignored during folder compares.public void setShowSubs(boolean shsubs)
shsubs
- the boolean value that determines whether to show
subfolders (recursively) during folder compares.public void setShowFolderDetails(boolean shfcdt)
shfcdt
- the boolean value that specifies to show folder compare
detailspublic void setShowFolderDefaultFont(boolean shfcdf)
shfcdf
- the boolean value that specifies to show folder compare
using default Tree Fontpublic void setShowMats(boolean sho)
sho
- the boolean value for whether to show Matching files.public void setShowAdds(boolean sho)
sho
- the boolean value for whether to show files Added.public void setShowDels(boolean sho)
sho
- the boolean value for whether to show files Deleted.public void setShowChgs(boolean sho)
sho
- the boolean value for whether to show files Changed.public void setIgnoreSubs(java.lang.String igsubs)
igsubs
- the string value list of subfolders to ignore.
The list of subfolders are separated by ';'s.public void setIgnoreFils(java.lang.String igfils)
igfils
- the string value list of files to ignore.
The list of file are separated by ';'s.public void setIgnoreTyps(java.lang.String igtyps)
igtyps
- the string value list of filetypes to ignore.
The list of filetypes like .class are separated by ';'s.public void setTabSize(int tabsiz)
tabsiz
- the int value that specifies tab size for the text views.public void setShowOnlyDiffs(boolean shonly)
shonly
- the boolean value that specifies to show only the
differences in compare views.public void setShowContextDiffs(boolean shocxt)
shocxt
- the boolean value that specifies to show context around
differences in compare views.public void setShowContextSize(int conlns)
conlns
- the number of lines of context to show before and after
differences. If less than 1, default of 10 is used.
If greater than 48, value of 48 is used.public void setShowInLineDiffs(boolean shoinl)
shoinl
- the boolean value that specifies to show InLine diffs
in compare views.public void setShowInLinePercent(int shopct)
shopct
- the int value that specifies to show InLine diffs
when < percent of line length.public void setShowInLineDiffsString(boolean shostr)
shostr
- the boolean value that specifies to show InLine diffs
as a single string in compare views.public void setShowInLineDiffsCharacter(boolean shochr)
shochr
- the boolean value that specifies to show InLine diffs
Char by Char in compare views.public void setShowLineNumbers(boolean sholno)
sholno
- the boolean value that specifies to show Line Numbers
in compare views.public void setEOLOption(java.lang.String eolopt)
eolopt
- the String value of "DOS", "MacOS" or "Unix" specifies
the format for writing End-Of-Lines in Saved Files.public void setFileEncoding(java.lang.String encods)
encods
- the String value of the Encoding such as "ASCII", "UTF8",
"SJIS", "Cp500" (for EBCDIC) etc. - Over 100 formats supported.public void setSaveEncoding(java.lang.String encods)
encods
- the String value of the Encoding such as "ASCII", "UTF8",
"SJIS", "Cp500" (for EBCDIC) etc. - Over 100 formats supported.public void setMatchingFont(java.awt.Font matfon)
matfon
- the Font for Matching text.public void setInsertsFont(java.awt.Font insfon)
insfon
- the Font for Inserted text.public void setDeletesFont(java.awt.Font delfon)
delfon
- the Font for Deleted text.public void setBackgroundColor(java.awt.Color baccol)
baccol
- the Color for Backgrounds.public void setMatchingColor(java.awt.Color matcol)
matcol
- the Color for Matching text foreground.public void setMatchingBackgroundColor(java.awt.Color matbac)
matbac
- the Color for Matching background.public void setInsertsColor(java.awt.Color inscol)
inscol
- the Color for Inserted text foreground.public void setInsertsBackgroundColor(java.awt.Color insbac)
insbac
- the Color for Inserted background.public void setDeletesColor(java.awt.Color delcol)
delcol
- the Color for Deleted text foreground.public void setDeletesBackgroundColor(java.awt.Color delbac)
delbac
- the Color for Deleted background.public void setChangedBackgroundColor(java.awt.Color chnbac)
chnbac
- the Color for Changed background.public void setSelectedColor(java.awt.Color selcol)
selcol
- the Color for Selected text foreground.public void setSelectedBackgroundColor(java.awt.Color selbac)
selbac
- the Color for Selected background.public void setViewTogether(boolean viwtog)
viwtog
- the boolean value that specifies to show differences
together in one compare view.public void setViewSplitVertical(boolean viwver)
viwver
- the boolean value that specifies to show differences
split vertically side-by-side in compare views.public void setViewSplitHorizontal(boolean viwhor)
viwhor
- the boolean value that specifies to show differences
split horizontally one-over-the-other in compare views.public void setToolBarVisible(boolean vitbar)
vitbar
- the boolean value that specifies to show ToolBar.public void setEditBarVisible(boolean vedbar)
vedbar
- the boolean value that specifies to show Edit Bar.public void setOptsBarVisible(boolean vopbar)
vopbar
- the boolean value that specifies to show Opts Bar.public void setStyleBarVisible(boolean vstbar)
vstbar
- the boolean value that specifies to show Style Bar.public void setViewsBarVisible(boolean vvebar)
vvebar
- the boolean value that specifies to show Views Bar.public void setComparEditBarVisible(boolean vcebar)
vcebar
- the boolean value that specifies to show ComparEdit Bar.public void setNavigationBarVisible(boolean vnabar)
vnabar
- the boolean value that specifies to show Navigation Bar.public void setAllowFileCompares(boolean allfic)
allfic
- the boolean value that specifies to allow File Compares
(During Merges).public void setAllowFolderCompares(boolean allfoc)
allfoc
- the boolean value that specifies to allow Folder Compares
(During Merges).public void setAllowMerges(boolean allfoc)
allmrg
- the boolean value that specifies to allow Merges
(During Compares).public void setPM(java.lang.String prefix)
prefix
- the prefix for the Merge filename header.public void setP1(java.lang.String prefix)
prefix
- the prefix for the 1st filename header.public void setP2(java.lang.String prefix)
prefix
- the prefix for the 2nd filename header.public void setHM(java.lang.String header)
header
- the Merge filename header.public void setH1(java.lang.String header)
header
- the 1st filename header.public void setH2(java.lang.String header)
header
- the 2nd filename header.public void setAutoDiff(boolean autod, java.lang.String autodfn)
autod
- the boolean value that specifies to Automatically
Save the Difference after Compare and then Exit.autodfn
- the Save Diff File name as a complete path.public void setAutoHTML(boolean autoh, java.lang.String autohfn)
autoh
- the boolean value that specifies to Automatically
Save as HTML after Compare and then Exit.autohfn
- the Save HTML File name set as a complete path.public void setAutoMerg(boolean autom)
autom
- the boolean value that specifies to Automatically
Save Merge after Merge and then Exit.public void setAutoRCS(boolean autor, java.lang.String autorfn)
autor
- the boolean value that specifies to Automatically
Save as RCS after Compare and then Exit.autorfn
- the Save RCS File name as a complete path.public void setMinimumLinesDiff(boolean minlin)
minlin
- the boolean value that determines which diff
algorithm is used - Minimize Lines/Blocks changed.public void setMinimumBlocksDiff(boolean minblk)
minlin
- the boolean value that determines which diff
algorithm is used - Minimize Lines/Blocks changed.public void setExpandedFocus(int expfoc)
expfoc
- the integer value that expands the attention(conflict)
focus for SureMerge.public void setMergeAutoShift(java.lang.String shifts)
shifts
- the string "Reverse", "Neutral", or "Drive".public void setSaveSettings(int savset)
savset
- the integer value that controls the auto save settings.public void resetOptions()
public void resetSavedSettings()
public boolean getIgnoreCase()
public boolean getIgnoreWhitespace()
public boolean getIgnoreBlanklines()
public int getIgnoreFieldBegin()
public int getIgnoreFieldEnd()
public int getIgnoreField2Begin()
public int getIgnoreField2End()
public java.lang.String[] getQtRexs()
public boolean getVerifyBxb()
public boolean getVerifyTxt()
public boolean getIgnoreDateandTime()
public boolean getIgnoreFileSize()
public boolean getShowSubs()
public boolean getShowFolderDetails()
public boolean getShowFolderDefaultFont()
public boolean getShowMats()
public boolean getShowAdds()
public boolean getShowDels()
public boolean getShowChgs()
public java.lang.String getIgnoreSubs()
public java.lang.String getIgnoreFils()
public java.lang.String getIgnoreTyps()
public int getTabSize()
public boolean getShowOnlyDiffs()
public boolean getShowContextDiffs()
public int getShowContextSize()
public boolean getShowInLineDiffs()
public int getShowInLineDiffsPercent()
public boolean getShowInLineDiffsString()
public boolean getShowInLineDiffsCharacter()
public boolean getShowLineNumbers()
public java.lang.String getEOLOption()
public java.lang.String getFileEncoding()
public java.lang.String getSaveEncoding()
public java.awt.Font getMatchingFont()
public java.awt.Font getInsertsFont()
public java.awt.Font getDeletesFont()
public java.awt.Color getBackgroundColor()
public java.awt.Color getMatchingColor()
public java.awt.Color getMatchingBackgroundColor()
public java.awt.Color getInsertsColor()
public java.awt.Color getInsertsBackgroundColor()
public java.awt.Color getDeletesColor()
public java.awt.Color getDeletesBackgroundColor()
public java.awt.Color getChangedBackgroundColor()
public java.awt.Color getSelectedColor()
public java.awt.Color getSelectedBackgroundColor()
public boolean getViewTogether()
public boolean getViewSplitVertical()
public boolean getViewSplitHorizontal()
public boolean getToolBarVisible()
public boolean getEditBarVisible()
public boolean getOptsBarVisible()
public boolean getStyleBarVisible()
public boolean getViewsBarVisible()
public boolean getComparEditBarVisible()
public boolean getNavigationBarVisible()
public boolean getAllowFileCompares()
public boolean getAllowFolderCompares()
public boolean getAllowMerges()
public java.lang.String getPM()
public java.lang.String getP1()
public java.lang.String getP2()
public java.lang.String getHM()
public java.lang.String getH1()
public java.lang.String getH2()
public boolean getAutoDiff()
public boolean getAutoHTML()
public boolean getAutoMerg()
public boolean getAutoRCS()
public boolean getMinimumLinesDiff()
public boolean getMinimumBlocksDiff()
public int getExpandedFocus()
public java.lang.String getMergeAutoShift()
public int getNumberofChanges()
public int getNumberof1stApplied()
public int getNumberof2ndApplied()
public int getNumberofAttentions()
public int getSaveSettings()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |