示例#1
0
 private void initDialog() {
   if (cube != null) {
     nameText.setText(cube.getName() == null ? "" : cube.getName()); // $NON-NLS-1$
     group.setInput(cube, dataset);
     group.load();
   }
 }
示例#2
0
  protected Control createDialogArea(Composite parent) {
    Composite area = (Composite) super.createDialogArea(parent);
    Composite container = new Composite(area, SWT.NONE);
    container.setLayoutData(new GridData(GridData.FILL_BOTH));
    container.setLayout(new GridLayout());

    this.setTitle(Messages.getString("SimpleCubeBuilder.Title.Title")); // $NON-NLS-1$
    this.setMessage(Messages.getString("SimpleCubeBuilder.Title.Message")); // $NON-NLS-1$

    createNameArea(container);
    group = getCubeGroupContent(container);
    group.setLayoutData(new GridData(GridData.FILL_BOTH));

    initDialog();

    UIUtil.bindHelp(parent, IHelpContextIds.SIMPLE_CUBE_BUILDER_ID);
    return area;
  }