2008-09-04

The Eclipse RCP - 1 - Rich Client Platform

For the full tutorial, see http://www.vogella.de/articles/RichClientPlatform/article.html

The Platform
The Eclipse RCP is a platform, where no functionality is implemented in it; its sole purpose is to manage the plug-ins, where everything in the program is done using the plug-ins.
The plug-ins implement everything, from the menu bar, to the status bar, to the main toolbar, to the views (or panels), to the Editors (which may not be editing anything, but they are the main focus of the program), to auxiliary functionality like software automatic update and help and the management of long-running background operations; these plug-ins are the heart-and-soul of any Eclipse RCP-based program.
The basis for this architecture is the runtime environment of Eclipse which is based on the OSGi Alliance. Eclipse used the OSGi reference implementation Equinox to run upon. The Plug-in concept of Eclipse is the same as the bundle concept of OSGi.

Minimum Requirements
As a minimum, a RCP application requires:
  • Main program or Application (org.eclipse.core.runtime.applications extension point)
  • Workbench Advisor (invoked from the Application handler, it sets the default Perspective, invokes WorkbenchWindowAdvisor which configures the default Main window state and subsequently invokes ActionBarAdvisor, which in turn provides one of the ways to configure the Action Bar or the main menu and Cool Bar or the main toolbar)
  • A Perspective (org.eclipse.ui.perspectives extension point)
  • A View (org.eclipse.ui.views extension point, views are technically not required for a RCP application, but they are the base interface element)
The RCP application depends on 2 main plug-ins:
  • org.eclipse.core.runtime
  • org.eclipse.ui

Plug-ins Architecture
The RCP architecture is based on the concept of extension-points, which a plug-in provides so that any other plug-ins can contribute functionality to it in the form of extensions, e.g. you can easily provide your menu items in the Action Bar (an extension point provided by the org.eclipse.ui plug-in) by implementing extensions that connect to the org.eclipse.ui.menus extension point and provide their own implementation. In general an extension point can be used several times (either by the same plug-in or by other plug-ins).
The plug-in architecture is based on 2 configuration files (or manifests) that describe the behavior of the plug-in, "MANIFEST.MF" and "plugin.xml", by double clicking on any of them, Eclipse provides a graphical editor of the files contents.
The plug-in manifest ties all the code and the resources together, the OSGi bundle manifest is stored in "MANIFEST.MF", while the Eclipse specific parts are stored in "plugin.xml".

2008-09-03

سبتمبر جاانا

الصراحة رمضان السنه دي جامد جداً ..... جه أول سبتمبر .... و الصراحة سعيد صالح باين عليه كان عارف من الأول فجهز الأغنية التمام لرمضان السنادي

2008-09-02

The Eclipse RCP Platform

I've started in my quest to learn the Eclipse RCP Platform, the Java Rich Client Platform built on the Eclipse foundation softwareand using the Standard Widget Toolkit (SWT).

While I think that Swing and the Swing Application Framework (JSR 296) would be a more pure Java approach, I personally prefer the Eclipse RCP approach for large scaled projects, where it can provide high degree of modularity to the system (this can be also achieved in the NetBeans Platform, but I prefer the look and feel of the Eclipse-based applications).

Also I think that the NetBeans IDE is better in the more broad Java picture, where I assume it is better in handling the Java EE and Java ME applications and provide a higher of community participation in its code base (this may not be correct, but I got this impression, maybe because I was a close watcher for the NetBeans news earlier than Eclipse).

But the Eclipse RCP won because of its large base of implemented applications, one for example was the main reason that I tried the Eclipse RCP in the first place, uDig, the internet-friendly desktop GIS application, and i don't know until now if I'm gonna to run inside it with my plug-ins, or that I will embed its plugins inside my application(s).

Also the Eclipse SWT library is more responsive and native-looking than Swing (personally I love the Java Metal look and feel, but thats just me, everybody else hates it).

So, in the next few days, I will start posting about my findings in the Eclipse RCP world and the Java world in general.

2008-07-28

البقاء لله



مخرج مصر الأهم و الأقوي .... هانروح لمين من بعدك يا دماغ السينما المصرية

2008-07-24

Vision Group website is finally there

I glad to announce that the Vision group website is finally up and running ...... after many trials and many more attepts, I'm that finally http://www.vision-group.net is finally online.

Check and tell me your opinion

من وحي مدونة حكاوي أخر الليل


