-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IEP-403 Fixing NPE in the new component wizard (#249)
* Fixing NPE in the new component wizard * update selectedProject value with value from combo button * add newComponentWizard to the new shortcut * Update NewComponentWizardPage.java Co-authored-by: Kondal Kolipaka <[email protected]>
- Loading branch information
1 parent
317c5c7
commit 5c4bcc4
Showing
5 changed files
with
88 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/handlers/NewComponentHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.espressif.idf.ui.handlers; | ||
|
||
import org.eclipse.core.commands.AbstractHandler; | ||
import org.eclipse.core.commands.ExecutionEvent; | ||
import org.eclipse.core.commands.ExecutionException; | ||
import org.eclipse.jface.wizard.WizardDialog; | ||
import org.eclipse.swt.widgets.Display; | ||
import org.eclipse.ui.PlatformUI; | ||
|
||
import com.espressif.idf.ui.wizard.NewComponentWizard; | ||
|
||
public class NewComponentHandler extends AbstractHandler | ||
{ | ||
|
||
@Override | ||
public Object execute(ExecutionEvent event) throws ExecutionException | ||
{ | ||
NewComponentWizard newComponentWizard = new NewComponentWizard(); | ||
newComponentWizard.init(PlatformUI.getWorkbench(), null); | ||
|
||
WizardDialog dialog = new WizardDialog(Display.getDefault().getActiveShell(), newComponentWizard); | ||
dialog.create(); | ||
dialog.open(); | ||
return null; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters