Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 213390 - Sybase enablement plug-ins should be refactored for UI/non-UI separation
Summary: Sybase enablement plug-ins should be refactored for UI/non-UI separation
Status: RESOLVED FIXED
Alias: None
Product: Data Tools
Classification: Tools
Component: Enablement:Sybase (show other bugs)
Version: 1.6   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: Galileo   Edit
Assignee: song lin CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 252005
Blocks:
  Show dependency tree
 
Reported: 2007-12-18 19:00 EST by Larry Dunnell CLA
Modified: 2009-04-29 02:37 EDT (History)
2 users (show)

See Also:


Attachments
patch for bug213390 213391 and 216487 (704.14 KB, patch)
2008-03-25 02:45 EDT, song lin CLA
no flags Details | Diff
patch_for_org.eclipse.datatools.enablement.sybase.asa.dbdefinition (3.51 KB, patch)
2008-03-25 23:12 EDT, song lin CLA
no flags Details | Diff
patch_for_org.eclipse.datatools.enablement.sybase.asa.models (144.78 KB, application/x-zip-compressed)
2008-03-25 23:13 EDT, song lin CLA
no flags Details
patch_for_org.eclipse.datatools.enablement.sybase.asa.ui (33.62 KB, application/x-zip-compressed)
2008-03-25 23:13 EDT, song lin CLA
no flags Details
patch_for_org.eclipse.datatools.enablement.sybase.asa (102.57 KB, application/x-zip-compressed)
2008-03-25 23:14 EDT, song lin CLA
no flags Details
patch_for_org.eclipse.datatools.enablement.sybase.ase.dbdefinition (12.24 KB, patch)
2008-03-25 23:14 EDT, song lin CLA
no flags Details | Diff
patch_for_org.eclipse.datatools.enablement.sybase.ase.models (137.42 KB, patch)
2008-03-25 23:15 EDT, song lin CLA
no flags Details | Diff
patch_for_org.eclipse.datatools.enablement.sybase.ase.ui (35.96 KB, application/x-zip-compressed)
2008-03-25 23:16 EDT, song lin CLA
no flags Details
patch_for_org.eclipse.datatools.enablement.sybase.ase (126.13 KB, patch)
2008-03-25 23:16 EDT, song lin CLA
no flags Details | Diff
patch_for_org.eclipse.datatools.enablement.sybase (141.57 KB, patch)
2008-03-25 23:17 EDT, song lin CLA
no flags Details | Diff
patch for org.eclipse.datatools.enablement.sybase (41.73 KB, patch)
2008-04-27 09:27 EDT, song lin CLA
no flags Details | Diff
patch for org.eclipse.datatools.enablement.sybase.asa/ase (7.58 KB, patch)
2008-04-27 09:28 EDT, song lin CLA
no flags Details | Diff
patch for org.eclipse.datatools.enablement.sybase.models (19.92 KB, patch)
2008-04-27 09:29 EDT, song lin CLA
no flags Details | Diff
patch for org.eclipse.datatools.enablement.sybas.ui (31.26 KB, patch)
2008-04-27 09:30 EDT, song lin CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Larry Dunnell CLA 2007-12-18 19:00:09 EST
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=203158 for guidelines and more information.
Comment 1 Brian Fitzpatrick CLA 2008-01-25 12:26:13 EST
Assigning to Hung's team to look at for Sybase enablement projects
Comment 2 Larry Dunnell CLA 2008-03-04 12:54:51 EST
It is critical for this defect to be addressed before releasing DTP 1.6.  Is this work still planned for M6?  Please let me know as soon as possible.
Comment 3 Hui Cao CLA 2008-03-11 22:41:28 EDT
Samuel, I know you're working on 204752 & 204628 to provide much more features for Sybase ASA & ASE databases. Do you plan to fix this bug together?
Comment 4 song lin CLA 2008-03-25 02:45:16 EDT
Created attachment 93352 [details]
patch for bug213390 213391 and 216487 

patch for bug213390 213391 and 216487
Comment 5 Brian Fitzpatrick CLA 2008-03-25 14:17:03 EDT
Have some serious issues with this patch... #1, it's huge... #2, it isn't a patch against what is currently in the Eclipse CVS repository. #3, you need to attach the icons separately, as they don't come through in the attachment (binary files don't work that way in CVS attachments). Can you break this thing up into different pieces and make sure it's against what's currently in the Sybase enablement projects in the Eclipse CVS repository?
Comment 6 song lin CLA 2008-03-25 23:12:24 EDT
Created attachment 93518 [details]
patch_for_org.eclipse.datatools.enablement.sybase.asa.dbdefinition

