Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » A crazy application question
A crazy application question [message #335637] Fri, 17 April 2009 10:13 Go to next message
Rob is currently offline RobFriend
Messages: 27
Registered: July 2009
Junior Member
Hi folks,

This sounds a bit crazy, but i thought i'd ask anyway. Basically, we are
working on two long established products, both are rcp apps. As part of an
enhancement, we are hoping to combine the two into one app.

Now - one is smaller than the other, so we are probably going to make this
a plugin for the larger one, and this is what we are prototyping at the
moment (i'm knee-deep in retargeted actions). After investigation, we've
realised that this is going to be a lot more work than we expected.

Now this "combination" of the two products is just to appease sales
people, to make it "look" like it is all the one app. Even if we get the
plugin working correctly, it still won't add any extra functionality to
either one.

So, (at last!), my question is: Is it possible for two RCP applications to
be launched at the same time in the same window? In such a way that both
could also be launched seperately? Told you it was crazy...

Any ideas would be appreciated!
Thanks.
Re: A crazy application question [message #335641 is a reply to message #335637] Fri, 17 April 2009 13:08 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Rob wrote:
> So, (at last!), my question is: Is it possible for two RCP applications
> to be launched at the same time in the same window? In such a way that
> both could also be launched seperately? Told you it was crazy...

No (as you are finding out).

The RCP app depends on the WorkbenchAdvisor, WorkbenchWindowAdvisor, and
ActionBarAdvisor to give it some basic structure. Those are the main
parts that have to be merged, right?

The more that extension points were used (o.e.ui.actionSets,
o.e.ui.popupMenus, o.e.ui.commands, o.e.ui.menus, etc) the more easily
the RCP app can be integrated.

What are you finding is your biggest sticking point?

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Re: A crazy application question [message #335648 is a reply to message #335637] Sat, 18 April 2009 01:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: m.n.com

Might be simpler to get new sales people. LOL.


Rob wrote:
> Hi folks,
>
> This sounds a bit crazy, but i thought i'd ask anyway. Basically, we are
> working on two long established products, both are rcp apps. As part of
> an enhancement, we are hoping to combine the two into one app.
> Now - one is smaller than the other, so we are probably going to make
> this a plugin for the larger one, and this is what we are prototyping at
> the moment (i'm knee-deep in retargeted actions). After investigation,
> we've realised that this is going to be a lot more work than we expected.
>
> Now this "combination" of the two products is just to appease sales
> people, to make it "look" like it is all the one app. Even if we get the
> plugin working correctly, it still won't add any extra functionality to
> either one.
>
> So, (at last!), my question is: Is it possible for two RCP applications
> to be launched at the same time in the same window? In such a way that
> both could also be launched seperately? Told you it was crazy...
>
> Any ideas would be appreciated!
> Thanks.
>
Re: A crazy application question [message #335657 is a reply to message #335641] Mon, 20 April 2009 10:45 Go to previous messageGo to next message
Rob is currently offline RobFriend
Messages: 27
Registered: July 2009
Junior Member
My main reason for this question is the amount of time it is taking to get
up to speed with the entire actions/actionSets/commands/handlers setup.
The online help is good to read, but I find that I need to use forums and
newsgroups to get the info I need.

The objects in my tree view change change state without the user making
selection changes. So I needed to update the enablement of commands to
accomodate this. After A LOT of searching, I got the plugin-specific
commands working with commands, handlers, the <enabledWhen> tag, and a
PropertyTester. It took me ages to find a good solid example of how to use
the PropertyTester. But it is now working.

From a development point of view, the main issue is the use of retarget
actions. As was pointed out before, 3.3 still uses retarget actions. I
cannot move to 3.4. I need to retarget rename, refresh, delete,
properties, new, etc. But the enablement of these actions can also change
(without the user changing selection). So I guess i'm trying to somehow
hook my PropertyTester into the actions, and get the "isEnabled" method
for each action called when the File or Edit Menu is expanded.

Any ideas? My first thought was to add a menu listener to the main menu,
but I can't get access to it.
Re: A crazy application question [message #335695 is a reply to message #335657] Wed, 22 April 2009 13:57 Go to previous message
Shawn Spiars is currently offline Shawn SpiarsFriend
Messages: 16
Registered: July 2009
Junior Member
Just an idea. You could combine your two existing RCP applications into
a single RCP application and create 2 distinct perspectives, each
representing your current separate applications. When you launch the
new application you can use a System property to decide which
perspective to show. You can hide the perspective switcher if you don't
want the use to change perspectives.

I agree that sales people often ask for architectural changes, when the
architecture and implementation should always be decided by architects
and developers.

-Shawn

Rob wrote:
> My main reason for this question is the amount of time it is taking to
> get up to speed with the entire actions/actionSets/commands/handlers
> setup. The online help is good to read, but I find that I need to use
> forums and newsgroups to get the info I need.
>
> The objects in my tree view change change state without the user making
> selection changes. So I needed to update the enablement of commands to
> accomodate this. After A LOT of searching, I got the plugin-specific
> commands working with commands, handlers, the <enabledWhen> tag, and a
> PropertyTester. It took me ages to find a good solid example of how to
> use the PropertyTester. But it is now working.
>
> From a development point of view, the main issue is the use of retarget
> actions. As was pointed out before, 3.3 still uses retarget actions. I
> cannot move to 3.4. I need to retarget rename, refresh, delete,
> properties, new, etc. But the enablement of these actions can also
> change (without the user changing selection). So I guess i'm trying to
> somehow hook my PropertyTester into the actions, and get the "isEnabled"
> method for each action called when the File or Edit Menu is expanded.
>
> Any ideas? My first thought was to add a menu listener to the main menu,
> but I can't get access to it.
Previous Topic:Initial Ruler Action Enablement
Next Topic:Logging to Eclipse logger
Goto Forum:
  


Current Time: Tue Dec 23 00:21:19 GMT 2014

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

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