forked from ControlSystemStudio/phoebus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'ControlSystemStudio:master' into advancedConverter
- Loading branch information
Showing
84 changed files
with
1,287 additions
and
382 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: build Swagger documentation | ||
|
||
on: | ||
push: | ||
branches: [ "main", "develop" ] | ||
pull_request: | ||
branches: [ "main", "develop" ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Maven and Java Action | ||
uses: s4u/[email protected] | ||
with: | ||
java-version: '17' | ||
maven-version: '3.9.6' | ||
- name: Get swagger.json | ||
run: | | ||
cd ./services/alarm-logger | ||
mvn spring-boot:run & | ||
export jobpid="$!" | ||
sleep 30 | ||
curl http://localhost:8080/v3/api-docs --output ../../docs/swagger.json | ||
kill "$jobpid" | ||
- name: Archive swagger.json | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: swagger.json | ||
path: docs/swagger.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
...owser/src/main/java/org/csstudio/trends/databrowser3/ui/properties/ShowHideAllAction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2024 Oak Ridge National Laboratory. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
******************************************************************************/ | ||
package org.csstudio.trends.databrowser3.ui.properties; | ||
|
||
import org.csstudio.trends.databrowser3.Activator; | ||
import org.csstudio.trends.databrowser3.Messages; | ||
import org.csstudio.trends.databrowser3.model.AxisConfig; | ||
import org.csstudio.trends.databrowser3.model.Model; | ||
import org.csstudio.trends.databrowser3.model.ModelItem; | ||
import org.phoebus.ui.undo.UndoableAction; | ||
import org.phoebus.ui.undo.UndoableActionManager; | ||
|
||
import javafx.scene.control.MenuItem; | ||
|
||
/** MenuItem to show or hide all items | ||
* @author Kay Kasemir | ||
*/ | ||
@SuppressWarnings("nls") | ||
public class ShowHideAllAction extends MenuItem | ||
{ | ||
private class ShowHideAll extends UndoableAction | ||
{ | ||
final private Model model; | ||
final private boolean show; | ||
|
||
ShowHideAll(final UndoableActionManager operations_manager, | ||
final Model model, final boolean show) | ||
{ | ||
super(show ? Messages.ShowAll : Messages.HideAll); | ||
this.model = model; | ||
this.show = show; | ||
operations_manager.execute(this); | ||
} | ||
|
||
@Override | ||
public void run() | ||
{ | ||
for (ModelItem item : model.getItems()) | ||
item.setVisible(show); | ||
for (AxisConfig axis : model.getAxes()) | ||
axis.setVisible(model.hasAxisActiveItems(axis)); | ||
} | ||
|
||
@Override | ||
public void undo() | ||
{ | ||
for (ModelItem item : model.getItems()) | ||
item.setVisible(!show); | ||
for (AxisConfig axis : model.getAxes()) | ||
axis.setVisible(model.hasAxisActiveItems(axis)); | ||
} | ||
} | ||
|
||
/** @param model Model | ||
* @param undo Undo manager | ||
* @param show Show all, or hide all? | ||
*/ | ||
public ShowHideAllAction(final Model model, final UndoableActionManager undo, final boolean show) | ||
{ | ||
super(show ? Messages.ShowAll : Messages.HideAll, | ||
Activator.getIcon(show ? "checkbox" : "checkbox_unchecked")); | ||
setOnAction(event -> new ShowHideAll(undo, model, show)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
app/databrowser/src/main/resources/META-INF/services/org.phoebus.ui.spi.ToolbarEntry
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
org.csstudio.trends.databrowser3.OpenDataBrowser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.