Hi,
I am doing a project in GMF. I want to customize a dialog box with a set of default values under the "Choices" column. This is a dialog box which contains a set of values on the left side (Choices), that can be selected to the right side (Feature), and can be moved up or down. Kindly help me..
我在GMF做一个项目。我想在“选择”列下自定义一组带有一组默认值的对话框。这是一个对话框,其中包含左侧的一组值(选项),可以选择向右侧(功能),并可以向上或向下移动。请帮助我..
Thanks in Advance.
提前致谢。
1 个解决方案
#1
0
Create a class extends to jface Dialog, implement the methods for configuring the shell and create control where you can create composite with two columns in which 1st column will have your default value column "Choices", you can use tree viewer or table viewer according to your requirement. On the selection of content in tree viewer activate the 2nd column composite. You can even use pagebook, A pagebook is a composite control where only a single control is visible at a time.
创建一个类扩展到jface Dialog,实现配置shell的方法并创建控件,你可以在其中创建具有两列的复合,其中第一列将具有您的默认值列“Choices”,您可以使用树查看器或表查看器根据你的要求。在树查看器中选择内容时,激活第二列复合。您甚至可以使用pagebook,Pagebook是一个复合控件,一次只能看到一个控件。
#1
0
Create a class extends to jface Dialog, implement the methods for configuring the shell and create control where you can create composite with two columns in which 1st column will have your default value column "Choices", you can use tree viewer or table viewer according to your requirement. On the selection of content in tree viewer activate the 2nd column composite. You can even use pagebook, A pagebook is a composite control where only a single control is visible at a time.
创建一个类扩展到jface Dialog,实现配置shell的方法并创建控件,你可以在其中创建具有两列的复合,其中第一列将具有您的默认值列“Choices”,您可以使用树查看器或表查看器根据你的要求。在树查看器中选择内容时,激活第二列复合。您甚至可以使用pagebook,Pagebook是一个复合控件,一次只能看到一个控件。