From 534a425eef6e54fa59be071809dbfeac3139e2fb Mon Sep 17 00:00:00 2001 From: Bruno Sinou Date: Fri, 14 Oct 2011 21:11:15 +0000 Subject: [PATCH] First version of dist UI git-svn-id: https://svn.argeo.org/slc/trunk@4844 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc --- demo/slc_demo_rap.properties | 4 +- .../META-INF/MANIFEST.MF | 1 - .../META-INF/spring/views.xml | 25 +- .../icons/artifactBase.gif | Bin 0 -> 709 bytes .../icons/artifactVersionBase.gif | Bin 0 -> 335 bytes .../icons/file.gif | Bin 0 -> 577 bytes .../icons/packageBrowser.gif | Bin 0 -> 145 bytes .../icons/package_obj.gif | Bin 0 -> 227 bytes .../icons/packages.gif | Bin 0 -> 360 bytes .../icons/refresh.png | Bin 0 -> 465 bytes .../icons/search.gif | Bin 0 -> 347 bytes .../icons/searchForm.gif | Bin 0 -> 598 bytes .../icons/search_decl_obj.gif | Bin 0 -> 361 bytes .../icons/showSize.gif | Bin 0 -> 357 bytes .../icons/sinfocenter_obj.gif | Bin 0 -> 373 bytes .../org.argeo.slc.client.ui.dist/plugin.xml | 56 ++- .../org.argeo.slc.client.ui.dist/pom.xml | 4 +- .../slc/client/ui/dist/DistConstants.java | 8 +- .../argeo/slc/client/ui/dist/DistImages.java | 13 + .../argeo/slc/client/ui/dist/DistLabels.java | 11 + .../argeo/slc/client/ui/dist/DistPlugin.java | 15 +- .../dist/commands/RefreshArtifactBrowser.java | 21 ++ .../ui/dist/commands/ShowSizeColumn.java | 35 ++ .../ui/dist/editors/ArtifactDetailsPage.java | 355 ++++++++++++++++++ .../dist/editors/GenericArtifactEditor.java | 76 ++++ .../editors/GenericArtifactEditorInput.java | 100 +++++ .../dist/providers/ArtifactLabelProvider.java | 71 ++-- .../ArtifactsTreeContentProvider.java | 37 +- .../dist/utils/ArtifactsTableConfigurer.java | 42 +-- .../client/ui/dist/utils/DistUiHelpers.java | 131 +++++++ .../utils/GenericDoubleClickListener.java | 96 +++-- .../views/AbstractQueryArtifactsView.java | 79 +++- .../ui/dist/views/ArtifactsBrowser.java | 185 ++++++++- .../ui/dist/views/QueryArtifactsForm.java | 30 +- .../ui/dist/views/QueryArtifactsText.java | 5 +- .../ui/dist/views/QueryBundlesForm.java | 62 ++- 36 files changed, 1271 insertions(+), 191 deletions(-) create mode 100644 eclipse/plugins/org.argeo.slc.client.ui.dist/icons/artifactBase.gif create mode 100644 eclipse/plugins/org.argeo.slc.client.ui.dist/icons/artifactVersionBase.gif create mode 100644 eclipse/plugins/org.argeo.slc.client.ui.dist/icons/file.gif create mode 100644 eclipse/plugins/org.argeo.slc.client.ui.dist/icons/packageBrowser.gif create mode 100644 eclipse/plugins/org.argeo.slc.client.ui.dist/icons/package_obj.gif create mode 100644 eclipse/plugins/org.argeo.slc.client.ui.dist/icons/packages.gif create mode 100644 eclipse/plugins/org.argeo.slc.client.ui.dist/icons/refresh.png create mode 100644 eclipse/plugins/org.argeo.slc.client.ui.dist/icons/search.gif create mode 100644 eclipse/plugins/org.argeo.slc.client.ui.dist/icons/searchForm.gif create mode 100644 eclipse/plugins/org.argeo.slc.client.ui.dist/icons/search_decl_obj.gif create mode 100644 eclipse/plugins/org.argeo.slc.client.ui.dist/icons/showSize.gif create mode 100644 eclipse/plugins/org.argeo.slc.client.ui.dist/icons/sinfocenter_obj.gif create mode 100644 eclipse/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/DistImages.java create mode 100644 eclipse/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/DistLabels.java create mode 100644 eclipse/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/commands/RefreshArtifactBrowser.java create mode 100644 eclipse/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/commands/ShowSizeColumn.java create mode 100644 eclipse/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/editors/ArtifactDetailsPage.java create mode 100644 eclipse/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/editors/GenericArtifactEditor.java create mode 100644 eclipse/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/editors/GenericArtifactEditorInput.java create mode 100644 eclipse/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/utils/DistUiHelpers.java diff --git a/demo/slc_demo_rap.properties b/demo/slc_demo_rap.properties index 4affb7484..17695cdf1 100644 --- a/demo/slc_demo_rap.properties +++ b/demo/slc_demo_rap.properties @@ -33,8 +33,8 @@ org.argeo.slc.demo.basic,\ #slc.executionModules=org.argeo.infra.slc.rpmfactory,\ #org.argeo.elgis.rpmfactory,\ -org.argeo.security.ui.initialPerspective=org.argeo.slc.client.ui.slcExecutionPerspective -#org.argeo.security.ui.initialPerspective=org.argeo.slc.client.ui.dist.distributionPerspective +#org.argeo.security.ui.initialPerspective=org.argeo.slc.client.ui.slcExecutionPerspective +org.argeo.security.ui.initialPerspective=org.argeo.slc.client.ui.dist.distributionPerspective # JCR #argeo.node.repo.home=data/node/repo diff --git a/eclipse/plugins/org.argeo.slc.client.ui.dist/META-INF/MANIFEST.MF b/eclipse/plugins/org.argeo.slc.client.ui.dist/META-INF/MANIFEST.MF index 13fbda16b..e37df992c 100644 --- a/eclipse/plugins/org.argeo.slc.client.ui.dist/META-INF/MANIFEST.MF +++ b/eclipse/plugins/org.argeo.slc.client.ui.dist/META-INF/MANIFEST.MF @@ -29,7 +29,6 @@ Import-Package: aQute.lib.osgi;resolution:=optional, org.argeo.jcr, org.argeo.jcr.security, org.argeo.jcr.spring, - org.argeo.jcr.ui.explorer.utils, org.argeo.slc.jcr, org.argeo.slc.repo, org.eclipse.ui.forms, diff --git a/eclipse/plugins/org.argeo.slc.client.ui.dist/META-INF/spring/views.xml b/eclipse/plugins/org.argeo.slc.client.ui.dist/META-INF/spring/views.xml index cd31b7bb6..5b93dc562 100644 --- a/eclipse/plugins/org.argeo.slc.client.ui.dist/META-INF/spring/views.xml +++ b/eclipse/plugins/org.argeo.slc.client.ui.dist/META-INF/spring/views.xml @@ -15,22 +15,31 @@ + + + slc:artifactVersion.jcr:uuid + slc:artifactVersion.slc:groupId + slc:artifactVersion.slc:artifactId + slc:artifactVersion.slc:artifactVersion + + + + + slc:artifactVersion.jcr:uuid + slc:bundleArtifact.slc:symbolic-name + slc:artifactVersion.slc:groupId + slc:bundleArtifact.slc:bundle-version + + + - - - - - - - - diff --git a/eclipse/plugins/org.argeo.slc.client.ui.dist/icons/artifactBase.gif b/eclipse/plugins/org.argeo.slc.client.ui.dist/icons/artifactBase.gif new file mode 100644 index 0000000000000000000000000000000000000000..fca9c53e629a7a5c07186ac1e2a1e37d8d6e88f4 GIT binary patch literal 709 zcmZ?wbhEHb6krfwxXQrrpW*-7BK;o8CDEUD?$vun5^UNelT%D!ODhQ8p|Ns9Cv;m4gSr{1@lo)hC#)JICz?S1MvA{z|s(oSd zMuVR@c9WYneP9$YYdGM(YmJzS^g*Rfx_%6-?QBabB5Wo8zRo#m$=g43U E0HF|c0{{R3 literal 0 HcmV?d00001 diff --git a/eclipse/plugins/org.argeo.slc.client.ui.dist/icons/file.gif b/eclipse/plugins/org.argeo.slc.client.ui.dist/icons/file.gif new file mode 100644 index 0000000000000000000000000000000000000000..ef302880717d12cc7dcc93a5ec9409488a788e7f GIT binary patch literal 577 zcmZ?wbhEHb6krfwc*elsm$lF@Yk_~(g0RA6@s(>r3zvl!E{&^PlisvBy=hZM)24#1 z9pw}ERe;dm+Gz(r{{H{r&;OtQ{(t!Q|KtDv-~Rvq{{R1v|Nnpf|Nra%|KI=r|M~y_ z-~a!`S@y+Q4#n9HCE1Rpxvu3o4n>&`#aWIO`R*0@-c7}JwfXjydCp}yuI;7P)2fXp zRG4;`S*&W)UD#kSyUuV%wZWWvqeU&IE7~m{9cy0KrnROYC}Z5GBYybE5lN#yT~U6Xo$Ra(3=+D1dScga+z`_1)0SMcgq@9vNlLpS40 literal 0 HcmV?d00001 diff --git a/eclipse/plugins/org.argeo.slc.client.ui.dist/icons/package_obj.gif b/eclipse/plugins/org.argeo.slc.client.ui.dist/icons/package_obj.gif new file mode 100644 index 0000000000000000000000000000000000000000..131c28da405493661e3253ef79a68bd273039295 GIT binary patch literal 227 zcmZ?wbhEHb6krfwIKsg2^W*Nf7neOfxp04z;n8NJ+xzDotkS){bH@Hst%K#-*LO_c zo~yCDQ0v_4?v)A3lSAd#C95utQCbkGxF}NT_=2WF8}WGs5taT9|NsAIzy=h5vM@3* zNHFMtBtdpEuqG&|^`&Ia(}-MpBVo@mW@+b{B25<}cFdc?!Kkoc14n0vkh1`XOwU>7 z#al8o_@;D=?hdfkdC)D9Q@O@%Lfqp;ZBt~9C*29`GMF2XzQp8akWQVjDvMC75PzEx Mi%z;upCW@b03m@=3jhEB literal 0 HcmV?d00001 diff --git a/eclipse/plugins/org.argeo.slc.client.ui.dist/icons/packages.gif b/eclipse/plugins/org.argeo.slc.client.ui.dist/icons/packages.gif new file mode 100644 index 0000000000000000000000000000000000000000..22f78af0bc43ccf1fa58cb071cf370932af4e478 GIT binary patch literal 360 zcmZ?wbhEHb6krfwxXQrr>)Wo+4>x^%y!FGqP48~6e{*x)r(3JuTwnL>@|rgnmwtJ6 z;oHm0-(FsMacs)-(+l2QSo-|*!l$Pf-&`DVV`0RD!*d=Uo%i_of(J+D-8(%0?xA^i z_RqSpd&cp0$4jdlu56ijefyM~yQW{?Iqg7&!QndV%bWTyZs@ja@2|4l zUu|`2S^K15#TALVYf|;6L};!}H`thEv?bSMNvw8(wM3zv-2eao8E^x|pDc_F3}y^E zASEC_F|f5d%)SsNE!Ds1V#iV$*N(9fJNx{t?P7}hER5n|&aT2dT=Mz?{32T68q(_8rfLeR8vdqRwJ^l7Kngsu@!j&Yl{R|<_WII6I@#)w6<7iO_9)=VxeW(0{{R2 z2iioM&sl5KBX4_u*RNf? z`oQk}`*!YKK6~ljZF_cZ+HvgAv6IJ69zSyY;J$;WPMkV&@Th0*!vFtI{{R2)-9{Q{xYzi!ojzd!Hm)rnuOPWpOf;{Cn#PZn9eTp#{=Q|#Kl_?H9)`m^Y_v_E|osjQ0xhPeU?V7 zFYefq7px@erW32aOhZI~o1e+F);Uj8NSKj>%P7ZHO;TK&kDY#h literal 0 HcmV?d00001 diff --git a/eclipse/plugins/org.argeo.slc.client.ui.dist/icons/searchForm.gif b/eclipse/plugins/org.argeo.slc.client.ui.dist/icons/searchForm.gif new file mode 100644 index 0000000000000000000000000000000000000000..cbbb3affd52226420590d0c6c6b4549d5c781607 GIT binary patch literal 598 zcmZ?wbhEHb6krfwc*el6Vd*RNf? zdim_7d$;Y`xoOAoBgYT!JNWeR(^oHFy?FkjZqm-L-+%x7^{08p-k$k~CoVninY-}C z`=1}b{{H^+&$Ab=pS}C}`s2@cpMRaddi&CiyZ`^6oH1kK#*M50|Nr;zOYf@(OMZXY z{PJ4y;msvKU#{A`vToCg`ZY_Mmn~>tIJbNImgUE{79QDDynjRa&NWp#*Hr&{x$4); z)xU1le!oBO>(z;0u1@-TW#aw4^-mUA-n+E_<@)f~n__p)NL$_!^X>kg4@<2#O-TBA zd*hw+`{vb#&8-canD5u0=Q|8Y}O-(izGwI1wrOktvYD!vI zd*~_b+@G$aF`Rwuf@ALXxda7W4 zt!9IGTU`D}`};p+I{>G$RB`Qz*N=VUAi+p*CJO~8R-9$h2?!eqgfvAd2NDSq2aSw1MJfgu2@w&1 z7%N3A77&1R2@owsBo_~+7l02VMI{v#1q}@a6%+*_MJEosyu2nwC?X#pAjBUcA}CDD HLqPyL)C;dr literal 0 HcmV?d00001 diff --git a/eclipse/plugins/org.argeo.slc.client.ui.dist/icons/showSize.gif b/eclipse/plugins/org.argeo.slc.client.ui.dist/icons/showSize.gif new file mode 100644 index 0000000000000000000000000000000000000000..2df4b45e7ea260c22b54204de4c91c073c9f7770 GIT binary patch literal 357 zcmZ?wbhEHb6krfwxN6MMF?F3!O5@ibe^zciWaO83{_XFTn~uHy^}l=C>gVr%-oJHt z|F(_~Uw((?w7>uId*agLXK%jw^Z);o7jLdVcz5;l|NfaP*R7qLQ8V@Vx4-jN?|S(B z)14bfuit;uG3UUNWwT2DiN4Umm~w3>0A?0x14uVPs%1X3znt1^J1At?9tb z0uLRjbV;Y=0u?2uNs-Po_87Fcd6yhBVQIPiaPk9F0Va-zp&kolIM#lv-myZPsomqj zy!+hYtgI5ujEv09t<2I+VyprJN{WU?22woJ#hf%*`T6x_74+nFIG4&fX|M_l%c!a- iYpL;VR(BF*W!kxGHSL{~yCy}ZhwO|(ctS}M|ypEW?Zv)j|RKTbfYVTzZsE1L=fgWMcX z1qEeBrbY5{J>F6xLJEr*)_SXN6jD`H+P2+m*B(_NxdUF}yY~o*$TjVdIebR^{Elna I)g2kE0Z9RlMgRZ+ literal 0 HcmV?d00001 diff --git a/eclipse/plugins/org.argeo.slc.client.ui.dist/plugin.xml b/eclipse/plugins/org.argeo.slc.client.ui.dist/plugin.xml index d97ab5215..cea5a492e 100644 --- a/eclipse/plugins/org.argeo.slc.client.ui.dist/plugin.xml +++ b/eclipse/plugins/org.argeo.slc.client.ui.dist/plugin.xml @@ -17,32 +17,36 @@ + icon="icons/searchForm.gif" + name="Artifacts Form"> + icon="icons/searchForm.gif" + name="Bundles Form"> + icon="icons/search.gif" + name="Query builder"> @@ -50,14 +54,46 @@ + defaultHandler="org.argeo.slc.client.ui.dist.commands.ShowSizeColumn" + id="org.argeo.slc.client.ui.dist.showSizeColumn" + name="Show size column"> + + + + + + + + + + + + + + + +