Skip to main content



      Home
Home » Newcomers » Newcomers » Dynamic Views
Dynamic Views [message #78208] Wed, 15 June 2005 13:25
Eclipse UserFriend
Originally posted by: callum.devnet-uk.net

Hi,

I don't know if this topic is suitable for the newbie forum but I'll give
it a go.

I'll avoid writing an essay on the project requirements but here's the
relevant stuff:

* The application is to go through the procedure for selling a product
* I have a plug-in that must show three Views (customer details, product
details, confirmation)
* The views change depending on what product is being sold. So if a Bank
Loan is being sold it will show the appropiate View for the Bank Loan,
however if Credit Card is being offered, then this obviously requires
different information from the customer.

My plan was to have the framework as a plug-in, and then have a plug-in
for every possible product (less than 10). This is because a requirement
of the project is to have small file sizes. Since this application will
likely be running on a mobile device, hardware resources is a factor, so
only the required stuff should be loaded.
Also, when it comes to updating current products or adding new products
this structure works well. (A concern is also that uploading files is as
small and quick as possible, hence only those plug-ins that have been
updated (or new) need uploading).


Now, to create a view we'd do something like:

<extension point="org.eclipse.ui.views">
<view
name="Product Details"
class="com.mysite.framework.ViewClass"
id="com.mysite.framework.ViewClass">
</view>
</extension>

So, the ViewClass will extend ViewPart and decide how to display Widgets.
This is good for _that_ product, but it is hard-wired. What I need to do
is to grab the plug-ins I require and then fire-up the View for that
product. A solution I don't particulaly want is to have every possible
product View in the plugin.xml file of the Framework.

Can anyone advise me on the approach to take with this? I would rather not
start on a plan, only to decide it's not practical or won't actually work.

I can give more information if I've not made myself clear (wouldn't be the
first time).

Thanks,

Callum Urquhart
Previous Topic:how to set source and build-folders other than default
Next Topic:Cannot resolve methods from .class file in the same directory.
Goto Forum:
  


Current Time: Mon Mar 10 19:03:03 EDT 2025

Powered by FUDForum. Page generated in 0.08648 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top