Package org.eclipse.wst.server.core

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


    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

 
  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

    private GeronimoRuntimeDelegate getRuntimeDelegate() {
        IRuntimeWorkingCopy wc = (IRuntimeWorkingCopy) getTaskModel().getObject(TaskModel.TASK_RUNTIME);
        if (wc == null)
            return null;
        return (GeronimoRuntimeDelegate) wc.loadAdapter(GeronimoRuntimeDelegate.class, new NullProgressMonitor());
    }

    private String createName() {
        RuntimeDelegate dl = getRuntimeDelegate();
        IRuntimeType runtimeType = dl.getRuntime().getRuntimeType();
View Full Code Here

  protected void populateModel() {
    IRuntimeWorkingCopy workingCopy = getRuntimeWorkingCopy();
    if (workingCopy != null) {
      // workCopy will be instance of ServerDelegate classs.
      // We need to get the params, so IFuseESBRuntime will be enough.
      IKarafRuntime karafRuntime = (IKarafRuntime) workingCopy
          .loadAdapter(IKarafRuntime.class, new NullProgressMonitor());
      if (karafRuntime != null) {
        IPath loc = karafRuntime.getLocation();
        model.setKarafInstallDir(loc == null ? null : loc.toOSString());
      }
View Full Code Here

  private void updateRuntime() {
    IRuntimeWorkingCopy workingCopy = getRuntimeWorkingCopy();
    if (workingCopy != null) {
      // workCopy will be instance of ServerDelegate classs.
      // We need to get the params, so IKarafRuntime will be enough.
      IKarafRuntimeWorkingCopy karafRuntimeWorkingCopy = (IKarafRuntimeWorkingCopy) workingCopy
          .loadAdapter(IKarafRuntimeWorkingCopy.class,
              new NullProgressMonitor());
      if (karafRuntimeWorkingCopy != null) {
        String installDir = model.getKarafInstallDir();
        IPath path = new Path(installDir);
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.