من أمام مركز تراخيص المدونات
...
يتوقف الأستاذ مدبولي أما شاب بدين: نعم ياخويا إنت راخر
الشاب: يا أستاذ أنا بقالي ثلاث أيام كل يوم بحاول أسجل المدونة بتاعتي علي موقع الحكومة الإليكترونية و الموقع مش راضي
الأساذ مدبولي و إبتسامة خفيفة علي وجهه: إنت عملت إيه بظبت؟
الشاب: أبداً، بدخل و أضغط علي تسجيل مدونة جديدة و أملا البيانات، بعد كده تروح الطابعة مطلعالي الورقة دي و مابيعمل حاجة تاني
الأساذ مدبولي: وريني كده ...... أه يا سيدي ده إيصال الدفع ..... تروح شباك ثلاثة تسدده و تختمه من الخزينة و ترجع تسحبة علي الscanner و بعدين تبعته علي البريد الإليكتروني بتاع الموقع، نروح إحنا طبعينه و بعتينه الأرشيف ياخد مسلسل و يتسجل في الدفاتر و تيجي تسأل عليه بعد ثلاث أيام يكون إن شاء الله إتسجل و خد موافقته
الشاب و قد بدأت ملامح العصبية تظهر عليه: يعني لما أنا لازم أجي و أدفع في الخزينة، يبقي أنا بسجل ليه في الموقع ؟
الأساذ مدبولي: يا أستاذ تيسيراً علي المواطنين .... بس مش معني كده إني أكسر اللوايح و لا القوانين .... يعني إيه إيصال مش متسدد في الخزينة
ينظر له الشاب و نظرة الغيظ تملأ وجهه .... و ينظر بحسره إلي بطاقته الإئتمانية الجديدة و هو يتجه ناحية الخازينة

2008-07-21

خبر الموسم


في تمام الساعة العاشرة و النصف من مساء يوم العشرين من شهر يوليو لعام 2008 الموافق السابع عشر من رجب للعام 1429 هجرية، تأكدت الأنباء التي كانت تتردد منذ بضعة أيام حول الحدث الأهم في عام 2008.

هذا الحدث يعتبر بمثابة نقلة نوعية و هامة في تاريخ التعليم المصري (و العربي بشكل عام)، هذا الحدث الذي لن يتكرر في التاريخ و ربما يبدأ التأريخ الجديد للواقع المصري باستخدامه.

في هذا التاريخ تم إعلان نتيجة طلبة العام الخامس من كلية التخطيط الإقليمي و العمراني، و التي تتضمن نتيجة 141 من طلبة التخطيط، يعتبر أبرزهم هذا العام .... الطالب أحمد محمد هشام، الذي إستطاع و بمجهود إنساني و ذهني كبير ، و بدعوات من كل من قابله في هذا المشوار الطويل أو عرفه من قريب أو بعيد أن يصبح حديث الأوساط العلمية و السياسية و الفنية، و ذلك بعد أن شكل قضية تخرجه موضوع من أهم الموضوعات المطروحة علي الساحة العربية و التي لا نبالغ إن قلنا أن الوضع في لبنان قد فقد جزأاً هاماً من إستقراره بسبب سخونة هذه القضية و تضارب الآراء و الأقوال فيها.

إن هذه القضية التي تعبر و بكل صدق عن الموقف الحالي لمنظومة التعليم المصرية و لم تستطع أن تكون أقل من قضية التوريث أو أزمة رغيف العيش و مستقبل المنطقة ببقاء الإحتلال الأمريكي بالعراق و العلاقات المتوترة بين الدول العربية و إسرائيل، هذه القضية التي ستبقي أعواماً و أعوام في ذهن الشارع المصري و العربي.

تخرج الطالب بتقدير جيد لمشروع التخرج و تقدير عام مقبول، و أستطاع أن يجتاز هذه المرحلة الإنسانية بنجاح، ليستحق من كل من عرف هذه النتيجة كلمة واحدة:

"كفارة يا شيخ"

2008-07-10

كلام جرايد


رداً علي صديقي ساكن بيت القتلي

هيا مش دي الست إللي كانت بتحاول تنتحر بقالها 6 سنين و الواد أخوها إللي كان بيحدف الناس بزجاجات الحاجة الساقعة من بلكونة بيتهم؟

يعني هنلاقيها منين و لا منين ... يعني لا جرايد حكومة نافع و لا دستور نافع .... حتي المصري اليوم ؟
أنا غلطان إني بطلت رسوم متحركة


خلصت يا عالم


إمبارح كان مناقشة مشروع تخرجي (كلاكيت ثاني مرة) و المرة دي نسب النجاة و الخروج من المعتقل بتعلي جداً (بس أنا عمري ماهصدق لغاية ماشوف نتيجتي بعيني ... إللي إتلسع من الشوربة و الزبادي بيمشي ينفخ في الهوا)

إن شاء الله يوم النتيجة كلكم معزومين عندي في البلوج.