Search in sources :

Example 1 with ProjectPluginEditor

use of blue.project.ProjectPluginEditor in project blue by kunstmusik.

the class ProjectPropertiesTopComponent method reinitialize.

public void reinitialize() {
    BlueProject project = BlueProjectManager.getInstance().getCurrentProject();
    ProjectProperties projectProperties = null;
    BlueData data = null;
    if (project != null) {
        data = project.getData();
        if (data != null) {
            projectProperties = data.getProjectProperties();
        }
    }
    for (ProjectPluginEditor editor : pluginEditors.values()) {
        editor.edit(data);
    }
    this.projectInformationPanel1.setProjectProperties(projectProperties);
    this.realtimeRenderSettingsPanel1.setProjectProperties(projectProperties);
    this.diskRenderSettingsPanel1.setProjectProperties(projectProperties);
}
Also used : ProjectPluginEditor(blue.project.ProjectPluginEditor) BlueData(blue.BlueData) BlueProject(blue.projects.BlueProject) ProjectProperties(blue.ProjectProperties)

Example 2 with ProjectPluginEditor

use of blue.project.ProjectPluginEditor in project blue by kunstmusik.

the class ProjectPropertiesTopComponent method setupProjectPluginEditors.

private void setupProjectPluginEditors() {
    List<LazyPlugin<ProjectPluginEditor>> plugins = LazyPluginFactory.loadPlugins("blue/project/plugins/editors", ProjectPluginEditor.class);
    for (LazyPlugin<ProjectPluginEditor> plugin : plugins) {
        ProjectPluginEditor editor = plugin.getInstance();
        String displayname = plugin.getDisplayName();
        tabs.add(displayname, editor);
        pluginEditors.put(displayname, editor);
    }
}
Also used : ProjectPluginEditor(blue.project.ProjectPluginEditor) LazyPlugin(blue.ui.nbutilities.lazyplugin.LazyPlugin)

Aggregations

ProjectPluginEditor (blue.project.ProjectPluginEditor)2 BlueData (blue.BlueData)1 ProjectProperties (blue.ProjectProperties)1 BlueProject (blue.projects.BlueProject)1 LazyPlugin (blue.ui.nbutilities.lazyplugin.LazyPlugin)1