mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
processing workspace.xml
This commit is contained in:
@@ -17,6 +17,8 @@ package com.intellij.platform.templates;
|
||||
|
||||
import com.intellij.ide.util.projectWizard.ProjectTemplateComponent;
|
||||
import com.intellij.ide.util.projectWizard.ProjectTemplateFileProcessor;
|
||||
import com.intellij.openapi.components.PathMacroManager;
|
||||
import com.intellij.openapi.components.impl.ComponentManagerImpl;
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.util.Condition;
|
||||
@@ -53,6 +55,8 @@ public class SystemFileProcessor extends ProjectTemplateFileProcessor {
|
||||
Element root = new Element("project");
|
||||
for (final ProjectTemplateComponent component : componentList) {
|
||||
final Element element = new Element("component");
|
||||
String name = ComponentManagerImpl.getComponentName(component);
|
||||
element.setAttribute("name", name);
|
||||
root.addContent(element);
|
||||
UIUtil.invokeAndWaitIfNeeded(new Runnable() {
|
||||
@Override
|
||||
@@ -66,6 +70,7 @@ public class SystemFileProcessor extends ProjectTemplateFileProcessor {
|
||||
}
|
||||
});
|
||||
}
|
||||
PathMacroManager.getInstance(project).collapsePaths(root);
|
||||
return JDOMUtil.writeElement(root);
|
||||
}
|
||||
}
|
||||
|
||||
+3
@@ -33,6 +33,9 @@ import java.util.Map;
|
||||
/**
|
||||
* @author Eugene Zhuravlev
|
||||
* Date: Dec 6, 2004
|
||||
*
|
||||
* @see PathMacrosImpl#addMacroReplacements(ReplacePathToMacroMap)
|
||||
* @see com.intellij.openapi.components.PathMacroManager
|
||||
*/
|
||||
public class ReplacePathToMacroMap extends PathMacroMap {
|
||||
private List<String> myPathsIndex = null;
|
||||
|
||||
Reference in New Issue
Block a user