Skip to content

Commit 5baf621

Browse files
authored
Merge pull request #3165 from ControlSystemStudio/add_toolbarentry_id
Add unique id to ToolbarEntry
2 parents 567e714 + fa144c4 commit 5baf621

File tree

16 files changed

+105
-43
lines changed

16 files changed

+105
-43
lines changed

app/credentials-management/src/main/java/org/phoebus/applications/credentialsmanagement/CredentialsManagementToolbarEntry.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,13 @@ public Void call() throws Exception {
4141
ApplicationService.createInstance(CredentialsManagementApp.name);
4242
return null;
4343
}
44+
45+
/**
46+
* DO NOT CHANGE RETURN VALUE!
47+
* @return The unique id of this {@link ToolbarEntry}.
48+
*/
49+
@Override
50+
public String getId(){
51+
return "Credentials Management";
52+
}
4453
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
org.phoebus.applications.credentialsmanagement.CredentialsManagementToolbarEntry

app/databrowser/src/main/java/org/csstudio/trends/databrowser3/OpenDataBrowser.java

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,30 +18,34 @@
1818
* @author Kay Kasemir
1919
*/
2020
@SuppressWarnings("nls")
21-
public class OpenDataBrowser implements MenuEntry, ToolbarEntry
22-
{
21+
public class OpenDataBrowser implements MenuEntry, ToolbarEntry {
2322
@Override
24-
public String getName()
25-
{
23+
public String getName() {
2624
return Messages.DataBrowser;
2725
}
2826

2927
@Override
30-
public String getMenuPath()
31-
{
28+
public String getMenuPath() {
3229
return Messages.DataBrowserMenuPath;
3330
}
3431

3532
@Override
36-
public Image getIcon()
37-
{
33+
public Image getIcon() {
3834
return ImageCache.getImage(getClass(), "/icons/databrowser.png");
3935
}
4036

4137
@Override
42-
public Void call() throws Exception
43-
{
38+
public Void call() throws Exception {
4439
ApplicationService.createInstance(DataBrowserApp.NAME);
4540
return null;
4641
}
42+
43+
/**
44+
* DO NOT CHANGE RETURN VALUE!
45+
* @return The unique id of this {@link ToolbarEntry}.
46+
*/
47+
@Override
48+
public String getId(){
49+
return "Data Browser";
50+
}
4751
}

app/filebrowser/src/main/java/org/phoebus/applications/filebrowser/FileBrowserToolbarEntry.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,13 @@ public Void call() throws Exception {
2525
ApplicationService.createInstance(FileBrowserApp.Name);
2626
return null;
2727
}
28+
29+
/**
30+
* DO NOT CHANGE RETURN VALUE!
31+
* @return The unique id of this {@link ToolbarEntry}.
32+
*/
33+
@Override
34+
public String getId(){
35+
return "File Browser";
36+
}
2837
}

app/log-configuration/src/main/java/org/phoebus/applications/utility/LoggingConfigurationToolbarEntry.java

Lines changed: 0 additions & 31 deletions
This file was deleted.

app/logbook/olog/ui/src/main/java/org/phoebus/logbook/olog/ui/menu/LogEntryTableToolbarEntry.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,13 @@ public Image getIcon()
3737
{
3838
return LogEntryTableApp.icon;
3939
}
40+
41+
/**
42+
* DO NOT CHANGE RETURN VALUE!
43+
* @return The unique id of this {@link ToolbarEntry}.
44+
*/
45+
@Override
46+
public String getId(){
47+
return "Log Entry Table";
48+
}
4049
}

app/logbook/olog/ui/src/main/java/org/phoebus/logbook/olog/ui/menu/SendToLogBookToolbarEntry.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,13 @@ public Image getIcon()
3939
{
4040
return SendToLogBookApp.icon;
4141
}
42+
43+
/**
44+
* DO NOT CHANGE RETURN VALUE!
45+
* @return The unique id of this {@link ToolbarEntry}.
46+
*/
47+
@Override
48+
public String getId(){
49+
return "Send To Log Book";
50+
}
4251
}

app/logbook/ui/src/main/java/org/phoebus/logbook/ui/menu/SendToLogBookToolbarEntry.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,13 @@ public Image getIcon()
4040
{
4141
return SendToLogBookApp.icon;
4242
}
43+
44+
/**
45+
* DO NOT CHANGE RETURN VALUE!
46+
* @return The unique id of this {@link ToolbarEntry}.
47+
*/
48+
@Override
49+
public String getId(){
50+
return "Send To Log Book";
51+
}
4352
}

app/probe/src/main/java/org/phoebus/applications/probe/ProbeToolbarEntry.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,13 @@ public Void call() throws Exception {
2020
ApplicationService.createInstance(Probe.NAME);
2121
return null;
2222
}
23+
24+
/**
25+
* DO NOT CHANGE RETURN VALUE!
26+
* @return The unique id of this {@link ToolbarEntry}.
27+
*/
28+
@Override
29+
public String getId(){
30+
return "Probe";
31+
}
2332
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
org.phoebus.applications.probe.ProbeToolbarEntry

0 commit comments

Comments
 (0)