Skip to content

Commit

Permalink
config: workflow updated
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisTurco committed Nov 6, 2024
1 parent ab2071f commit 005dd98
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 12 deletions.
20 changes: 20 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@
<version>1.1.1</version>
</dependency>

<!-- Dependency for JUnit 4 -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>[4.13.1,)</version>
<scope>test</scope>
</dependency>

<!-- Dependency for flatlaf -->
<dependency>
<groupId>com.formdev</groupId>
Expand Down Expand Up @@ -55,6 +63,18 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>4.7.3.0</version>
<executions>
<execution>
<goals>
<goal>spotbugs</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@
<Property name="text" type="java.lang.String" value="Copy text"/>
</Properties>
<SubComponents>
<MenuItem class="javax.swing.JMenuItem" name="CopyFilenamePopupItem">
<MenuItem class="javax.swing.JMenuItem" name="CopyBackupNamePopupItem">
<Properties>
<Property name="text" type="java.lang.String" value="Copy filename"/>
<Property name="text" type="java.lang.String" value="Copy backup name"/>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="CopyFilenamePopupItemActionPerformed"/>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="CopyBackupNamePopupItemActionPerformed"/>
</Events>
</MenuItem>
<MenuItem class="javax.swing.JMenuItem" name="CopyInitialPathPopupItem">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ private void initComponents() {
AutoBackupMenuItem = new javax.swing.JCheckBoxMenuItem();
jSeparator2 = new javax.swing.JPopupMenu.Separator();
jMenu4 = new javax.swing.JMenu();
CopyFilenamePopupItem = new javax.swing.JMenuItem();
CopyBackupNamePopupItem = new javax.swing.JMenuItem();
CopyInitialPathPopupItem = new javax.swing.JMenuItem();
CopyDestinationPathPopupItem = new javax.swing.JMenuItem();
TabbedPane = new javax.swing.JTabbedPane();
Expand Down Expand Up @@ -272,13 +272,13 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {

jMenu4.setText("Copy text");

CopyFilenamePopupItem.setText("Copy filename");
CopyFilenamePopupItem.addActionListener(new java.awt.event.ActionListener() {
CopyBackupNamePopupItem.setText("Copy backup name");
CopyBackupNamePopupItem.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
CopyFilenamePopupItemActionPerformed(evt);
CopyBackupNamePopupItemActionPerformed(evt);
}
});
jMenu4.add(CopyFilenamePopupItem);
jMenu4.add(CopyBackupNamePopupItem);

CopyInitialPathPopupItem.setText("Copy initial path");
CopyInitialPathPopupItem.setToolTipText("");
Expand Down Expand Up @@ -813,7 +813,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
}// </editor-fold>//GEN-END:initComponents

private void displayBackupList(List<Backup> backups) {
model = new DefaultTableModel(new Object[]{"Backup Name", "Start Path", "Destination Path", "Last Backup", "Automatic Backup", "Next Backup Date", "Time Interval"}, 0) {
model = new DefaultTableModel(new Object[]{"Backup Name", "Initial Path", "Destination Path", "Last Backup", "Automatic Backup", "Next Backup Date", "Time Interval"}, 0) {

@Override
public Class<?> getColumnClass(int columnIndex) {
Expand Down Expand Up @@ -1227,12 +1227,12 @@ private void RunBackupPopupItemActionPerformed(java.awt.event.ActionEvent evt) {
}
}//GEN-LAST:event_RunBackupPopupItemActionPerformed

private void CopyFilenamePopupItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CopyFilenamePopupItemActionPerformed
private void CopyBackupNamePopupItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CopyBackupNamePopupItemActionPerformed
if (selectedRow != -1) {
StringSelection selection = new StringSelection(backups.get(selectedRow).getBackupName());
Toolkit.getDefaultToolkit().getSystemClipboard().setContents(selection, null);
}
}//GEN-LAST:event_CopyFilenamePopupItemActionPerformed
}//GEN-LAST:event_CopyBackupNamePopupItemActionPerformed

private void CopyInitialPathPopupItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CopyInitialPathPopupItemActionPerformed
if (selectedRow != -1) {
Expand Down Expand Up @@ -1849,8 +1849,8 @@ public static void main(String args[]) {
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JCheckBoxMenuItem AutoBackupMenuItem;
private javax.swing.JMenu Backup;
private javax.swing.JMenuItem CopyBackupNamePopupItem;
private javax.swing.JMenuItem CopyDestinationPathPopupItem;
private javax.swing.JMenuItem CopyFilenamePopupItem;
private javax.swing.JMenuItem CopyInitialPathPopupItem;
private javax.swing.JMenuItem DeletePopupItem;
private javax.swing.JMenuItem DuplicatePopupItem;
Expand Down
25 changes: 25 additions & 0 deletions src/main/resources/res/log_file
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
2024-11-06T18:38:47.094931900 [INFO] Event --> share
2024-11-06T18:38:40.705057300 [INFO] Event --> shard website
2024-11-06T18:38:03.044570100 [INFO] The application is running with administrator privileges.
2024-11-06T18:38:01.771050600 [DEBUG] Background mode: false
2024-11-06T18:38:01.742282800 [INFO] Application started
2024-11-06T18:18:33.219556700 [INFO] The application is running with administrator privileges.
2024-11-06T18:18:32.725260800 [DEBUG] Background mode: false
2024-11-06T18:18:32.707429800 [INFO] Application started
2024-11-06T18:17:45.890632100 [INFO] The application is running with administrator privileges.
2024-11-06T18:17:45.393987300 [DEBUG] Background mode: false
2024-11-06T18:17:45.377123100 [INFO] Application started
2024-11-06T18:15:45.049149500 [INFO] Event --> backup renaming
2024-11-06T18:15:28.918572900 [INFO] Event --> backup renaming
2024-11-06T18:15:12.784110100 [INFO] The application is running with administrator privileges.
2024-11-06T18:15:12.288021400 [DEBUG] Background mode: false
2024-11-06T18:15:12.270165400 [INFO] Application started
2024-11-06T18:13:04.762108500 [WARN] The folder does not exist or is invalid
2024-11-06T18:13:04.756156300 [INFO] Event --> opening folder
2024-11-06T18:12:57.105817100 [INFO] Event --> opening folder
2024-11-06T18:12:51.280874 [INFO] Event --> opening folder
2024-11-06T18:12:01.705521200 [INFO] You selected the directory: C:\Users\Utente\Desktop\gg
2024-11-06T18:11:57.123456400 [INFO] You selected the file: C:\Users\Utente\Desktop\Aseprite.url
2024-11-06T18:10:45.576643500 [INFO] The application is running with administrator privileges.
2024-11-06T18:10:45.034874200 [DEBUG] Background mode: false
2024-11-06T18:10:45.017415300 [INFO] Application started
2024-11-06T15:31:37.256730900 [INFO] The application is running with administrator privileges.
2024-11-06T15:31:36.781522200 [DEBUG] Background mode: false
2024-11-06T15:31:36.763666500 [INFO] Application started
Expand Down

0 comments on commit 005dd98

Please sign in to comment.