Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Exporting problem
Exporting problem [message #447935] Tue, 18 April 2006 08:57 Go to next message
Andreas Hagerer is currently offline Andreas HagererFriend
Messages: 24
Registered: July 2009
Junior Member
Hi,

I defined a product that is based on a plug-in.
The application to run when launching the product is an RCP application.
This application is developed using Eclipse SDK 3.2M6.
The application can be debugged/executed using the Eclipse IDE
without problems.

When exporting the product by means of product export wizard
the following error appears:

ERROR in ...\TableView.java (at line 230)
viewerSelectionChanged (selection);
^^^^^^^^^^^^^^^^^^^^^^
The method viewerSelectionChanged(IStructuredSelection) is undefined for
the
type TableView.

The class TableView implements ISelectionChangedListener.
The source code is as follows

protected void viewerSelectionChanged (
IStructuredSelection selection) {
}

public void selectionChanged (SelectionChangedEvent event) {
IStructuredSelection selection =
(IStructuredSelection)event.getSelection ();
viewerSelectionChanged (selection); // line 230
}

public void createPartControl (Composite parent) {
viewer = new TableViewer (createTable (parent));
contentProvider = new TableContentProvider (viewer);
viewer.setContentProvider (contentProvider);
viewer.addSelectionChangedListener (this);

What's wrong?
I am suprised that the compilation error occurs during export.

Thank you
Andreas
Re: Exporting problem [message #447967 is a reply to message #447935] Tue, 18 April 2006 14:25 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

When you export, the PDE tools use a combination of the MANIFEST.MF
runtime tab (required bundles, classpath, exported packages) and I'm
guessing the product definition (the list of plugins that will end up in
the RCP_app/plugins directory).

If the runtime MANIFEST doesn't contain the correct plugin dependencies,
you'll get these kind of compile errors.

If the product export isn't exporting all of the required plugin
dependencies, you'll get these kind of compile errors.

If you've added 3rd party jars to some of your plugins and haven't
followed a list of steps like http://wiki.eclipse.org/index.php/PDE
you'll get these kind of compile errors.

Later,
PW


Re: Exporting problem [message #447978 is a reply to message #447967] Tue, 18 April 2006 15:52 Go to previous messageGo to next message
Andreas Hagerer is currently offline Andreas HagererFriend
Messages: 24
Registered: July 2009
Junior Member
There must be something else.
If I use SDK 3.2M5 and GEF 3.2M5 I can export my product.
If I use SDK 3.2M6 and GEF 3.2M6 I can't.



"Paul Webster" <pwebster@ca.ibm.com> schrieb im Newsbeitrag
news:e22phk$9qa$1@utils.eclipse.org...
> When you export, the PDE tools use a combination of the MANIFEST.MF
> runtime tab (required bundles, classpath, exported packages) and I'm
> guessing the product definition (the list of plugins that will end up in
> the RCP_app/plugins directory).
>
> If the runtime MANIFEST doesn't contain the correct plugin dependencies,
> you'll get these kind of compile errors.
>
> If the product export isn't exporting all of the required plugin
> dependencies, you'll get these kind of compile errors.
>
> If you've added 3rd party jars to some of your plugins and haven't
> followed a list of steps like http://wiki.eclipse.org/index.php/PDE
> you'll get these kind of compile errors.
>
> Later,
> PW
Re: Exporting problem [message #447980 is a reply to message #447978] Tue, 18 April 2006 16:09 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

A. Hagerer wrote:
> There must be something else.
> If I use SDK 3.2M5 and GEF 3.2M5 I can export my product.
> If I use SDK 3.2M6 and GEF 3.2M6 I can't.

That does make a difference. Does your Error Log have any errors in it?
Does your Problems view?

> class TableView implements ISelectionChangedListener
and extends what?

One possible reason this might have suddenly stopped working is "If the
product export isn't exporting all of the required plugin dependencies,
you'll get these kind of compile errors." If something you need was
refactored from one plugin to another or moved to a new plugin, you
might not have the plugin in your product export list.

Later,
PW


Re: Exporting problem [message #448225 is a reply to message #447980] Wed, 19 April 2006 12:17 Go to previous messageGo to next message
Andreas Hagerer is currently offline Andreas HagererFriend
Messages: 24
Registered: July 2009
Junior Member
Neither the Error Log nor the Problem View show a problem.

On the product's configuration page I used the "add required
plug-ins"-button
to rebuild the list of plug-ins.
The problem remains.

The error in the export-log says the
"method viewerSelectionChanged(IStructuredSelection) is undefined for the
type TableView"
but the method is define in the class TableView.
For me it does not look like a missing plug-in.

The complete declaration of TableView is:
public abstract class TableView
extends ViewPart
implements IPropertyChangeListener, IResourceChangeListener,
IResourceDeltaVisitor, ISelectionChangedListener



"Paul Webster" <pwebster@ca.ibm.com> schrieb im Newsbeitrag
news:e232vs$ihq$1@utils.eclipse.org...
> A. Hagerer wrote:
> > There must be something else.
> > If I use SDK 3.2M5 and GEF 3.2M5 I can export my product.
> > If I use SDK 3.2M6 and GEF 3.2M6 I can't.
>
> That does make a difference. Does your Error Log have any errors in it?
> Does your Problems view?
>
> > class TableView implements ISelectionChangedListener
> and extends what?
>
> One possible reason this might have suddenly stopped working is "If the
> product export isn't exporting all of the required plugin dependencies,
> you'll get these kind of compile errors." If something you need was
> refactored from one plugin to another or moved to a new plugin, you
> might not have the plugin in your product export list.
>
> Later,
> PW
Re: Exporting problem [message #448231 is a reply to message #448225] Wed, 19 April 2006 14:17 Go to previous message
Eclipse UserFriend
Originally posted by: steffen.foldager.credit-suisse.com

Do you have linked source folders?
If so you need to modify your build.properties (or maybe you need to for
some other reason).
See my last post in "Product export fails".

Cheers,
Steffen
Previous Topic:features ...
Next Topic:how to make the initial window maximal in RCP?
Goto Forum:
  


Current Time: Fri Jan 03 00:17:31 GMT 2025

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

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

Back to the top