patch_for_org.eclipse.datatools.enablement.sybase.asa.dbdefinition
Comment 7 song lin CLA 2008-03-25 23:13:13 EDT
Created attachment 93519 [details]
patch_for_org.eclipse.datatools.enablement.sybase.asa.models

patch_for_org.eclipse.datatools.enablement.sybase.asa.models
Comment 8 song lin CLA 2008-03-25 23:13:43 EDT
Created attachment 93520 [details]
patch_for_org.eclipse.datatools.enablement.sybase.asa.ui

patch_for_org.eclipse.datatools.enablement.sybase.asa.ui
Comment 9 song lin CLA 2008-03-25 23:14:18 EDT
Created attachment 93521 [details]
patch_for_org.eclipse.datatools.enablement.sybase.asa

patch_for_org.eclipse.datatools.enablement.sybase.asa
Comment 10 song lin CLA 2008-03-25 23:14:56 EDT
Created attachment 93522 [details]
patch_for_org.eclipse.datatools.enablement.sybase.ase.dbdefinition

patch_for_org.eclipse.datatools.enablement.sybase.ase.dbdefinition
Comment 11 song lin CLA 2008-03-25 23:15:32 EDT
Created attachment 93523 [details]
patch_for_org.eclipse.datatools.enablement.sybase.ase.models

patch_for_org.eclipse.datatools.enablement.sybase.ase.models
Comment 12 song lin CLA 2008-03-25 23:16:02 EDT
Created attachment 93524 [details]
patch_for_org.eclipse.datatools.enablement.sybase.ase.ui

patch_for_org.eclipse.datatools.enablement.sybase.ase.ui
Comment 13 song lin CLA 2008-03-25 23:16:56 EDT
Created attachment 93525 [details]
patch_for_org.eclipse.datatools.enablement.sybase.ase

patch_for_org.eclipse.datatools.enablement.sybase.ase
Comment 14 song lin CLA 2008-03-25 23:17:42 EDT
Created attachment 93526 [details]
patch_for_org.eclipse.datatools.enablement.sybase

patch_for_org.eclipse.datatools.enablement.sybase
Comment 15 Brian Fitzpatrick CLA 2008-03-26 10:38:29 EDT
This looks good guys. I look forward to seeing it delivered into CVS. Then we can massage the enablement map file to make sure these plug-ins are built as part of the nightly build.
Comment 16 Brian Fitzpatrick CLA 2008-03-27 12:22:18 EDT
This has been delivered and verified. John is manipulating the enablement feature definitions to remove the old ase.profile plug-in. We moved the "Other Driver" driver templates into the *.asa and *.ase plug-ins and will track individual issues as new BZ entries. 

Great work. This will show up in the M6 build.
Comment 17 Larry Dunnell CLA 2008-03-27 13:25:54 EDT
The plug-ins org.eclipse.datatools.enablement.sybase.asa and org.eclipse.datatools.enablement.sybase still have UI dependencies.
Comment 18 Brian Fitzpatrick CLA 2008-03-27 13:29:19 EDT
Ok. We can work that out. The good thing is that the plug-ins are now split out so we can finish off some of that refactoring process. I noticed that we also need to split out the connection profile extension into multiple pieces -- some in the non-ui plugin and some in the ui plugin. 

We can get this taken care of in the M7 timeframe for sure.
Comment 19 song lin CLA 2008-04-27 09:27:37 EDT
Created attachment 97725 [details]
patch for org.eclipse.datatools.enablement.sybase

patch
Comment 20 song lin CLA 2008-04-27 09:28:46 EDT
Created attachment 97726 [details]
patch for org.eclipse.datatools.enablement.sybase.asa/ase

