Community
Participate
Working Groups
Build ID: 3.5 M5 Steps To Reproduce: The "org.eclipse.php.PHP_DEFAULT" should be added as the supported type of PHPStructuredTextPartitioner More information:
Created attachment 131903 [details] The patch
don't you think that we should extend getConfiguredContentTypes() instead? this can be done by getting the super.getConfiguredContentTypes() and then cretae a new array that includes these values and the addition of the PHP default. Thoughts?
Overwrite the getConfiguredContentTypes method is my init idea, however the fSupportedTypes field is protected. So it can be a risk, if any sub class code access the fSupportedTypes directly instead of using get method. Comments?
my suggestions: protected void initLegalContentTypes() { super.initLegalContentTypes(); // add a new values and then add it to the fSupportedTypes }
Created attachment 132027 [details] New patch
committed to HEAD. contributed by Qiangsheng. thanks!
closed