/************************************************************************
 *
 * Copyright (C) 2010 - 2012
 *
 * [ApplicationLauncher.java]
 * AHCP Project (http://jacp.googlecode.com)
 * All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at 
 *
 *     http://www.apache.org/licenses/LICENSE-2.0 
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an "AS IS"
 * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 
 * express or implied. See the License for the specific language
 * governing permissions and limitations under the License.
 *
 *
 ************************************************************************/
package quickstart.main;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.stage.Stage;
import org.jacpfx.rcp.workbench.FXWorkbench;
import org.jacpfx.spring.launcher.AFXSpringJavaConfigLauncher;
import quickstart.config.BasicConfig;
import quickstart.workbench.JacpFXWorkbench;

/**
 * The application launcher containing the main method, the workbench definition, the configuration class and the packages to scan
 *
 * @author Andy Moncsek
 */
public class ApplicationLauncher extends AFXSpringJavaConfigLauncher {


    public ApplicationLauncher() {
    }


    @Override
    protected Class<? extends FXWorkbench> getWorkbenchClass() {
        return JacpFXWorkbench.class;
    }

    @Override
    protected String[] getBasePackages() {
        return new String[]{"quickstart"};
    }

    /**
     * @param args
     */
    public static void main(String[] args) {
        Application.launch(args);
    }

    @Override
    public void postInit(Stage stage) {
        Scene scene = stage.getScene();
        // add style sheet
     /*   scene.getStylesheets().addAll(
                ApplicationLauncher.class.getResource("/styles/style.css")
                        .toExternalForm(),
                ApplicationLauncher.class.getResource("/styles/jacpfx.css")
                .toExternalForm());*/
    }

    @Override
    protected Class<?>[] getConfigClasses() {
        return new Class<?>[]{BasicConfig.class};
    }
}

@@ -912,35 +912,8 @@
 on;%0A
-import javafx.scene.Scene;%0A
 impo
@@ -1819,347 +1819,8 @@
 ) %7B%0A
-        Scene scene = stage.getScene();%0A        // add style sheet%0A     /*   scene.getStylesheets().addAll(%0A                ApplicationLauncher.class.getResource(%22/styles/style.css%22)%0A                        .toExternalForm(),%0A                ApplicationLauncher.class.getResource(%22/styles/jacpfx.css%22)%0A                .toExternalForm());*/
 %0A   

update to RC4