HardCoded the import path in eclipse plugins development
Posted
by user295636
on Stack Overflow
See other posts from Stack Overflow
or by user295636
Published on 2010-03-17T12:26:55Z
Indexed on
2010/03/17
12:31 UTC
Read the original article
Hit count: 211
Hi In eclipse when we open:-
**File->Import->General->Existing Project into workspace then it prompt a import window. Where We have to select a Root project Directory(Browse)..so in this i want to hardcode the Browse path. By default it goes to workspace directory..but i want a fix path like.. C:\Tmp ..while click on browse button it should go to C:\Tmp directory....Can anyone help me in this.. how to do this i have tried setfilterpath() but it is not supporting in wizard case..i have done my code like this:
public class OpenImportWizardAction extends Action {
public void run() {
IWorkbench workbench = PlatformUI.getWorkbench();
Shell shell = workbench.getActiveWorkbenchWindow().getShell();
ExternalProjectImportWizard wizard= new ExternalProjectImportWizard();
wizard.init(workbench,new StructuredSelection());
WizardDialog dialog= new WizardDialog(shell, wizard);
dialog.create();
dialog.open();
}
}
© Stack Overflow or respective owner