Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [Dltk-dev] IDLTKContributionSelector isn't working as expected


  i do not believe per project support is going to work b/c not all calls to SourceParserManager.getSourceParser(IProject, String) know to look up the project and pass it along as an argument. support does work if you want to choose between multiple parsers at the workspace level, although no kind of notification is sent right now that would cause the indexes to be rebuilt, etc when the parser is changed.

On Fri, Apr 11, 2008 at 10:09 AM, Edgar Espina <espina.edgar@xxxxxxxxx> wrote:
Hi,

I have two parser and IDLTKContributionSelector isn't select the correct one. The selection isn't working per project and it's because "project" is null at SourceParserManager.getSourceParser(IProject, String).

Thread [main] (Suspended (breakpoint at line 21 in AntlrSourceParserSelector))   
    AntlrSourceParserSelector.getSavedContributionId(PreferencesLookupDelegate) line: 21   
    AntlrSourceParserSelector(DLTKIdContributionSelector).select(IDLTKContributedExtension[], IProject) line: 31   
    SourceParserManager(DLTKContributionExtensionManager).getSelectedContribution(IProject, String) line: 62   
    SourceParserManager.getSourceParser(IProject, String) line: 70   
    DLTKLanguageManager.getSourceParser(String) line: 165   
    SourceParserUtil.getModuleDeclaration(char[], char[], String, IProblemReporter, ISourceModuleInfoCache$ISourceModuleInfo, int) line: 107   
    SourceParserUtil.getModuleDeclaration(char[], char[], String, IProblemReporter, ISourceModuleInfoCache$ISourceModuleInfo) line: 98        AntlrSourceElementParser.parseSourceModule(char[], ISourceModuleInfoCache$ISourceModuleInfo, char[]) line: 51   


How could I fix this?


Thanks

Edgar

_______________________________________________
dltk-dev mailing list
dltk-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dltk-dev




--
-jae

Back to the top