Examples of SapConnectionsView


Examples of org.fusesource.ide.sap.ui.view.SapConnectionsView

  @Override
  public void setEnabled(Object evaluationContext) {
    setBaseEnabled(false);
    Object obj = HandlerUtil.getVariable(evaluationContext, ISources.ACTIVE_PART_NAME);
    if (obj instanceof SapConnectionsView) {
      SapConnectionsView view = (SapConnectionsView) obj;
      editingDomain = view.getEditingDomain();
      if (editingDomain.getCommandStack().canRedo()) {
        setBaseEnabled(true);
      }
    }
  }
View Full Code Here

Examples of org.fusesource.ide.sap.ui.view.SapConnectionsView

    FileOutputStream fos = getFilename();
    springFile.marshal(fos);
  }
 
  protected org.fusesource.camel.component.sap.model.rfc.SapConnectionConfiguration getSapConnectionConfigurationModel() {
    SapConnectionsView view = (SapConnectionsView) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().findView(SapConnectionsView.ID);
    if (view != null) {
      return view.getSapConnectionConfiguration();
    }
    // SapConnectionsView is not active: retrieve stored configuration instead.
    return ModelUtil.getModel(new ResourceSetImpl());
  }
View Full Code Here

Examples of org.fusesource.ide.sap.ui.view.SapConnectionsView

  @Override
  public void setEnabled(Object evaluationContext) {
    setBaseEnabled(false);
    Object obj = HandlerUtil.getVariable(evaluationContext, ISources.ACTIVE_PART_NAME);
    if (obj instanceof SapConnectionsView) {
      SapConnectionsView view = (SapConnectionsView) obj;
      editingDomain = view.getEditingDomain();
      if (editingDomain.getCommandStack().canUndo()) {
        setBaseEnabled(true);
      }
    }
  }
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.