Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366869 - [xtend] Configuration of OutputConfigurations not initialized
Summary: [xtend] Configuration of OutputConfigurations not initialized
Status: CLOSED WORKSFORME
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.2.1   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-15 15:42 EST by Karsten Thoms CLA
Modified: 2017-09-19 17:47 EDT (History)
1 user (show)

See Also:


Attachments
Screenshot (139.92 KB, image/png)
2011-12-15 15:42 EST, Karsten Thoms CLA
no flags Details
custom compiler preferences (204.43 KB, image/png)
2012-01-11 15:50 EST, Michael Clay CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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