Package at.bestsolution.efxclipse.tooling.rrobot

Examples of at.bestsolution.efxclipse.tooling.rrobot.RRobot


  @Override
  public boolean performFinish() {
    Bundle b = FrameworkUtil.getBundle(getClass());
    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());
    additionalData.put("Maven_RelengArtifactPath", data.getTychoRelengArtifactPath());
    additionalData.put("BundleProject_bundleId",data.getSymbolicname());
    additionalData.put("BundleProject_projectName",data.getSymbolicname());
    additionalData.put("BundleProject_bundleName",data.getBundleDescription());
    additionalData.put("BundleProject_bundleVendor", data.getVendor());
    additionalData.put("BundleProject_bundleVersion", data.getVersion());
    additionalData.put("BundleProject_EE", data.getEEnv());
    additionalData.put("TychoIntegration", data.isTychoIntegration());
   
    WorkspaceModifyOperation w = new WorkspaceModifyOperation() {
     
      @Override
      protected void execute(IProgressMonitor monitor) throws CoreException, InvocationTargetException, InterruptedException {
        r.executeTask(monitor, task, additionalData);
      }
    };
   
    try {
      getContainer().run(true, true,w);
View Full Code Here


  @Override
  public Object execute(ExecutionEvent event) throws ExecutionException {
    Bundle b = FrameworkUtil.getBundle(getClass());
    BundleContext ctx = b.getBundleContext();
    ServiceReference<RRobot> ref = ctx.getServiceReference(RRobot.class);
    final RRobot r = ctx.getService(ref);

    IStructuredSelection ss = (IStructuredSelection)HandlerUtil.getActiveMenuSelection(event);
    IFile f = (IFile) ss.getFirstElement();
   
    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>();
        r.executeTask(monitor, task, map);
      }
    };
   
    try {
      PlatformUI.getWorkbench().getProgressService().run(true, false, w);
View Full Code Here

  @Override
  public boolean performFinish() {
    Bundle b = FrameworkUtil.getBundle(getClass());
    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());
    additionalData.put("BundleProject_bundleVersion", data.getVersion());
    additionalData.put("BundleProject_EE", data.getEEnv());
    additionalData.put("TychoIntegration", data.isTychoIntegration());
    additionalData.put("NativeExport", data.isNativeExport());
    additionalData.put("EclipseDI", data.isDiApp());
   
    WorkspaceModifyOperation w = new WorkspaceModifyOperation() {
     
      @Override
      protected void execute(IProgressMonitor monitor) throws CoreException, InvocationTargetException, InterruptedException {
        r.executeTask(monitor, task, additionalData);
      }
    };
   
    try {
      getContainer().run(true, true,w);
View Full Code Here

  @Override
  public boolean performFinish() {
    Bundle b = FrameworkUtil.getBundle(getClass());
    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() : "");
//    additionalData.put("BundleProject_bundleVersion", data.getVersion());
    additionalData.put("BundleProject_EE", data.getEEnv());
   
    WorkspaceModifyOperation w = new WorkspaceModifyOperation() {
     
      @Override
      protected void execute(IProgressMonitor monitor) throws CoreException, InvocationTargetException, InterruptedException {
        r.executeTask(monitor, task, additionalData);
      }
    };
   
    try {
      getContainer().run(true, true,w);
View Full Code Here

  @Override
  public boolean performFinish() {
    Bundle b = FrameworkUtil.getBundle(getClass());
    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());
    additionalData.put("BundleProject_bundleVersion", data.getVersion());
    additionalData.put("BundleProject_EE", data.getEEnv());
    additionalData.put("TychoIntegration", data.isTychoIntegration());
    additionalData.put("NativeExport", data.isNativeExport());
   
    WorkspaceModifyOperation w = new WorkspaceModifyOperation() {
     
      @Override
      protected void execute(IProgressMonitor monitor) throws CoreException, InvocationTargetException, InterruptedException {
        r.executeTask(monitor, task, additionalData);
      }
    };
   
    try {
      getContainer().run(true, true,w);
View Full Code Here

TOP

Related Classes of at.bestsolution.efxclipse.tooling.rrobot.RRobot

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.