Package org.eclipse.wst.server.core

Examples of org.eclipse.wst.server.core.IRuntime


        addDownloadServerSection(composite);
    }

    protected void addDownloadServerSection(final Composite composite) {
    FormText downloadServerText = new FormText(composite, SWT.WRAP);
    IRuntime runtime = getRuntimeDelegate().getRuntime();
    String runtimeName = runtime.getRuntimeType().getName();
    String text = "<form>"
        + Messages.bind(Messages.DownloadServerText,
            Messages.DownloadServerURL, runtimeName) + "</form>";
    downloadServerText.setText(text, true, true);
    GridData data = new GridData();
View Full Code Here


        return status == null || status.getSeverity() != IStatus.ERROR;
    }

    protected void validate() {

        IRuntime runtime = getRuntimeDelegate().getRuntime();

        String runtimeName = runtime.getRuntimeType().getName();

        IWizardHandle wizard = getWizard();

        if (runtime == null) {
            wizard.setMessage("", IMessageProvider.ERROR);
View Full Code Here

      if (input instanceof IFileEditorInput) {
        IProject project = ((IFileEditorInput) input).getFile().getProject();
        try {
          IFacetedProject fp = ProjectFacetsManager.create(project);
          if (fp == null) return null;
          IRuntime runtime = FacetUtil.getRuntime(fp.getPrimaryRuntime());
          if (runtime == null) return null;
          String version = runtime.getRuntimeType().getVersion();
          currentLoader = (IGeronimoFormContentLoader) loaders.get(version);
        } catch (CoreException e) {
                    Trace.tracePoint("CoreException", "SharedDeploymentPlanEditor.getLoader");
          e.printStackTrace();
        } catch (IllegalArgumentException ie) {
View Full Code Here

    return (ISourceContainer[])allContainers.toArray(new ISourceContainer[allContainers.size()]);
  }
 
  private ISourceContainer[] processServer(IServer server) {
    IRuntime runtime = server.getRuntime();
    IGeronimoRuntime gRuntime = (IGeronimoRuntime) runtime.getAdapter(IGeronimoRuntime.class);
    if (gRuntime != null) {
      IPath sourcePath = gRuntime.getRuntimeSourceLocation();
      if (sourcePath != null) {
        File file = sourcePath.toFile();
        if (file.isFile()) {
View Full Code Here

   * @see org.fusesource.ide.server.karaf.ui.runtime.v2x.KarafRuntimeFragment#updateWizardHandle(org.eclipse.swt.widgets.Composite)
   */
  @Override
  protected void updateWizardHandle(Composite parent) {
    // make modifications to parent
    IRuntime r = getRuntimeFromTaskModel();
    handle.setTitle(Messages.ServiceMixRuntimeComposite_wizard_tite);
    String descript = r.getRuntimeType().getDescription();
    handle.setDescription(descript);
    handle.setImageDescriptor(getImageDescriptor());
    initiateHelp(parent);
  }
View Full Code Here

*/
public class KarafRuntimeFragment extends RuntimeWizardFragment {

  protected void updateWizardHandle(Composite parent) {
    // make modifications to parent
    IRuntime r = getRuntimeFromTaskModel();
    handle.setTitle(Messages.AbstractKarafRuntimeComposite_wizard_tite);
    String descript = r.getRuntimeType().getDescription();
    handle.setDescription(descript);
    handle.setImageDescriptor(getImageDescriptor());
    initiateHelp(parent);
  }
View Full Code Here

    String homeDir = homeDirComposite.getHomeDirectory();
    File loc = new File(homeDir);
    String serverId = new ServerBeanLoader(loc).getServerAdapterId();
    String rtId = serverId == null ? null :
        ServerCore.findServerType(serverId).getRuntimeType().getId();
    IRuntime adapterRt = getRuntimeFromTaskModel();
    String adapterRuntimeId = adapterRt.getRuntimeType().getId();
    if( !adapterRuntimeId.equals(rtId)) {
      return NLS.bind("Incorrect Version Error{0} {1}",
          adapterRt.getRuntimeType().getVersion(),
          getVersionString(loc));
    }
    return null;
  }
View Full Code Here

    public KarafJREComposite(Composite parent, int style, TaskModel tm) {
      super(parent, style, tm);
    }   
    protected boolean isUsingDefaultJRE(IRuntime rt) {
      IRuntime r = getRuntimeFromTaskModel();
      IKarafRuntime jbsrt = (IKarafRuntime)r.loadAdapter(IKarafRuntime.class, null);
      return jbsrt.isUsingDefaultJRE();
    }
View Full Code Here

      IKarafRuntime jbsrt = (IKarafRuntime)r.loadAdapter(IKarafRuntime.class, null);
      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();
    }
View Full Code Here

      IKarafRuntime jbsrt = (IKarafRuntime)r.loadAdapter(IKarafRuntime.class, null);
      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());
    }
View Full Code Here

TOP

Related Classes of org.eclipse.wst.server.core.IRuntime

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.