Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.e4.tools.emf.editor3x/src/org/eclipse/e4/tools/emf/editor3x/extension/PartContributionEditor.java')
-rw-r--r--bundles/org.eclipse.e4.tools.emf.editor3x/src/org/eclipse/e4/tools/emf/editor3x/extension/PartContributionEditor.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/bundles/org.eclipse.e4.tools.emf.editor3x/src/org/eclipse/e4/tools/emf/editor3x/extension/PartContributionEditor.java b/bundles/org.eclipse.e4.tools.emf.editor3x/src/org/eclipse/e4/tools/emf/editor3x/extension/PartContributionEditor.java
index 83eadf22..cd15cfa9 100644
--- a/bundles/org.eclipse.e4.tools.emf.editor3x/src/org/eclipse/e4/tools/emf/editor3x/extension/PartContributionEditor.java
+++ b/bundles/org.eclipse.e4.tools.emf.editor3x/src/org/eclipse/e4/tools/emf/editor3x/extension/PartContributionEditor.java
@@ -7,6 +7,7 @@
*
* Contributors:
* Tom Schindl <tom.schindl@bestsolution.at> - initial API and implementation
+ * Sopot Cela <sopotcela@gmail.com>
******************************************************************************/
package org.eclipse.e4.tools.emf.editor3x.extension;
@@ -46,7 +47,7 @@ public class PartContributionEditor implements IContributionClassCreator {
if ( forceNew || contribution.getContributionURI() == null
|| contribution.getContributionURI().trim().length() == 0
|| !contribution.getContributionURI().startsWith("bundleclass:")) {
- NewPartClassWizard wizard = new NewPartClassWizard();
+ NewPartClassWizard wizard = new NewPartClassWizard(contribution.getContributionURI());
wizard.init(null, new StructuredSelection(project));
WizardDialog dialog = new WizardDialog(shell, wizard);
if (dialog.open() == WizardDialog.OK) {
@@ -101,14 +102,10 @@ public class PartContributionEditor implements IContributionClassCreator {
if( t != null ) {
JavaUI.openInEditor(t);
} else {
- if( MessageDialog.openQuestion(shell, "Class not found", "The class '"+fullyQualified+"' was not found. Would you like to start the class creation wizard?") ) {
createOpen(contribution, domain, project, shell, true);
- }
}
} catch (JavaModelException e) {
- if( MessageDialog.openQuestion(shell, "Class not found", "The class '"+fullyQualified+"' was not found. Would you like to start the class creation wizard?") ) {
createOpen(contribution, domain, project, shell, true);
- }
} catch (PartInitException e) {
MessageDialog.openError(shell, "Failed to open editor", e.getMessage());
// TODO Auto-generated catch block

Back to the top