Package at.bestsolution.efxclipse.tooling.rrobot.model.task

Examples of at.bestsolution.efxclipse.tooling.rrobot.model.task.RobotTask


   */
  @Override
  protected T doSwitch(int classifierID, EObject theEObject) {
    switch (classifierID) {
      case TaskPackage.ROBOT_TASK: {
        RobotTask robotTask = (RobotTask)theEObject;
        T result = caseRobotTask(robotTask);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case TaskPackage.PROJECT: {
View Full Code Here


    BundleContext ctx = b.getBundleContext();
    ServiceReference<RRobot> ref = ctx.getServiceReference(RRobot.class);
    final RRobot r = ctx.getService(ref);

    FileLoader loader = FileLoader.createLoader();
    final RobotTask task = loader.loadTask(URI.createPlatformPluginURI("/at.bestsolution.efxclipse.tooling.pde.ui/generator-tasks/osgi-bundle.rtask", true));

    final Map<String,Object> additionalData = new HashMap<>();
    additionalData.put("Maven_GroupId", data.getTychoGroupId());
    additionalData.put("Maven_RelengArtifactId", data.getTychoRelengArtifactId());
    additionalData.put("Maven_RelengArtifactVersion", data.getTychoRelengArtifactVersion());
View Full Code Here

   
    URI uri = URI.createPlatformResourceURI(f.getProject().getName()+"/"+f.getProjectRelativePath().toString(),true);
    ResourceSet set = resourceSetProvider.get();
    Resource resource = set.getResource(uri, true);
   
    final RobotTask task = (RobotTask) resource.getContents().get(0);
    WorkspaceModifyOperation w = new WorkspaceModifyOperation() {
     
      @Override
      protected void execute(IProgressMonitor monitor) throws CoreException, InvocationTargetException, InterruptedException {
        Map<String,Object> map = new HashMap<String, Object>();
View Full Code Here

    BundleContext ctx = b.getBundleContext();
    ServiceReference<RRobot> ref = ctx.getServiceReference(RRobot.class);
    final RRobot r = ctx.getService(ref);

    FileLoader loader = FileLoader.createLoader();
    final RobotTask task = loader.loadTask(URI.createPlatformPluginURI("/at.bestsolution.efxclipse.tooling.pde.ui/generator-tasks/osgi-app.rtask", true));

    final Map<String,Object> additionalData = new HashMap<>();
    additionalData.put("Maven_GroupId", data.getSymbolicname());
    additionalData.put("BundleProject_bundleVendor", data.getVendor());
    additionalData.put("BundleProject_productName", data.getProductName());
View Full Code Here

    }
    return null;
  }
 
  public InputStream generate(final DynamicFile file, final Map<String,Object> data) {
    RobotTask _findRoot = this.findRoot(file);
    final RobotTask robotTask = ((RobotTask) _findRoot);
    EList<Project> _projects = robotTask.getProjects();
    final Function1<Project,Boolean> _function = new Function1<Project,Boolean>() {
        public Boolean apply(final Project e) {
          return Boolean.valueOf((e instanceof FeatureProject));
        }
      };
    Project _findFirst = IterableExtensions.<Project>findFirst(_projects, _function);
    final FeatureProject plugin = ((FeatureProject) _findFirst);
    EList<Project> _projects_1 = robotTask.getProjects();
    final Function1<Project,Boolean> _function_1 = new Function1<Project,Boolean>() {
        public Boolean apply(final Project e) {
          return Boolean.valueOf((e instanceof BundleProject));
        }
      };
View Full Code Here

    BundleContext ctx = b.getBundleContext();
    ServiceReference<RRobot> ref = ctx.getServiceReference(RRobot.class);
    final RRobot r = ctx.getService(ref);

    FileLoader loader = FileLoader.createLoader();
    final RobotTask task = loader.loadTask(URI.createPlatformPluginURI("/at.bestsolution.efxclipse.tooling.pde.e4/generator-tasks/mediaSample.rtask", true));

    final Map<String,Object> additionalData = new HashMap<>();
    additionalData.put("BundleProject_projectName", data.getSymbolicname());
    additionalData.put("BundleProject_bundleId", data.getSymbolicname());
    additionalData.put("BundleProject_bundleVendor", data.getVendor() != null ? data.getVendor() : "");
View Full Code Here

    BundleContext ctx = b.getBundleContext();
    ServiceReference<RRobot> ref = ctx.getServiceReference(RRobot.class);
    final RRobot r = ctx.getService(ref);

    FileLoader loader = FileLoader.createLoader();
    final RobotTask task = loader.loadTask(URI.createPlatformPluginURI("/at.bestsolution.efxclipse.tooling.pde.e4/generator-tasks/e4App.rtask", true));

    final Map<String,Object> additionalData = new HashMap<>();
    additionalData.put("Maven_GroupId", data.getSymbolicname());
    additionalData.put("BundleProject_bundleVendor", data.getVendor());
    additionalData.put("BundleProject_productName", data.getProductName());
View Full Code Here

    }
    return null;
  }
 
  public InputStream generate(final DynamicFile file, final Map<String,Object> data) {
    RobotTask _findRoot = this.findRoot(file);
    final RobotTask robotTask = ((RobotTask) _findRoot);
    E4LaunchDef _e4LaunchDef = new E4LaunchDef();
    final E4LaunchDef launchDef = _e4LaunchDef;
    EList<Project> _projects = robotTask.getProjects();
    final Function1<Project,Boolean> _function = new Function1<Project,Boolean>() {
        public Boolean apply(final Project e) {
          return Boolean.valueOf((e instanceof FeatureProject));
        }
      };
    Project _findFirst = IterableExtensions.<Project>findFirst(_projects, _function);
    final FeatureProject plugin = ((FeatureProject) _findFirst);
    EList<Project> _projects_1 = robotTask.getProjects();
    final Function1<Project,Boolean> _function_1 = new Function1<Project,Boolean>() {
        public Boolean apply(final Project e) {
          return Boolean.valueOf((e instanceof BundleProject));
        }
      };
View Full Code Here

TOP

Related Classes of at.bestsolution.efxclipse.tooling.rrobot.model.task.RobotTask

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.