Examples of loadAdapter()


Examples of org.eclipse.wst.server.core.IRuntime.loadAdapter()

      return jbsrt.isUsingDefaultJRE();
    }
   
    protected IVMInstall getStoredJRE(IRuntime rt) {
      IRuntime r = getRuntimeFromTaskModel();
      IKarafRuntime jbsrt = (IKarafRuntime)r.loadAdapter(IKarafRuntime.class, null);
      return jbsrt.isUsingDefaultJRE() ? null : jbsrt.getVM();
    }

    public List<IVMInstall> getValidJREs() {
      IRuntime r = getRuntimeFromTaskModel();
View Full Code Here

Examples of org.eclipse.wst.server.core.IRuntime.loadAdapter()

      return jbsrt.isUsingDefaultJRE() ? null : jbsrt.getVM();
    }

    public List<IVMInstall> getValidJREs() {
      IRuntime r = getRuntimeFromTaskModel();
      IKarafRuntime jbsrt = (IKarafRuntime)r.loadAdapter(IKarafRuntime.class, null);
      return Arrays.asList(jbsrt.getValidJREs());
    }
    @Override
    protected IRuntime getRuntimeFromTaskModel() {
      return (IRuntime) getTaskModel().getObject(TaskModel.TASK_RUNTIME);
View Full Code Here

Examples of org.eclipse.wst.server.core.IRuntime.loadAdapter()

    protected IRuntime getRuntimeFromTaskModel() {
      return (IRuntime) getTaskModel().getObject(TaskModel.TASK_RUNTIME);
    }
    protected boolean isUsingDefaultJRE() {
      IRuntime r = getRuntimeFromTaskModel();
      IKarafRuntime jbsrt = (IKarafRuntime)r.loadAdapter(IKarafRuntime.class, null);
      return jbsrt.isUsingDefaultJRE();
    }
   
    protected IVMInstall getStoredJRE() {
      IRuntime r = getRuntimeFromTaskModel();
View Full Code Here

Examples of org.eclipse.wst.server.core.IRuntime.loadAdapter()

      return jbsrt.isUsingDefaultJRE();
    }
   
    protected IVMInstall getStoredJRE() {
      IRuntime r = getRuntimeFromTaskModel();
      IKarafRuntime jbsrt = (IKarafRuntime)r.loadAdapter(IKarafRuntime.class, null);
      return ((KarafRuntimeDelegate)jbsrt).getHardVM();
    }
    @Override
    public IExecutionEnvironment getMinimumExecutionEnvironment() {
      IRuntime r = getRuntimeFromTaskModel();
View Full Code Here

Examples of org.eclipse.wst.server.core.IRuntime.loadAdapter()

      return ((KarafRuntimeDelegate)jbsrt).getHardVM();
    }
    @Override
    public IExecutionEnvironment getMinimumExecutionEnvironment() {
      IRuntime r = getRuntimeFromTaskModel();
      IKarafRuntime jbsrt = (IKarafRuntime)r.loadAdapter(IKarafRuntime.class, null);
      return jbsrt.getMinimumExecutionEnvironment();
    }
    @Override
    public IExecutionEnvironment getStoredExecutionEnvironment() {
      IRuntime r = getRuntimeFromTaskModel();
View Full Code Here

Examples of org.eclipse.wst.server.core.IRuntime.loadAdapter()

      return jbsrt.getMinimumExecutionEnvironment();
    }
    @Override
    public IExecutionEnvironment getStoredExecutionEnvironment() {
      IRuntime r = getRuntimeFromTaskModel();
      IKarafRuntime jbsrt = (IKarafRuntime)r.loadAdapter(IKarafRuntime.class, null);
      return jbsrt.getExecutionEnvironment();
    }
  }
 
  protected AbstractJREComposite createJRECompositeWidget(Composite main) {
View Full Code Here

Examples of org.eclipse.wst.server.core.IRuntime.loadAdapter()

        model.setPassword(karafServerWorkingCopy.getPassword());
      }
      boolean readFromConfFile = false;
      IRuntime runtime = getRuntimeWorkingCopy();
      if (runtime != null){
        IKarafRuntime karafRuntime = (IKarafRuntime)runtime.loadAdapter(IKarafRuntime.class, null);
        if (karafRuntime != null ) {
          if("".equals(model.getKarafInstallDir()) || model.getKarafInstallDir() == null){
            model.setKarafInstallDir(karafRuntime.getLocation().toOSString());
          }
        }
View Full Code Here

Examples of org.eclipse.wst.server.core.IRuntimeWorkingCopy.loadAdapter()

public class OpenEJBRuntimeClasspathProviderDelegate extends RuntimeClasspathProviderDelegate {

  protected OpenEJBRuntimeDelegate getRuntimeDelegate(IRuntime runtime) {
    IRuntimeWorkingCopy wc = runtime.createWorkingCopy();
   
    return (OpenEJBRuntimeDelegate) wc.loadAdapter(OpenEJBRuntimeDelegate.class, new NullProgressMonitor());
  }
 
  @Override
  public IClasspathEntry[] resolveClasspathContainer(IProject project, IRuntime runtime) {
    return resolveClasspathContainer(runtime);
View Full Code Here

Examples of org.eclipse.wst.server.core.IRuntimeWorkingCopy.loadAdapter()

    IRuntimeWorkingCopy wc = (IRuntimeWorkingCopy) getTaskModel().getObject(TaskModel.TASK_RUNTIME);
    if (wc == null) {
      return null;
    }
   
    return (OpenEJBRuntimeDelegate) wc.loadAdapter(OpenEJBRuntimeDelegate.class, new NullProgressMonitor());
  }
 
  private void validate() {
    File installationDirectory = getRuntimeDelegate().getRuntimeWorkingCopy().getLocation().toFile();
    if (! installationDirectory.exists()) {
View Full Code Here

Examples of org.eclipse.wst.server.core.IRuntimeWorkingCopy.loadAdapter()

 
  private GeronimoRuntimeDelegate getRuntimeDelegate() {
    IRuntimeWorkingCopy wc = (IRuntimeWorkingCopy) getTaskModel().getObject(TaskModel.TASK_RUNTIME);
    if (wc == null)
      return null;
    return (GeronimoRuntimeDelegate) wc.loadAdapter(GeronimoRuntimeDelegate.class, new NullProgressMonitor());
  }
 
  protected String getRuntimeName() {
    if (getRuntimeDelegate() != null
        && getRuntimeDelegate().getRuntime() != null)
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.