Examples of IRuntimeType


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

        if( type.equals(Fabric8BeanProvider.FABRIC8_1x)) {
          String serverType = l.getServerAdapterId();
          if( serverType != null ) {
            IServerType t = ServerCore.findServerType(serverType);
            if( t != null ) {
              IRuntimeType rtt = t.getRuntimeType();
              try {
                IRuntimeWorkingCopy runtime = rtt.createRuntime(rtt.getId(), monitor);
                // commented out the naming of the runtime as it seems to break server to runtime links
                runtime.setName(dir.getName());
                runtime.setLocation(new Path(absolutePath));
                IStatus status = runtime.validate(monitor);
                if (status == null || status.getSeverity() != IStatus.ERROR) {
View Full Code Here

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

    if (loc == null || !loc.isDirectory() || serverTypeId == null)
      return;
    IServerType serverType = ServerCore.findServerType(serverTypeId);
    if( serverType == null )
      return;
    IRuntimeType rtType = serverType.getRuntimeType();
    if( rtType == null )
      return;
   
    try {
      IPath locPath = new Path(loc.getAbsolutePath());
      IRuntimeWorkingCopy rt = rtType.createRuntime(runtimeName, new NullProgressMonitor());
      rt.setLocation(locPath);
      rt.setName(runtimeName);
      // We don't need to set a vm, it can use default
      rt.save(true, new NullProgressMonitor());
      // TODO create the server also
View Full Code Here

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

    if (loc == null || !loc.isDirectory() || serverTypeId == null)
      return;
    IServerType serverType = ServerCore.findServerType(serverTypeId);
    if( serverType == null )
      return;
    IRuntimeType rtType = serverType.getRuntimeType();
    if( rtType == null )
      return;
   
    try {
      IPath locPath = new Path(loc.getAbsolutePath());
      IRuntimeWorkingCopy rt = rtType.createRuntime(runtimeName, new NullProgressMonitor());
      rt.setLocation(locPath);
      rt.setName(runtimeName);
      // We don't need to set a vm, it can use default
      rt.save(true, new NullProgressMonitor());
     
View Full Code Here

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

          type.equals(KarafBeanProvider.KARAF_3x) ) {
          String serverType = l.getServerAdapterId();
          if( serverType != null ) {
            IServerType t = ServerCore.findServerType(serverType);
            if( t != null ) {
              IRuntimeType rtt = t.getRuntimeType();
              try {
                IRuntimeWorkingCopy runtime = rtt.createRuntime(rtt.getId(), monitor);
                // commented out the naming of the runtime as it seems to break server to runtime links
                runtime.setName(dir.getName());
                runtime.setLocation(new Path(absolutePath));
                IStatus status = runtime.validate(monitor);
                if (status == null || status.getSeverity() != IStatus.ERROR) {
View Full Code Here

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

        if( type.equals(FuseBeanProvider.FUSE_6x)) {
          String serverType = l.getServerAdapterId();
          if( serverType != null ) {
            IServerType t = ServerCore.findServerType(serverType);
            if( t != null ) {
              IRuntimeType rtt = t.getRuntimeType();
              try {
                IRuntimeWorkingCopy runtime = rtt.createRuntime(rtt.getId(), monitor);
                // commented out the naming of the runtime as it seems to break server to runtime links
                runtime.setName(dir.getName());
                runtime.setLocation(new Path(absolutePath));
                IStatus status = runtime.validate(monitor);
                if (status == null || status.getSeverity() != IStatus.ERROR) {
View Full Code Here

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

    if (loc == null || !loc.isDirectory() || serverTypeId == null)
      return;
    IServerType serverType = ServerCore.findServerType(serverTypeId);
    if( serverType == null )
      return;
    IRuntimeType rtType = serverType.getRuntimeType();
    if( rtType == null )
      return;
   
    try {
      IPath locPath = new Path(loc.getAbsolutePath());
      IRuntimeWorkingCopy rt = rtType.createRuntime(runtimeName, new NullProgressMonitor());
      rt.setLocation(locPath);
      rt.setName(runtimeName);
      // We don't need to set a vm, it can use default
      rt.save(true, new NullProgressMonitor());
      // TODO create the server also
View Full Code Here

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

          type.equals(ServiceMixBeanProvider.SMX_5x) ) {
          String serverType = l.getServerAdapterId();
          if( serverType != null ) {
            IServerType t = ServerCore.findServerType(serverType);
            if( t != null ) {
              IRuntimeType rtt = t.getRuntimeType();
              try {
                IRuntimeWorkingCopy runtime = rtt.createRuntime(rtt.getId(), monitor);
                // commented out the naming of the runtime as it seems to break server to runtime links
                runtime.setName(dir.getName());
                runtime.setLocation(new Path(absolutePath));
                IStatus status = runtime.validate(monitor);
                if (status == null || status.getSeverity() != IStatus.ERROR) {
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.