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.
* @return The actual root the in the system the file is under.
*/
public FileObject getSystemRoot(FileObject file) {
// Don't initialize the Ruby interpreter here if it hasn't already been initialized
// (see issue #121477). Our class path resolver may be called even when there are no
// Ruby projects open, and we don't want to make the user ask about Ruby interpreters
// in that case.
if (ruby == null) {
return null;
}
// See if the file is under the Ruby libraries
FileObject rubyLibFo = getRubyLibFo();
FileObject rubyStubs = getRubyStubs();
import org.netbeans.api.project.Project;
import org.netbeans.api.project.ProjectInformation;
import org.netbeans.api.project.ProjectManager;
import org.netbeans.api.ruby.platform.RubyInstallation;
import org.netbeans.modules.ruby.rubyproject.classpath.ClassPathProviderImpl;
import org.netbeans.modules.ruby.rubyproject.queries.RubyProjectEncodingQueryImpl;
import org.netbeans.modules.ruby.rubyproject.ui.RubyLogicalViewProvider;
ProjectOpenedHookImpl() {}
protected void projectOpened() {
// Force Ruby interpreter initialization
RubyInstallation.getInstance().getRuby(false);
// Check up on build scripts.
/*
try {
import org.netbeans.modules.ruby.railsprojects.classpath.ClassPathProviderImpl;
import org.netbeans.modules.ruby.railsprojects.queries.RailsProjectEncodingQueryImpl;
import org.netbeans.modules.ruby.railsprojects.server.RailsServer;
public ProjectOpenedHookImpl() {}
open();