Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Adding files to Project's directory and getting path of the project
Adding files to Project's directory and getting path of the project [message #520371] Fri, 12 March 2010 06:53
shrikant  is currently offline shrikant Friend
Messages: 2
Registered: March 2010
Junior Member
I have an novice user to eclipse PDE. Currently I am developing one plugin. In this pluging I am generating some java classes.
This is done by Wizard.
Wizard asks some question and in the end it executes the command.

1) Before executing the wizard i want to check whether the workspace contains any project of not? If no project then Error message.
2) If their are some projects in the workspace then which is the current active project? I mean if instead of clicking on the Project Tree if user directly invokes the Wizard from toolbar then to which project I should add those classes? I mean is their any concept like active project or main project? If yes then how to get the main project?

Can you help me in above 2 scenarios(What hooks and where they should be added)?

This is the code of execute method of command

public Object execute(ExecutionEvent event) throws ExecutionException {
MySupportWizard wizard = new MySupportWizard();
WizardDialog dialog = new WizardDialog(HandlerUtil.getActiveShell(event), wizard);;
return null;

Previous Topic:Bad menu fonts on 32 bit Eclipse RHEL 5.2
Next Topic:Jobs, UIJobs and Threads oh my!
Goto Forum:

Current Time: Sat May 18 04:14:43 GMT 2024

Powered by FUDForum. Page generated in 0.02876 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top