Bug 4994 - [Examples] EC: Java Project example breaks API contract
Summary: [Examples] EC: Java Project example breaks API contract
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC other
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Andrew Irvine CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate
Depends on:
Blocks:
 
Reported: 2001-10-15 15:16 EDT by Unknown User CLA
Modified: 2005-01-18 16:44 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Unknown User CLA 2001-10-15 15:16:55 EDT
Subject: Java Project example misleading
From: mazenfaraj@home.com (Mazen Faraj)
Newsgroups: eclipse.tools
Organization: EclipseCorner
Date: Oct 15 2001 13:10:12

The "new Java project example wizard" subclasses BasicNewResourceWizard.
From the Java docs for the class, it says "This class is not intended to be
subclassed outside this package." !
So, there is an inconsistency here.
Yes, I know it is an example, but sometimes we follow examples blindly  ;-)
just honoring rules of engagement for the platform.

There is a method that the sample relies on, which is
 selectAndReveal( IResource);
and it gets it from the parent.
Maybe this method should be public, just like

BasicNewProjectResourceWizard.updatePerspective(fConfigElement);


Just FYI

regards,
Mazen.

DS> This wizard should not subclass BasicNewResourceWizard.  We reserve the 
right to change the non public API on this class at any time.
Comment 1 Unknown User CLA 2001-10-15 15:20:41 EDT
If you would like a method exposed on this class please put in an API request 
and we will consider it.
Comment 2 Martin Aeschlimann CLA 2001-10-16 05:30:13 EDT
Inheriting BasicNewResourceWizard has been done for
using selectAndReveal.

What should I do, copy the method in my code, or am I allowed to subclass?
Comment 3 Martin Aeschlimann CLA 2001-10-31 11:52:42 EST
please comment...
Comment 4 Adam Kiezun CLA 2002-02-27 07:01:53 EST
moving to platform for comment
Comment 5 Kevin Haaland CLA 2002-05-01 09:26:24 EDT
Consider improvements post 2.0
Comment 6 Randy Giffen CLA 2002-08-08 16:39:12 EDT
Reopen for investigation
Comment 7 Kevin Haaland CLA 2003-02-07 15:20:00 EST
There are no plans for the UI team to work on this defect until higher priority 
items are addressed. If you are interested in working on this defect please let 
us know on the ui team's mailing list.