Exemplo n.º 1
0
  /**
   * The constructor should first build the main layout, set the composition root and then do any
   * custom initialization.
   *
   * <p>The constructor will not be automatically regenerated by the visual editor.
   *
   * @throws Exception
   */
  public ConfiguratorView(IWorkbenchContext context, IViewContainer viewContainer) {
    this.context = context;
    this.viewContainer = viewContainer;

    buildMainLayout();
    setCompositionRoot(mainLayout);

    // TODO add user code here
    this.moduleService = ConfiguratorViewContainer.getModuleService();
    this.menuWorkbenchService = ConfiguratorViewContainer.getMenuWorkbenchService();
    this.menuFolderResourceService = ConfiguratorViewContainer.getMenuFolderResourceService();
    this.menuCommandResourceService = ConfiguratorViewContainer.getMenuCommandResourceService();

    workAreaLayout.setMargin(true);
    workAreaLayout.setSpacing(true);

    configuratedModulesComponent.addListener(this);

    // initialize datasource views
    initView();
  }