p2

Tool for managing/hosting own p2 repositories?

风格不统一 提交于 2019-11-28 17:47:06
Our company uses Maven. We use the Nexus repository manager in order to store our snapshots and releases. Currently, we are developing a product based on Eclipse. We use Tycho to do that. The problem is the following: In our Eclipse-based product we have many features. Our idea is build each feature (or group of features) separately and put them in internal p2 repositories. When one features requires another feature, we point the target platform to necessary internal p2 repository. Currently, we build application with Tycho. We make our features "deployable", so Tycho produces a P2 site in

数据结构学习第十天

不羁的心 提交于 2019-11-28 13:53:12
15:01:58 2019-08-25 学习 22:43:01 2019-08-25 看的太慢了。。。马上要开学了 1 #include<stdio.h> 2 #include<malloc.h> 3 typedef struct Node* PtrToNode; 4 struct Node 5 { 6 int Data; 7 PtrToNode Pred; //前驱 8 PtrToNode Succ; //后继 9 }; 10 PtrToNode Header;//头哨兵 11 PtrToNode Trailer;//尾哨兵 //前面写的双向链表只给 头部加了一个表头(哑节点) 现在给尾部也加一个哑节点 12 int size; //规模 13 14 void Init(); //初始化 15 PtrToNode InsertPred(int Element); //前插入 16 PtrToNode InsertSucc(int Element); //后插入 17 int Size(); //返回列表当前规模(节点总数) 18 PtrToNode First() { return Header->Succ; } //返回首节点位置 19 PtrToNode Last() { return Trailer->Pred;} //返回末节点位置 20 PtrToNode

小和问题和逆序对问题

混江龙づ霸主 提交于 2019-11-28 06:16:04
思路:使用归并排序,每一轮归并后都局部有序,可以利用这个,减少时间复杂度 小和问题 关键代码: public static int mergeSort(int[] arr, int left, int right) { if (left == right) { return 0; } int mid = ((right - left) >> 1) + left; return mergeSort(arr, left, mid) + mergeSort(arr, mid + 1, right) + merge(arr, left, mid, right); } public static int merge(int[] arr, int left, int mid, int right) { int[] help = new int[right - left + 1]; int i = 0; int p1 = left; int p2 = mid + 1; int res = 0; //每经过一轮归并,数据从小到大排序。在每一轮归并中,计算左边比右边小的数的总和 while (p1 <= mid && p2 <= right) { if (arr[p1] < arr[p2]) { res += arr[p1] * (right - p2 + 1); } help[i++] = arr

Adding update site URLs to find third-party dependencies during install

时光总嘲笑我的痴心妄想 提交于 2019-11-27 21:47:27
问题 I have an Eclipse feature which when installing on Helios requires an additional update-site URL to be present in order to find certain dependencies. Is it possible to automatically add such an URL so that the user doesn't have to do it manually? Or is it considered bad practice to do so? I've tried to add addRepository action to the p2.inf file of the feature, but it is not executed. 回答1: The only way I have found is to add repository references into content.jar/content.xml by hand. For

Tool for managing/hosting own p2 repositories?

依然范特西╮ 提交于 2019-11-27 20:11:45
问题 Our company uses Maven. We use the Nexus repository manager in order to store our snapshots and releases. Currently, we are developing a product based on Eclipse. We use Tycho to do that. The problem is the following: In our Eclipse-based product we have many features. Our idea is build each feature (or group of features) separately and put them in internal p2 repositories. When one features requires another feature, we point the target platform to necessary internal p2 repository. Currently,

How modify Eclipse locations to prevent write to user.home directory?

落爺英雄遲暮 提交于 2019-11-27 17:48:28
问题 I have tried all different settings, and yes, I m aware of eclipse.ini and config.ini and also tried different command line arguments! Nothing solved my problem! All attempts and still each time I run eclipse.exe it wants write to my userhome i.e. the .eclipse and .p2 folders. I have tried with all settings bellow among others, in different combinations too: -Dosgi.user.area=file:/c:/eclipse-conf/e46 -Dosgi.configuration.area=file:/c:/eclipse-conf/e46 -Dosgi.instance.area=file:/c:/eclipse

Combine/aggregate eclipse p2 repositories / extendable p2 repository

时光毁灭记忆、已成空白 提交于 2019-11-27 11:45:50
问题 With maven/tycho build for Nodeclipse Eclipse plugin there is new p2 repository every release. Release is done on Bintray that does not allow to update files. So every version goes in its folder. BaseFolder BaseFolder/VersionFolder1 BaseFolder/VersionFolder2 BaseFolder/VersionFolder3 Is it possible to have BaseFolder prepared once as extendable p2 repository, and VersionFolderN added later? So that there would be only one URL for updates and Eclipse platform could discover updates in the

Eclipse doesn't load plugins in the dropins folder

纵饮孤独 提交于 2019-11-27 11:41:28
I just downloaded Eclipse SDK 3.5.1 and want to install some add ons such as GEF, EMF, etc. I downloaded all the zip files for everything I needed and decided to install them in the dropins folder. I read http://wiki.eclipse.org/Equinox_p2_Getting_Started and structured my dropin folder as specified: eclipse/ dropins/ emf/ eclipse/ features/ plugins/ gef/ eclipse/ features/ plugins/ ... etc ... When I start up Eclipse it does not recognize any of the features or plugins I have put into the structure above. Any ideas? I suggest that you try to install those features via the update manager. EMF

java-深浅拷贝

岁酱吖の 提交于 2019-11-26 21:21:00
浅拷贝 浅拷贝是按位拷贝对象,它会创建一个新对象,这个对象有着原始对象属性值的一份精确拷贝。如果属性是基本类型,拷贝的就是基本类型的值;如果属性是内存地址(引用类型),拷贝的就是内存地址 ,因此如果其中一个对象改变了这个地址,就会影响到另一个对象。 例如: /* 拷贝构造方法实现浅拷贝 */ public class CopyConstructor { public static void main(String[] args) { Age a=new Age(20); Person p1=new Person(a,"摇头耶稣"); Person p2=new Person(p1); System.out.println("p1是"+p1); System.out.println("p2是"+p2); //修改p1的各属性值,观察p2的各属性值是否跟随变化 p1.setName("小傻瓜"); a.setAge(99); System.out.println("修改后的p1是"+p1); System.out.println("修改后的p2是"+p2); } } class Person{ //两个属性值:分别代表值传递和引用传递 private Age age; private String name; public Person(Age age,String name) {