From Fedora Project Wiki

No edit summary
Line 44: Line 44:
* [http://www.java2s.com/Open-Source/Java-Document/IDE-Eclipse/ui-examples/Catalogui-examples.htm eclipse-ui-examples]
* [http://www.java2s.com/Open-Source/Java-Document/IDE-Eclipse/ui-examples/Catalogui-examples.htm eclipse-ui-examples]
* [http://kickjava.com/src/org/eclipse/jface/wizard/Wizard.java.htm kickjava - sample wizard codes]
* [http://kickjava.com/src/org/eclipse/jface/wizard/Wizard.java.htm kickjava - sample wizard codes]
* [http://cvalcarcel.wordpress.com/2009/07/26/writing-an-eclipse-plug-in-part-4-create-a-custom-project-in-eclipse-new-project-wizard-the-behavior/ debug a custom wizard project creation]


===BrainStormings - comments ===
===BrainStormings - comments ===

Revision as of 22:40, 6 September 2011

Fedora Packager Process plug-in

Tickets

Test Cases

Resources

BrainStormings - comments

Challenges

  • To initialize a git local repository:
http://wiki.eclipse.org/EGit/User_Guide#Create_Repository
http://wiki.eclipse.org/EGit/User_Guide#Considerations_for_Git_Repositories_to_be_used_in_Eclipse
  • To install window builder
yum --enablerepo=rawhide update eclipse-pde
Install Window Builder from http://download.eclipse.org/releases/indigo
  • Window Builder
To be able to create a new 'WizardNewCreationProject' -> import org.eclipse.ui.dialogs in manifest -> select SWT -> 'wizard page'-> 'org.eclipse.ui.dialogs.WizardNewCreationProject
  • If you want to change the 'project name' to 'package name' for instance.
you need to add your own string, then externalize the string.
public class projectNewWizard extends Wizard implements INewWizard {
    ......
    public void init(IWorkbench workbench, IStructuredSelection selection) {
      super.addPages();
      mainPage = new WizardNewProjectCreationPage(PAGE_NAME){ //$NON-NLS-1$
        public void createControl(Composite parent) {
        super.createControl(parent);
        Composite container = (Composite) getControl();
        // I want to do something here to override it....
        projectLabel.setText("Package Name"); // this string should be externalized
     

// Here is where it's declared.
public class WizardNewProjectCreationPage extends WizardPage {
    ....
    /**
    * Creates the project name specification controls.
    *
    * @param parent the parent composite
    */
    private final void createProjectNameGroup(Composite parent) {
    ....
       // new project label
       Label projectLabel = new Label(projectGroup, SWT.NONE);
       projectLabel.setText(IDEWorkbenchMessages.WizardNewProjectCreationPage_nameLabel);  // want to change this message in org.eclipse.ui.internal.ide.messages.properties