Examples of MPerspective


Examples of org.eclipse.e4.ui.model.application.ui.advanced.MPerspective

@SuppressWarnings("restriction")
public class PerspectiveSwitcher {
  @Execute
  public void switchToPerspective(@Named("targetPerspectiveId")String perspectiveId, MApplication application, EPartService partService, EModelService modelService) {
    MPerspective p = (MPerspective) modelService.find(perspectiveId, application);
    partService.switchPerspective(p);
  }
View Full Code Here

Examples of org.eclipse.e4.ui.model.application.ui.advanced.MPerspective

       
        Button b = new Button("Unrender");
        b.setOnAction(new EventHandler<ActionEvent>() {
          @Override
          public void handle(ActionEvent event) {
            MPerspective part = dd.getSelectionModel().getSelectedItem();
            engine.removeGui(part);
          }
        });
        hbox.getChildren().add(b);
        vbox.getChildren().add(hbox);
View Full Code Here

Examples of org.eclipse.e4.ui.model.application.ui.advanced.MPerspective

     
      @Override
      public void handleEvent(Event event) {
        Object changedObj = event.getProperty(UIEvents.EventTags.ELEMENT);
        if( changedObj instanceof MPerspective ) {
          MPerspective perspective = (MPerspective) changedObj;
          if( BaseWindowRenderer.this == perspective.getRenderer() ) {
            String eventType = (String) event.getProperty(UIEvents.EventTags.TYPE);
            if( UIEvents.EventTypes.ADD.equals(eventType) ) {
              MUIElement element = (MUIElement) event.getProperty(UIEvents.EventTags.NEW_VALUE);
              if( element instanceof MWindow ) {
                handleWindowAdd((MWindow) element);
View Full Code Here

Examples of org.eclipse.e4.ui.model.application.ui.advanced.MPerspective

     
      @Override
      public void handleEvent(Event event) {
        Object changedObj = event.getProperty(UIEvents.EventTags.ELEMENT);
        if( changedObj instanceof MPerspective ) {
          MPerspective perspective = (MPerspective) changedObj;
          if( BasePerspectiveRenderer.this == perspective.getRenderer() ) {
            String eventType = (String) event.getProperty(UIEvents.EventTags.TYPE);
            if( UIEvents.EventTypes.ADD.equals(eventType) ) {
              MUIElement element = (MUIElement) event.getProperty(UIEvents.EventTags.NEW_VALUE);
              if( element instanceof MWindow ) {
                handleWindowAdd((MWindow) element);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.