|
|
@ -63,15 +63,13 @@ public final class ImportModel implements ActionListener { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void actionPerformed(ActionEvent ev) { |
|
|
|
public void actionPerformed(ActionEvent ev) { |
|
|
|
if (context == null) { |
|
|
|
Project context = OpenProjects.getDefault().getMainProject(); |
|
|
|
this.context = OpenProjects.getDefault().getMainProject(); |
|
|
|
|
|
|
|
if (context == null) { |
|
|
|
if (context == null) { |
|
|
|
context = ProjectSelection.showProjectSelection(); |
|
|
|
context = ProjectSelection.showProjectSelection(); |
|
|
|
} |
|
|
|
} |
|
|
|
if (context == null) { |
|
|
|
if (context == null) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (context.getLookup().lookup(ProjectAssetManager.class) == null) { |
|
|
|
if (context.getLookup().lookup(ProjectAssetManager.class) == null) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|