[no commit message]
This commit is contained in:
parent
9a4c2f119e
commit
9b85f7c5be
@ -43,7 +43,7 @@ import java.util.concurrent.CopyOnWriteArrayList;
|
||||
* @author Darksnake
|
||||
*/
|
||||
@TypedActionDef(name = "monitor", inputType = DataSet.class, outputType = DataSet.class)
|
||||
@ValueDef(name = "monitorPoint", type = "UMBER", required = true, info = "The Uset for monitor point")
|
||||
@ValueDef(name = "monitorPoint", type = "NUMBER", required = true, info = "The Uset for monitor point")
|
||||
@ValueDef(name = "monitorFile", info = "The outputfile for monitor points", def = "monitor.out")
|
||||
@ValueDef(name = "calculateRelative", info = "Calculate count rate relative to average monitor point", def = "false")
|
||||
public class MonitorCorrectAction extends OneToOneAction<DataSet, DataSet> {
|
||||
|
@ -218,16 +218,18 @@ public class NumassWorkbenchController implements Initializable, StagePaneHolder
|
||||
|
||||
actionsConfig.setNode("action", actions);
|
||||
|
||||
int counter = 0;
|
||||
for (Configuration action : actions) {
|
||||
counter++;
|
||||
MetaEditor actionEditor = new MetaEditor();
|
||||
|
||||
MetaTreeItem rootItem = new MetaTreeItem(action, getDescriptorForAction(action.getString("type")));
|
||||
//Freezing actions names
|
||||
rootItem.setFrozenValuePredicate((c, n) -> c.getName().equals("action") && n.equals("type"));
|
||||
// rootItem.setFrozenValuePredicate((c, n) -> c.getName().equals("action") && n.equals("type"));
|
||||
actionEditor.setRoot(rootItem);
|
||||
|
||||
actionEditors.add(actionEditor);
|
||||
String actionTitle = String.format("action [%d]: %s", actions.indexOf(action), action.getString("type"));
|
||||
String actionTitle = String.format("action [%d]: %s", counter, action.getString("type"));
|
||||
TitledPane actionPane = new TitledPane(actionTitle, actionEditor);
|
||||
metaContainer.getPanes().add(actionPane);
|
||||
}
|
||||
|
@ -26,26 +26,6 @@ dependencies {
|
||||
deployerJars "org.apache.maven.wagon:wagon-ssh:2.8"
|
||||
}
|
||||
|
||||
task sourcesJar(type: Jar, dependsOn: classes, description: 'Creates a jar from the source files.') {
|
||||
classifier = 'sources'
|
||||
from sourceSets.main.allSource
|
||||
}
|
||||
|
||||
artifacts {
|
||||
archives jar
|
||||
archives sourcesJar
|
||||
}
|
||||
|
||||
|
||||
task createFolders(description: 'Creates the source folders if they do not exist.') doLast {
|
||||
sourceSets*.allSource*.srcDirs*.each { File srcDir ->
|
||||
if (!srcDir.isDirectory()) {
|
||||
println "Creating source folder: ${srcDir}"
|
||||
srcDir.mkdirs()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
uploadArchives {
|
||||
repositories.mavenDeployer {
|
||||
configuration = configurations.deployerJars
|
||||
|
Loading…
Reference in New Issue
Block a user