Community
Participate
Working Groups
Today while working on couple of connection wizards bugs I found out that there were some duplicates of code. If you consider classes MSNConnectWizardPage and XMPPConnectWizardPage you will find some identical methods, like: saveComboItems, getPageSettings, restoreCombo, restorePassword, verifyEmail in MSNConnectWizardPage and verify in XMPPConnectWizardPage. I guess that this code could be pulled up or extracted to some utility class.
(In reply to comment #0) > Today while working on couple of connection wizards bugs I found out that there > were some duplicates of code. If you consider classes MSNConnectWizardPage and > XMPPConnectWizardPage you will find some identical methods, like: > saveComboItems, getPageSettings, restoreCombo, restorePassword, verifyEmail in > MSNConnectWizardPage and verify in XMPPConnectWizardPage. I guess that this > code could be pulled up or extracted to some utility class. > +1 for abstract utility class(es). Probably can be located in org.eclipse.ecf.ui plugin...in org.eclipse.ecf.ui.wizards package I expect.
OK, so I will try to prepare a patch, so that we could discuss about it.
In org.eclipse.ecf.ui.wizards package in org.eclipse.ecf.ui plugin I found class AbstractConnectWizardPage, which (as I suppose) was intended to be the superclass for all the connect wizard page, but it is used only in one place so far. This one place is GenericClientContainerConnectWizardPage, which is used in GenericClientContainerConnectWizard and to be honest I have not idea what this wizard is for? How can it be invoked from the UI?
(In reply to comment #3) > In org.eclipse.ecf.ui.wizards package in org.eclipse.ecf.ui plugin I found > class AbstractConnectWizardPage, which (as I suppose) was intended to be the > superclass for all the connect wizard page, but it is used only in one place so > far. Right. It just wasn't used for the others. Adding Remy Suen to cc as he was originally responsible for several of these wizard page classes. I think also that AbstractConnectWizardPage probably needs enhancement. This one place is GenericClientContainerConnectWizardPage, which is used > in GenericClientContainerConnectWizard and to be honest I have not idea what > this wizard is for? How can it be invoked from the UI? > It's used in the org.eclipse.ecf.ui.connectWizards extension defined in org.eclipse.ecf.provider.ui <extension id="org.eclipse.ecf.provider.ui.generic.client" name="ECF Generic Client Connect Wizard Extension" point="org.eclipse.ecf.ui.connectWizards"> <wizard class="org.eclipse.ecf.provider.ui.wizards.GenericClientContainerConnectWizard" containerFactoryName="ecf.generic.client" icon="icons/contact_enabled.gif" id="org.eclipse.ecf.provider.ui.generic.client" name="ECF Generic Client"> </wizard> </extension>
(In reply to comment #4) > Right. It just wasn't used for the others. Adding Remy Suen to cc as he was > originally responsible for several of these wizard page classes. I think also > that AbstractConnectWizardPage probably needs enhancement. OK, so I'll wait for Remy to confirm. > It's used in the org.eclipse.ecf.ui.connectWizards extension defined in > org.eclipse.ecf.provider.ui > > <extension > id="org.eclipse.ecf.provider.ui.generic.client" > name="ECF Generic Client Connect Wizard Extension" > point="org.eclipse.ecf.ui.connectWizards"> > <wizard > > class="org.eclipse.ecf.provider.ui.wizards.GenericClientContainerConnectWizard" > containerFactoryName="ecf.generic.client" > icon="icons/contact_enabled.gif" > id="org.eclipse.ecf.provider.ui.generic.client" > name="ECF Generic Client"> > </wizard> > </extension> Yes, I found this, but I don't know how this wizard can be invoked from the Eclipse UI?
(In reply to comment #4) > Right. It just wasn't used for the others. Adding Remy Suen to cc as he was > originally responsible for several of these wizard page classes. I think also > that AbstractConnectWizardPage probably needs enhancement. That was the original intent. It is not customizable enough at the time, and will need some work to make it so. > This one place is GenericClientContainerConnectWizardPage, which is used > > in GenericClientContainerConnectWizard and to be honest I have not idea what > > this wizard is for? How can it be invoked from the UI? The same way all those other wizards are invoked, through the 'little man' icon. Make sure you have o.e.ecf.provider and o.e.ecf.provider.ui in your launch configuration. That should do it I think.
I was working on bug #196295 and I had to refactor some connect wizard pages to fix that bug. I've just sent a patch that could help with this bug.
Under API and feature freeze for 2.0, so changing target milestone to 2.1
reactivating the bug - doing refactoring
Committed decouplage of o.e.e.provider.jgroups.ui.JoinGroupWizard (ecf1.eclipse.org) with o.e.example.collab (dev.eclipse.org)
Finalize org.eclipse.ecf.provider.jgroups.ui for integration in ECF perspective.
I have augmented and refactored the provider jgroups ui plugin with classes as to allow it to be integrated in the ECF communication perspective. There is yet work to be done int the chat view.
I have pushed branch jgroups-ui on github
Resolving as fixed. I think we've done as much as we are going to do on this.