score:1

Accepted answer

i would suggest you use :

    public void editfeature()
    {
display disp = new display();
shell she = new shell(disp);
popupeditform p = new popupeditform(platformui.getworkbench().getactiveworkbenchwindow().getshell());
    }

ideally dialog should be above window.

score:1

try the following:

public void editfeature(){
    popupeditform p = new popupeditform(display.getdefault().getactiveshell());
}

since popupeditform is a titleareadialog which requires a parent shell, you should not have to create an new shell for it, but rather pass an existing shell (like the main application shell).

since you are in an rcp view you might also do:

public void editfeature(){
    popupeditform p = new popupeditform(getsite().getshell());
}

Related Query

More Query from same tag