Package org.fusesource.ide.sap.ui.view

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


    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

  @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

Related Classes of org.fusesource.ide.sap.ui.view.SapConnectionsView

Copyright © 2018 www.massapicom. 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.