Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Eclipse 如何设置活动MPart的全宽_Eclipse_Eclipse Rcp_E4 - Fatal编程技术网

Eclipse 如何设置活动MPart的全宽

Eclipse 如何设置活动MPart的全宽,eclipse,eclipse-rcp,e4,Eclipse,Eclipse Rcp,E4,我正在尝试设置活动MPart的全宽。 Eclipse中有内置的东西吗,或者我应该创建自定义渲染器吗?我为RCP和RAP开发人员使用Eclipse IDE(包括孵化组件),版本:2020-06(4.16.0) 零件的容器MPartSashContainer或类似容器使用每个零件的“容器数据”决定其子零件的大小。Hi@greg-449,我在那里找不到任何可用的工具:/,请参见我问题中的pic在您的示例中,零件位于容器数据为“4200”的零件堆栈中。PartStack位于PartSashContain

我正在尝试设置活动MPart的全宽。 Eclipse中有内置的东西吗,或者我应该创建自定义渲染器吗?我为RCP和RAP开发人员使用Eclipse IDE(包括孵化组件),版本:2020-06(4.16.0)


零件的容器
MPartSashContainer
或类似容器使用每个零件的“容器数据”决定其子零件的大小。Hi@greg-449,我在那里找不到任何可用的工具:/,请参见我问题中的pic在您的示例中,零件位于容器数据为“4200”的零件堆栈中。PartStack位于PartSashContainer中,该容器将使用4200和其他子容器数据来计算相对大小。无法设置绝对大小。
@Singleton
public class AttributeEventHandler implements EventHandler
{
  // another code

  @Inject
  @Optional
  public void subscribeTopicPartActivation(@UIEventTopic(UIEvents.UILifeCycle.ACTIVATE) Event event)
  {

    Object element = event.getProperty(EventTags.ELEMENT);
    if (!(element instanceof MPart))
    {
      return;
    }

    MPart part = (MPart) element;
    System.out.println("Part activated: " + part.getLabel());
    // prints: Part activated: Composition Parts (4)
  }    
}