开发者

Customizing WizardNewFileCreationPage and WizardNewFolderMainPage: changing the default tree

开发者 https://www.devze.com 2023-03-05 07:34 出处:网络
We have created two custom wizard pages that extend from WizardNewFileCreationPage and WizardNewFolderMainPage. But we need to modify the default tree selection dialog (we need to show only a subset o

We have created two custom wizard pages that extend from WizardNewFileCreationPage and WizardNewFolderMainPage. But we need to modify the default tree selection dialog (we need to show only a subset of the current tree elements). How can we do it ? I've found that attribute resourceGroup can't be modified. Creating a new class frow scratch is the only way?.

Plea开发者_开发技巧se, help. Thanks.


You have correctly found out that you cannot modify the resourceGroup as it is a private member of WizardNewFileCreationPage and WizardNewFolderMainPage. Because of its accessibility you can't even override public void createControl(Composite parent).

As far as I know there is no extension point to alter this behavior. Unfortunately you have to rewrite/create the whole thing.

0

精彩评论

暂无评论...
验证码 换一张
取 消