Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 366869

Summary: [xtend] Configuration of OutputConfigurations not initialized
Product: [Modeling] TMF Reporter: Karsten Thoms <karsten.thoms>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: clay
Version: 2.2.1   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
Screenshot
none
custom compiler preferences none

Description Karsten Thoms CLA 2011-12-15 15:42:54 EST
Created attachment 208471 [details]
Screenshot

When providing a custom OutputConfigurationProvider with some OutputConfigurations the settings dialog page shows empty values, see screenshot.

To reproduce: 
Add an OutputConfigurationProvider and bind it.

public class MyOutputConfigurationProvider implements IOutputConfigurationProvider {
    public static String OUTPUTCONFIG_SRCGEN = IFileSystemAccess.DEFAULT_OUTPUT;
    public static String OUTPUTCONFIG_SRCMAN = "SRCMAN";
    public static String OUTPUTCONFIG_PLUGIN = "PLUGIN";

    @Override
    public Set<OutputConfiguration> getOutputConfigurations() {
        OutputConfiguration srcGenOutput = new OutputConfiguration(OUTPUTCONFIG_SRCGEN);
        srcGenOutput.setDescription("Folder for generated Java sources");
        srcGenOutput.setOutputDirectory("./src-gen");
        srcGenOutput.setOverrideExistingResources(true);
        srcGenOutput.setCreateOutputDirectory(true);
        srcGenOutput.setCleanUpDerivedResources(true);
        srcGenOutput.setSetDerivedProperty(true);

        OutputConfiguration srcManOutput = new OutputConfiguration(OUTPUTCONFIG_SRCMAN);
        srcManOutput.setDescription("Folder for manual Java sources");
        srcManOutput.setOutputDirectory("./src");
        srcManOutput.setOverrideExistingResources(false);
        srcManOutput.setCreateOutputDirectory(false);
        srcManOutput.setCleanUpDerivedResources(false);
        srcManOutput.setSetDerivedProperty(false);

        OutputConfiguration srcPluginOutput = new OutputConfiguration(OUTPUTCONFIG_PLUGIN);
        srcPluginOutput.setDescription("Folder for plugin root sources (e.g. plugin.xml)");
        srcPluginOutput.setOutputDirectory(".");
        srcPluginOutput.setOverrideExistingResources(true);
        srcPluginOutput.setCreateOutputDirectory(false);
        srcPluginOutput.setCleanUpDerivedResources(false);
        srcPluginOutput.setSetDerivedProperty(false);

        return Sets.newHashSet(srcGenOutput, srcManOutput, srcPluginOutput);
    }
Comment 1 Michael Clay CLA 2012-01-11 15:49:16 EST
since i cannot reproduce this with the latest version i will close it for now. pls reopen if necessary
Comment 2 Michael Clay CLA 2012-01-11 15:50:41 EST
Created attachment 209342 [details]
custom compiler preferences
Comment 3 Karsten Thoms CLA 2017-09-19 17:37:00 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 4 Karsten Thoms CLA 2017-09-19 17:47:58 EDT
Closing all bugs that were set to RESOLVED before Neon.0