/*******************************************************************************
 * Copyright (c) 2015 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.display.builder.editor;

import javafx.application.Application;
import javafx.stage.Stage;
import javafx.stage.WindowEvent;

@SuppressWarnings("nls")
public class EditorDemo extends Application
{
    private final String display_file = "../org.csstudio.display.builder.runtime.test/examples/main.opi";
    private EditorGUI editor;

    /** JavaFX main
     *  @throws Exception
     */
    public static void main(final String[] args) throws Exception
    {
        launch(args);
    }

    /** JavaFX Start */
    @Override
    public void start(final Stage stage)
    {
        editor = new EditorGUI(stage);
        // Load model in background
        editor.loadModel(display_file);
        stage.setOnCloseRequest((WindowEvent event) -> editor.handleClose());
    }
}

@@ -510,16 +510,89 @@
 tor;%0D%0A%0D%0A
+import java.io.FileInputStream;%0D%0Aimport java.util.logging.LogManager;%0D%0A%0D%0A
 import j
@@ -1024,32 +1024,186 @@
 ception%0D%0A    %7B%0D%0A
+        LogManager.getLogManager().readConfiguration(new FileInputStream(%22../org.csstudio.display.builder.runtime.test/examples/logging.properties%22));%0D%0A%0D%0A
         launch(a

Configure editor demo log