Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Dependencies
Dependencies [message #539739] Sat, 12 June 2010 13:28 Go to next message
Mauro Condarelli is currently offline Mauro CondarelliFriend
Messages: 428
Registered: September 2009
Senior Member
Hi,
I'm far enough in the development of my first "serious" RCP application
to start worrying about deployment.

I used the standard Writer.product with standard settings (no
internationalization, no multiplatform).

The resulting Writer.zip is 44M

For what is essentially a Text Editor it seems a bit heavy.

Perusing the Dependencies I found a lot of things I'm surely not using:

<plugin id="org.eclipse.compare"/>
....
<plugin id="org.eclipse.ecf.filetransfer"/>
....
<plugin id="org.eclipse.jdt.compiler.apt" fragment="true"/>
....
<plugin id="org.eclipse.ltk.ui.refactoring"/>
....
<plugin id="org.eclipse.team.core"/>

(not to talk about a whopping 5.5M eaten by com.ibm.icu).

Blindly deleting them is no good as I got:
Cannot complete the install because one or more required items could
not be found.

Software being installed: Writer Application 1.0.0
(it.condarelli.writer 1.0.0)

Missing requirement: Writer 1.0.0 (Writer 1.0.0) requires 'bundle
org.eclipse.jdt.ui 0.0.0' but it could not be found

Cannot satisfy dependency:

From: Writer Application 1.0.0 (it.condarelli.writer 1.0.0)

To: Writer [1.0.0]

Is there an "easy" way to find out what's the really minimal set I must use?
How do I find out what, in my app, is triggering inclusion of
org.eclipse.jdt?

Paul Webster was so kind to point to com.ibm.icu.base, unfortunately I'm
so dumb I didn't find a way to use that instead of the standard (BIG)
version.

Is there some tutorial somewhere?
I googled, but I didn't find anything helpful.

Thanks in Advance
Mauro
Re: Dependencies [message #539776 is a reply to message #539739] Sat, 12 June 2010 23:58 Go to previous messageGo to next message
Mauro Condarelli is currently offline Mauro CondarelliFriend
Messages: 428
Registered: September 2009
Senior Member
AAAARRRRGHHHHH!!!!

How can I open an editor on a genetic filesystem file (no Workspace!) without pulling in the ide?


I am using:

IFileStore fs = EFS.getStore(uri);
IEditorInput ei = new FileStoreEditorInput(fs);
IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
IWorkbenchPage page = window.getActivePage();
page.openEditor(ei, WorldEditor.ID);


but FileStoreEditorInput pulls in the whole IDE.
Is there another way??

Thanks
Mauro

On 12/06/2010 15.28, Mauro Condarelli wrote:
> Hi,
> I'm far enough in the development of my first "serious" RCP application
> to start worrying about deployment.
>
> I used the standard Writer.product with standard settings (no
> internationalization, no multiplatform).
>
> The resulting Writer.zip is 44M
>
> For what is essentially a Text Editor it seems a bit heavy.
>
> Perusing the Dependencies I found a lot of things I'm surely not using:
>
> <plugin id="org.eclipse.compare"/>
> ...
> <plugin id="org.eclipse.ecf.filetransfer"/>
> ...
> <plugin id="org.eclipse.jdt.compiler.apt" fragment="true"/>
> ...
> <plugin id="org.eclipse.ltk.ui.refactoring"/>
> ...
> <plugin id="org.eclipse.team.core"/>
>
> (not to talk about a whopping 5.5M eaten by com.ibm.icu).
>
> Blindly deleting them is no good as I got:
> Cannot complete the install because one or more required items could not
> be found.
>
> Software being installed: Writer Application 1.0.0 (it.condarelli.writer
> 1.0.0)
>
> Missing requirement: Writer 1.0.0 (Writer 1.0.0) requires 'bundle
> org.eclipse.jdt.ui 0.0.0' but it could not be found
>
> Cannot satisfy dependency:
>
> From: Writer Application 1.0.0 (it.condarelli.writer 1.0.0)
>
> To: Writer [1.0.0]
>
> Is there an "easy" way to find out what's the really minimal set I must
> use?
> How do I find out what, in my app, is triggering inclusion of
> org.eclipse.jdt?
>
> Paul Webster was so kind to point to com.ibm.icu.base, unfortunately I'm
> so dumb I didn't find a way to use that instead of the standard (BIG)
> version.
>
> Is there some tutorial somewhere?
> I googled, but I didn't find anything helpful.
>
> Thanks in Advance
> Mauro
Re: Dependencies [message #539818 is a reply to message #539776] Sun, 13 June 2010 17:12 Go to previous message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
On 13/06/10 5:28 AM, Mauro Condarelli wrote:
> AAAARRRRGHHHHH!!!!
>
> How can I open an editor on a genetic filesystem file (no Workspace!) without pulling in the ide?
>
>
> I am using:
>
> IFileStore fs = EFS.getStore(uri);
> IEditorInput ei = new FileStoreEditorInput(fs);
> IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
> IWorkbenchPage page = window.getActivePage();
> page.openEditor(ei, WorldEditor.ID);
>
>
> but FileStoreEditorInput pulls in the whole IDE.
> Is there another way??

Don't think so. But you can always copy just the
FileStoreEditorInputFactory & FileStoreEditorInput and them instead of
pulling the whole IDE plugin (of course, do that after consulting with
your legal department)

--
- Prakash
Platform UI Team, IBM

www.eclipse-tips.com
Previous Topic:Export Product Without JRE
Next Topic:Overriding TreeViewer Find action
Goto Forum:
  


Current Time: Fri Mar 29 01:03:39 GMT 2024

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

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

Back to the top