|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | 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 | +--upidiff.gui.UpidiffGUI
This class contains the main parts of the graphical user interface.
Nested Class Summary | |
(package private) class |
UpidiffGUI.ActionAdapter
This inner class models the Actionlistener for this GUI. |
(package private) class |
UpidiffGUI.ScrollTogetherNew
|
(package private) class |
UpidiffGUI.ScrollTogetherOld
|
(package private) class |
UpidiffGUI.WindowClosingAdapter
This inner class models a windowlistener and therefore extends the WindowAdapter |
Fields inherited from class javax.swing.JFrame |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, 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.Window |
|
Fields inherited from class java.awt.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
UpidiffGUI()
Default constructor. |
Method Summary | |
private void |
initGui()
This Methode initialises the GUI |
private void |
mergeNext(int whose)
Merges the next change. |
void |
openFiles(InputSource source1,
InputSource source2)
This Methode opens the two files given by name |
private void |
resetTranslatableStrings()
Used to set translatable strings on the dialog components. |
private void |
saveMergedDocument()
Saves the merged document. |
private void |
startMerge()
This Methode starts the merge process. |
private void |
updateGC()
Updates the Garbage collector display. |
Methods inherited from class java.awt.Frame |
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
Field Detail |
private BorderLayout mainBorderLayout
private BorderLayout borderLayoutPanelOld
private BorderLayout borderLayoutPanelNew
private BorderLayout mergeBorderLayout
private BorderLayout innerMergeBorderLayout
private BorderLayout borderLayoutToolbarPanel
private BorderLayout borderLayoutStatusBar
private FlowLayout flowLayoutToolbarPanel
private GridLayout mergePanelGrid
private JPanel diffPanel
private JPanel mergePanel
private JPanel panelOld
private JPanel panelNew
private JPanel mergeInnerPanel
private JPanel barPanel
private JPanel toolbarPanel
private JPanel statusBarPanel
private JLabel statusBarLabel
private JSplitPane mainSplitPane
private JScrollPane scrollPaneOld
private JScrollPane scrollPaneNew
private JScrollPane scrollPaneMerge
private JTextPane textPaneOld
private JTextPane textPaneMerge
private JTextPane textPaneNew
private JTextPane linePaneOld
private JTextPane linePaneNew
private JTextPane linePaneMerge
private JLabel textOldName
private JLabel textNewName
private JToolBar toolBarFile
private JToolBar toolBarEdit
private JToolBar toolBarProject
private JToolBar toolBarMerge
private JToolBar toolBarGC
private JMenuBar menuBar
private JMenu menuFile
private JMenu menuEdit
private JMenu menuProject
private JMenu menuHelp
private JMenuItem menuItemOpen
private JMenuItem menuItemSave
private JMenuItem menuItemQuit
private JMenuItem menuItemCut
private JMenuItem menuItemCopy
private JMenuItem menuItemPaste
private JMenuItem menuItemDiff
private JMenuItem menuItemMerge
private JMenuItem menuItemOptions
private JMenuItem menuItemAbout
private JButton buttonOpen
private JButton buttonSave
private JButton buttonPaste
private JButton buttonCopy
private JButton buttonCut
private JButton buttonManDiff
private JButton buttonMerge
private JButton buttonPrev
private JButton buttonNext
private JButton buttonKeepLeft
private JButton buttonKeepRight
private JButton buttonCloser
private JButton buttonUndoCloser
private JToggleButton buttonTogetherScrolling
private JProgressBar progressGC
private JButton buttonGC
private VisualDiff visualDiff
private UpidiffGUI.ActionAdapter actionAdapter
private Catalog catalog
private Object lock
private boolean ispressedToggelButton
private JScrollBar scrollBarOld
private JScrollBar scrollBarNew
Constructor Detail |
public UpidiffGUI()
Method Detail |
private void initGui() throws Exception
Exception
- Hands over Exceptions from the GUI-Elementsprivate void updateGC()
private void resetTranslatableStrings()
private void startMerge()
public void openFiles(InputSource source1, InputSource source2) throws Exception
source1
- First input source to read.source2
- Second input source to read.
Exception
- In case of none existence of the files.private void mergeNext(int whose)
whose
- Which variant to merge.private void saveMergedDocument()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |