From 9af3f5c33dd5cde09403ff504e75873ae3186364 Mon Sep 17 00:00:00 2001 From: khartlage Date: Mon, 23 Dec 2002 21:26:23 +0000 Subject: [PATCH] Improved completion processor --- net.sourceforge.phpeclipse/icons/ctool16/php.gif | Bin 0 -> 889 bytes .../icons/ctool16/php_page.gif | Bin 0 -> 904 bytes .../icons/obj16/class_obj.gif | Bin 0 -> 163 bytes .../icons/obj16/error_obj.gif | Bin 0 -> 159 bytes net.sourceforge.phpeclipse/icons/obj16/fun_obj.gif | Bin 0 -> 97 bytes .../icons/obj16/info_obj.gif | Bin 0 -> 92 bytes .../icons/obj16/warning_obj.gif | Bin 0 -> 139 bytes net.sourceforge.phpeclipse/plugin.xml | 12 +- .../internal/corext/template/default-templates.xml | 195 ++------ .../template/java/CompilationUnitContext.java | 21 +- .../corext/textmanipulation/TextBuffer.java | 4 +- .../corext/textmanipulation/TextBufferFactory.java | 6 +- .../phpdt/internal/ui/JavaStatusConstants.java | 28 - .../phpdt/internal/ui/JavaUIException.java | 21 - .../phpdt/internal/ui/JavaUIMessages.java | 36 -- .../phpdt/internal/ui/JavaUIMessages.properties | 542 -------------------- .../phpdt/internal/ui/JavaUIStatus.java | 28 - .../phpdt/internal/ui/PHPStatusConstants.java | 28 + .../phpdt/internal/ui/PHPUIException.java | 21 + .../phpdt/internal/ui/PHPUIMessages.java | 36 ++ .../phpdt/internal/ui/PHPUIMessages.properties | 542 ++++++++++++++++++++ .../sourceforge/phpdt/internal/ui/PHPUIStatus.java | 28 + .../sourceforge/phpdt/internal/ui/PHPUiImages.java | 126 +++++ .../dialog/AbstractElementListSelectionDialog.java | 420 +++++++++++++++ .../ui/dialog/CheckedTreeSelectionDialog.java | 319 ++++++++++++ .../ui/dialog/ElementListSelectionDialog.java | 61 +++ .../internal/ui/dialog/ISelectionValidator.java | 9 + .../phpdt/internal/ui/dialog/MessageLine.java | 84 +++ .../internal/ui/dialog/SelectionStatusDialog.java | 148 ++++++ .../phpdt/internal/ui/dialog/StatusDialog.java | 155 ++++++ .../phpdt/internal/ui/dialog/StatusInfo.java | 161 ++++++ .../JavaCompletionProcessor_NotInUseVersion.java | 4 +- .../ui/text/template/IdentifierEngine.java | 97 ++++ .../ui/text/template/IdentifierProposal.java | 245 +++++++++ .../phpdt/internal/ui/util/DirectorySelector.java | 38 ++ .../phpdt/internal/ui/util/ExceptionHandler.java | 76 +++ .../phpdt/internal/ui/util/FilteredList.java | 456 ++++++++++++++++ .../phpdt/internal/ui/util/PHPElementVisitor.java | 44 ++ .../phpdt/internal/ui/util/PHPFileSelector.java | 67 +++ .../phpdt/internal/ui/util/PHPProjectSelector.java | 41 ++ .../phpdt/internal/ui/util/PixelConverter.java | 50 ++ .../phpdt/internal/ui/util/ResourceSelector.java | 89 ++++ .../phpdt/internal/ui/util/SWTUtil.java | 101 ++++ .../phpdt/internal/ui/util/StringMatcher.java | 381 ++++++++++++++ .../internal/ui/util/TwoArrayQuickSorter.java | 101 ++++ .../ui/viewsupport/ContainerCheckedTreeViewer.java | 175 +++++++ .../ui/viewsupport/ImageDescriptorRegistry.java | 86 +++ net.sourceforge.phpeclipse/templates.xml | 65 +++ 48 files changed, 4314 insertions(+), 833 deletions(-) create mode 100644 net.sourceforge.phpeclipse/icons/ctool16/php.gif create mode 100644 net.sourceforge.phpeclipse/icons/ctool16/php_page.gif create mode 100644 net.sourceforge.phpeclipse/icons/obj16/class_obj.gif create mode 100644 net.sourceforge.phpeclipse/icons/obj16/error_obj.gif create mode 100644 net.sourceforge.phpeclipse/icons/obj16/fun_obj.gif create mode 100644 net.sourceforge.phpeclipse/icons/obj16/info_obj.gif create mode 100644 net.sourceforge.phpeclipse/icons/obj16/warning_obj.gif delete mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/JavaStatusConstants.java delete mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/JavaUIException.java delete mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/JavaUIMessages.java delete mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/JavaUIMessages.properties delete mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/JavaUIStatus.java create mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/PHPStatusConstants.java create mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/PHPUIException.java create mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/PHPUIMessages.java create mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/PHPUIMessages.properties create mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/PHPUIStatus.java create mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/PHPUiImages.java create mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/dialog/AbstractElementListSelectionDialog.java create mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/dialog/CheckedTreeSelectionDialog.java create mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/dialog/ElementListSelectionDialog.java create mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/dialog/ISelectionValidator.java create mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/dialog/MessageLine.java create mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/dialog/SelectionStatusDialog.java create mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/dialog/StatusDialog.java create mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/dialog/StatusInfo.java create mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/text/template/IdentifierEngine.java create mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/text/template/IdentifierProposal.java create mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/util/DirectorySelector.java create mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/util/ExceptionHandler.java create mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/util/FilteredList.java create mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/util/PHPElementVisitor.java create mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/util/PHPFileSelector.java create mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/util/PHPProjectSelector.java create mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/util/PixelConverter.java create mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/util/ResourceSelector.java create mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/util/SWTUtil.java create mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/util/StringMatcher.java create mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/util/TwoArrayQuickSorter.java create mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/viewsupport/ContainerCheckedTreeViewer.java create mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/viewsupport/ImageDescriptorRegistry.java create mode 100644 net.sourceforge.phpeclipse/templates.xml diff --git a/net.sourceforge.phpeclipse/icons/ctool16/php.gif b/net.sourceforge.phpeclipse/icons/ctool16/php.gif new file mode 100644 index 0000000000000000000000000000000000000000..f01f87eab7e821c148b2b9a66a1ef8b2a4137845 GIT binary patch literal 889 zcmV-<1BU!ZNk%w1VGsZi0QUd@0000^Oi<|O>Qqu%SXN-t&)wSC;>yU^#lzL#-sW3c zW=Tj_WMg!Hfu5et zY;1M!EpSz@`ziVxedwrsZiLpvcV1|gRrKitkXMSjDe`RKSbajh*eyN6v zxPpbUhKja#dZ15HX;@lxEiOBMgQ;d|gpZQ3t*^ul4iyv?9cF8eV`z$GXo$|x-knP+mSV{V~rcB^P|q;GkyV{MyYX_bD8!E=19Wo?#UXN_=qrJSYDl$^q|y4$d} z)49LfyTIGW%;v$y-O<+Wi;kVy-0R`w^GsWwQDC7`VWLuDp;Tj|Q(~f1Vxd)Jq*Y|2 zR%N7CWTRVZs##~ISZ1VKYN%Ujs9I>IS!ktMXQf_ktW;u}U2CaZX{K0ZpkZ*ZU~jHo zY^q#pr&?&ES!bajB|2MZqD)taTxp_TY^GaipJZ~aQ(us0b+JNAa$|6+IznRy2n=U* zu3c%JYeTlt;kHLzS#gd%Kq^;Gbu-CJ^;;psW zx4zxI#N)cb-MGHly~EwS!rZ>Z-j9-=Zg6KphJ+g$86F)RBO)P3MnzIlPzeYK&d$!Vva+eEsRacE0|NsA z0RjL2{{R30A^8LW007DWEC2ui01yBW000P90F?#x literal 0 HcmV?d00001 diff --git a/net.sourceforge.phpeclipse/icons/ctool16/php_page.gif b/net.sourceforge.phpeclipse/icons/ctool16/php_page.gif new file mode 100644 index 0000000000000000000000000000000000000000..dc6de605419494533564f2f9f50d2973bd9c8628 GIT binary patch literal 904 zcmZ?wbhEHb6krfw_|Cxa9|(SbxB?{a1JSB0K=RE0EB99&xO3plng9Ryue!4T|CRl# zR_$N)e?Aa}UYWmY6_8OMx~hKF|M<{`hKA7k(E9jQ2M=7Xj}QHC&k!0Py2_rR-ahod zJi`@vhE?()D;P$>Xb23-5K#Qd!pOjIia`hDI#8Zq;7Da~ZV_(!+eYMZF^=;c^WiT%F`?MElaV`uD)&M;ZHrxOJ literal 0 HcmV?d00001 diff --git a/net.sourceforge.phpeclipse/icons/obj16/fun_obj.gif b/net.sourceforge.phpeclipse/icons/obj16/fun_obj.gif new file mode 100644 index 0000000000000000000000000000000000000000..b5129152c94ba899e28af508608a1e39747daba4 GIT binary patch literal 97 zcmZ?wbhEHb6krfwSoELaz<~qy_4fAh_Vx4Q=kJeafC0syEQ}zw4u}A$bzoNG*mXx% q<(T4}y}mEHcDD+B_dMcInXxL)QMzP7N#Bzk&SjeG{!C(Eum%8DJs$u7 literal 0 HcmV?d00001 diff --git a/net.sourceforge.phpeclipse/icons/obj16/info_obj.gif b/net.sourceforge.phpeclipse/icons/obj16/info_obj.gif new file mode 100644 index 0000000000000000000000000000000000000000..26c7477336c8789bb3e1634b727b4c971e16c1e3 GIT binary patch literal 92 zcmZ?wbhEHb6krfwSi}GX|LyJf$H(uluiwAy)QA87|AWLB7!-f9FfuT(GU$LfAhit4 qiV?f+{4+Sk*b&3fvf5)q%nFX10@KtJiZoU)TkVpyF~gjb!5RQBS{<$c literal 0 HcmV?d00001 diff --git a/net.sourceforge.phpeclipse/icons/obj16/warning_obj.gif b/net.sourceforge.phpeclipse/icons/obj16/warning_obj.gif new file mode 100644 index 0000000000000000000000000000000000000000..cf8d571833dcf0457fad44f638d981f28d43eee2 GIT binary patch literal 139 zcmZ?wbhEHb6krfw*v!E2|9|}b`}_ajx4*yN{{Q{>{qybr@3)^{Zyz5Y&j6DB4 - - - - @@ -387,7 +377,7 @@ id="net.sourceforge.phpeclipse.preference.PHPEclipsePreferencePage"> diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/corext/template/default-templates.xml b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/corext/template/default-templates.xml index cd33d19..d635aae 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/corext/template/default-templates.xml +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/corext/template/default-templates.xml @@ -1,186 +1,65 @@ - - - - - - -