This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
import org.netbeans.core.projects.ModuleLayeredFileSystem;
import org.netbeans.core.perftool.StartLog;
import org.netbeans.core.modules.ModuleSystem;
import org.netbeans.core.xml.XML;
import org.netbeans.core.execution.ExecutionSettings;
import org.netbeans.core.execution.TopSecurityManager;
}
StartLog.logProgress ("Upgrade wizzard consulted"); // NOI18N
// 8 1/2 XML stuff
XML.init();
StartLog.logProgress ("XML stuff initialized"); // NOI18N
// -----------------------------------------------------------------------------------------------------
// 9. Modules
import org.netbeans.core.xml.NbSAXParserFactoryImpl;
/** Default implementation of TopManager that is used when
* the system is used without initialization.
/** Initializaton of modules if user directory provided.
*/
public void run() {
String userDir = System.getProperty("modules.dir"); // NOI18N
FileSystem fs = getRepository().getDefaultFileSystem();
try {
// XXX is it OK to make use of core classes from here?
import org.netbeans.core.NbTopManager;
import org.netbeans.core.xml.FileEntityResolver;
/** Lookup that is based on the implementation of top manager.
*
throw new InternalError ();
pairs.add (new R());
pairs.add(new FER());
setPairs (pairs);
return getId ();
private static final class FER extends Pair {
public boolean instanceOf(Class clazz) {
return clazz.isAssignableFrom(FileEntityResolver.class);
public Object getInstance() {
return new FileEntityResolver();
public String getId() {
return "TM[FileEntityResolver"; // NOI18N
protected boolean creatorOf(Object o) {
return o instanceof FileEntityResolver;
public Class getType() {
return FileEntityResolver.class;
public String getDisplayName() {
return getId();