0

I want to build new wizard and to extends from WizardNewFileCreationPage

I have 2 questions :

  1. is it possible add new button after the FileName ? Do I need to override the create createControl and then to add my logic ?

  2. is it possible to hide the "Advanced" button ?

Dariusz
  • 21,561
  • 9
  • 74
  • 114
user1365697
  • 5,819
  • 15
  • 60
  • 96

2 Answers2

2

You can turn of the Advanced button by overriding createAdvancedControls:

@Override
protected void createAdvancedControls(Composite parent)
{
}

You could also create your button in this method.

greg-449
  • 109,219
  • 232
  • 102
  • 145
0

Beside override createAdvancedControls method, you also need to override createLinkTarget and validateLinkedResource methods. Those are also involved.

    // Hide create link target
    @Override 
    protected void createLinkTarget() {
        return;
    }
    //Hide link validation
    @Override 
    protected IStatus validateLinkedResource() {        
        return Status.OK_STATUS;
    }