private void initCommitToDBAction() { commitToDBAction = new AbstractAction( "Commit to DB", GKApplicationUtilities.createImageIcon(getClass(), "CommitToDB.gif")) { public void actionPerformed(ActionEvent e) { commitToDB(); } }; commitToDBAction.putValue(Action.SHORT_DESCRIPTION, "Commit to the database repository"); commitToDBAction.setEnabled(false); }
private void initClearRecordAction() { clearRecordAction = new AbstractAction( "Clear Record", GKApplicationUtilities.createImageIcon(getClass(), "ClearRecord.gif")) { public void actionPerformed(ActionEvent e) { clearDeleteRecord(); } }; clearRecordAction.putValue(Action.SHORT_DESCRIPTION, "Clear delete record"); // Disable as default clearRecordAction.setEnabled(false); }
private void initShowComparisonAction() { showComparisonAction = new AbstractAction( "Show Comparison", GKApplicationUtilities.createImageIcon(getClass(), "ShowComparison.gif")) { public void actionPerformed(ActionEvent e) { showComparison(); } }; showComparisonAction.putValue( Action.SHORT_DESCRIPTION, "Compare an instance in the local and database repositories"); showComparisonAction.setEnabled(false); }
public SyncListCellRenderer() { super(); icon = GKApplicationUtilities.createImageIcon(getClass(), "Instance.gif"); deleteInDBIcon = GKApplicationUtilities.createImageIcon(getClass(), "InstanceDeleteInDB.png"); deleteIcon = GKApplicationUtilities.createImageIcon(getClass(), "InstanceDelete.png"); newInstanceIcon = GKApplicationUtilities.createImageIcon(getClass(), "InstanceNew.png"); newChangeIcon = GKApplicationUtilities.createImageIcon(getClass(), "InstanceNewChange.png"); dbChangeIcon = GKApplicationUtilities.createImageIcon(getClass(), "InstanceNewChangeInDB.png"); conflictIcon = GKApplicationUtilities.createImageIcon(getClass(), "InstanceChangeConflict.png"); }