Skip to content

Commit

Permalink
Added identifier to dashboard
Browse files Browse the repository at this point in the history
Enables to identify dashboards in configuration (say navigation bar)
without relying on the relative position of the dashboard
  • Loading branch information
buchen committed Aug 21, 2024
1 parent 4e37da7 commit bb06f63
Show file tree
Hide file tree
Showing 10 changed files with 244 additions and 58 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import java.util.List;
import java.util.Map;
import java.util.StringJoiner;
import java.util.UUID;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
Expand Down Expand Up @@ -923,7 +924,7 @@ private void deleteColumn(Composite columnControl)

private Dashboard createDefaultDashboard()
{
Dashboard newDashboard = new Dashboard();
Dashboard newDashboard = new Dashboard(UUID.randomUUID().toString());
newDashboard.setName(Messages.LabelDashboard);

NewDashboardDialog.buildIndicatorDashboard(newDashboard);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package name.abuchen.portfolio.ui.views.dashboard;

import java.util.UUID;

import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionListener;
Expand Down Expand Up @@ -87,7 +89,7 @@ protected final Control createDialogArea(Composite parent)

public Dashboard createDashboard()
{
Dashboard newDashboard = new Dashboard();
Dashboard newDashboard = new Dashboard(UUID.randomUUID().toString());
newDashboard.setName(selectedName);

switch (selectedTemplate)
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public interface Properties // NOSONAR
String WATCHLISTS = "watchlists"; //$NON-NLS-1$
}

public static final int CURRENT_VERSION = 64;
public static final int CURRENT_VERSION = 65;
public static final int VERSION_WITH_CURRENCY_SUPPORT = 29;
public static final int VERSION_WITH_UNIQUE_FILTER_KEY = 57;

Expand Down
Loading

0 comments on commit bb06f63

Please sign in to comment.