Example usage for com.google.gwt.eclipse.core.compile GWTCompileSettings getEntryPointModules

List of usage examples for com.google.gwt.eclipse.core.compile GWTCompileSettings getEntryPointModules

Introduction

In this page you can find the example usage for com.google.gwt.eclipse.core.compile GWTCompileSettings getEntryPointModules.

Prototype

public List<String> getEntryPointModules() 

Source Link

Usage

From source file:com.myeclipsedev.gdt.eclipse.ui.internal.wizard.WebComponentExportPage.java

License:Open Source License

private void updateEntryPointModulesIfProjectChanged() {
    if (project != null) {
        IJavaProject javaProject = JavaCore.create(project);
        if (javaProject != null && !javaProject.equals(entryPointModulesBlock.getJavaProject())) {
            // Set the project for the block (needed for adding a module)
            entryPointModulesBlock.setJavaProject(javaProject);

            GWTCompileSettings settings = GWTProjectProperties.getGwtCompileSettings(project);

            // Set the default and initially-selected modules for the block
            // from
            // the saved settings
            entryPointModulesBlock.setDefaultModules(settings.getEntryPointModules());
            entryPointModulesBlock.setModules(settings.getEntryPointModules());
        }//from   w  w  w  .  j  ava 2  s  .c o m
    } else {
        entryPointModulesBlock.setJavaProject(null);
        entryPointModulesBlock.setDefaultModules(Collections.<String>emptyList());
        entryPointModulesBlock.setModules(Collections.<String>emptyList());
    }
}