Bug 39243 - [Properties] Make PropertySheetEntry API
Summary: [Properties] Make PropertySheetEntry API
Status: RESOLVED DUPLICATE of bug 24694
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 3.1 M6   Edit
Assignee: Nick Edgar CLA
QA Contact:
URL:
Whiteboard:
Keywords: api
Depends on:
Blocks: 61413
  Show dependency tree
 
Reported: 2003-06-23 15:56 EDT by Randy Hudson CLA
Modified: 2005-03-30 15:26 EST (History)
2 users (show)

See Also:


Attachments
Changes to PropertySheetEntry API (3.87 KB, patch)
2004-05-12 18:05 EDT, Whitney Sorenson CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Randy Hudson CLA 2003-06-23 15:56:52 EDT
GEF currently copies the implementation of PropertySheetEntry.
Our clients then in turn copy our implementation.  The result is that fixes in 
the base implementation will never find there way down into real application 
code.  Similarly, bug reporting will be subject to the trickle-down effect too.
Comment 1 Randy Hudson CLA 2003-08-14 14:02:16 EDT
Copying code is not good in general. Speak with Adrian about this for details :-
)
Comment 2 Randy Hudson CLA 2004-03-31 10:07:43 EST
Please consider this for 3.0.  The API has not changed in 4 releases.
Comment 3 Nick Edgar CLA 2004-04-01 11:53:08 EST
Randy, nobody on the UI team is actively working on the properties view, or has
the cycles to look at this for M9.
Making this API will require more thought than just flipping the visibility of
the class to public. 

Would you like to look into this and contribute a patch?
Comment 4 Nick Edgar CLA 2004-05-07 11:45:05 EDT
Done.
Comment 5 Whitney Sorenson CLA 2004-05-12 18:05:09 EDT
Created attachment 10573 [details]
Changes to PropertySheetEntry API

In order for GEF to subclass PropertySheetEntry, we need the changes in this
Patch to be applied. Otherwise, we'd have to continue to copy/paste the code.
This is the minimal amount of changes necessary for us to make use of the API
in our UndoablePropertySheetEntry class.
Comment 6 Nick Edgar CLA 2004-05-13 11:10:16 EDT
Sorry, we're now feature and API frozen for 3.0.
If a patch had been provided when first requested, it might have made it.

Will consider post-3.0.
Comment 7 Nick Edgar CLA 2004-05-13 11:10:49 EDT
Also, please don't mark bugs as critical unless they're stop-ship bugs.
Comment 8 Randy Hudson CLA 2004-05-13 11:49:24 EDT
Sorry Nick, the severity was marked critical in early 3.0 development, not 
recently. We got burnt for having a copy because there was a bug fixed in the 
original.
Comment 9 Erwin Tratar CLA 2004-05-21 09:45:00 EDT
when making PropertySheetEntry API please don't forget about #1883 and at least
open some hooks (i.e. make computeMergedPropertyDescriptors() protected add a
new sortPropertyDescriptors() and call it from computeMergedPropertyDescriptors())
Comment 10 Randy Hudson CLA 2004-10-28 17:21:20 EDT
Reopening for 3.1 consideration
Comment 11 Randy Hudson CLA 2005-02-07 11:49:40 EST
Would really like to get rid of our local copy of this class.
Comment 12 Nick Edgar CLA 2005-02-07 12:20:17 EST
Randy, are you OK with the patch?
Comment 13 Randy Hudson CLA 2005-02-07 13:05:37 EST
I'll have to trust Whitney on this one.  Our implementation has not changed 
much since he went back to school, so the patch should still meet our needs.
Comment 14 Nick Edgar CLA 2005-03-21 16:04:46 EST
I'm reviewing the patch now.  It looks like createChildEntries(int) isn't
necessary.  I can't see why you'd need to override the type of the array, just
the type of the elements.
Randy, can you confirm?
Comment 15 Randy Hudson CLA 2005-03-21 16:10:49 EST
That makes sense to me.  Perhaps that's an artifact of having copied the entire 
class at one point.
Comment 16 Nick Edgar CLA 2005-03-21 16:20:40 EST
Actually, I've applied the more recent patch in bug 24694.
Please follow up there.


*** This bug has been marked as a duplicate of 24694 ***
Comment 17 Randy Hudson CLA 2005-03-30 13:57:31 EST
The patch included making setValue(Object) protected so that we could override
that method.

I may have a workaround
Comment 18 Nick Edgar CLA 2005-03-30 14:43:48 EST
I can still add it if you want.
Comment 19 Randy Hudson CLA 2005-03-30 15:26:14 EST
I don't need it. I actually deleted several lines by overriding a different 
method instead.