patch
Comment 21 song lin CLA 2008-04-27 09:29:43 EDT
Created attachment 97727 [details]
patch for org.eclipse.datatools.enablement.sybase.models
Comment 22 song lin CLA 2008-04-27 09:30:33 EDT
Created attachment 97728 [details]
patch for org.eclipse.datatools.enablement.sybas.ui
Comment 23 Brian Fitzpatrick CLA 2008-04-28 13:39:53 EDT
Ok. After doing some massaging to the patches, I've delivered everything and updated the feature so that all of these. I will be creating a critical bug and assigning it to Lin to fix whatever's gone horribly wrong with populating the tree for ASA & ASE, since now we're throwing Class Cast Exceptions all over the place.
Comment 24 Brian Fitzpatrick CLA 2008-04-28 13:43:06 EDT
Larry, can you take a look to see if this fixes the remaining issues you had with the UI/non-UI separation? Based on my tests and looking at the plug-ins after Lin's patches, which I have delivered, I think it meets the requirement.
Comment 25 song lin CLA 2008-04-29 02:35:30 EDT
(In reply to comment #23)
> Ok. After doing some massaging to the patches, I've delivered everything and
> updated the feature so that all of these. I will be creating a critical bug and
> assigning it to Lin to fix whatever's gone horribly wrong with populating the
> tree for ASA & ASE, since now we're throwing Class Cast Exceptions all over the
> place.

See https://bugs.eclipse.org/bugs/show_bug.cgi?id=229212, I fix this class cast bug here.
Comment 26 Larry Dunnell CLA 2008-04-29 13:15:17 EDT
FYI. I'm unable to review any of the attached patches.  They display as random characters(looks like binary.)

If you are saying these patches have been delivered then there are many problems in HEAD as follows:

org.eclipse.datatools.enablement.sybase  - ui (depends on  org.eclipse.datatools.sqltools.editor.core)
org.eclipse.datatools.enablement.sybase.asa - ui (depends on  org.eclipse.datatools.sqltools.editor.core)
org.eclipse.datatools.enablement.sybase.asa.models - ui - (depends on org.eclipse.datatools.enablement.sybase which depends on org.eclipse.datatools.sqltools.editor.core)
org.eclipse.datatools.enablement.sybase.ase - ui (multiple ui dependencies)
org.eclipse.datatools.enablement.sybase.ase.models - ui  - (depends on org.eclipse.datatools.enablement.sybase which depends on org.eclipse.datatools.sqltools.editor.core)
Comment 27 Brian Fitzpatrick CLA 2008-04-29 13:25:43 EDT
is there a reason that o.e.d.e.sybase can't have o.e.d.sqtools.editor.core as a dependency?
Comment 28 Larry Dunnell CLA 2008-04-29 13:29:55 EDT
o.e.d.sqtools.editor.core has massive UI dependencies.  So if any of those plug-ins I listed are supposed to be non-ui then they cannot depend on o.e.d.sqtools.editor.core.
Comment 29 Brian Fitzpatrick CLA 2008-04-29 13:37:38 EDT
Lin, we're close... But as Larry points out below, we have big problems depending on o.e.d.sqtools.editor.core, as it has massive UI dependencies.

So if there's code that depends on o.e.d.sqltools.editor.core (like in o.e.d.e.sybase, o.e.d.e.sybase.asa, o.e.d.e.sybase.ase, and so on) we need to move that to the UI plug-ins so there are NO UI dependencies on non-UI plug-ins --

org.eclipse.datatools.enablement.sybase  - ui (depends on 
org.eclipse.datatools.sqltools.editor.core)
org.eclipse.datatools.enablement.sybase.asa - ui (depends on 
org.eclipse.datatools.sqltools.editor.core)
org.eclipse.datatools.enablement.sybase.asa.models - ui - (depends on
org.eclipse.datatools.enablement.sybase which depends on
org.eclipse.datatools.sqltools.editor.core)
org.eclipse.datatools.enablement.sybase.ase - ui (multiple ui dependencies)
org.eclipse.datatools.enablement.sybase.ase.models - ui  - (depends on
org.eclipse.datatools.enablement.sybase which depends on
org.eclipse.datatools.sqltools.editor.core)

Please take another pass at reorganizing to remove this last major UI dependency and then I think we should be good to go.

This MUST take priorty so we can have this done for the M7/RC0 milestone.
Comment 30 Brian Fitzpatrick CLA 2008-04-29 14:47:41 EDT
Because of the increased risk of delivering further changes to address this ui/non-ui refactoring, we are moving this to the RC1 release and changing it back to critical.
Comment 31 Brian Fitzpatrick CLA 2008-05-19 15:06:23 EDT
Refactoring SQL Dev Tools into UI & non-UI plug-ins will have to wait until the next major release. Unfortunately this bumps this to future
Comment 32 Hui Cao CLA 2009-04-29 02:37:28 EDT
Delivered.