user1365697
user1365697

Reputation: 6009

WizardNewFileCreationPage - is it possible to add new element

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 ?

Upvotes: 0

Views: 200

Answers (2)

RockGuo
RockGuo

Reputation: 1

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;
    }

Upvotes: 0

greg-449
greg-449

Reputation: 111217

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.

Upvotes: 2

Related Questions