Skip to content

Commit

Permalink
Merge pull request #224 from eclipse-passage/563753
Browse files Browse the repository at this point in the history
Bug 563753 - [Passage] Dashboard "Create" link should work
  • Loading branch information
eparovyshnaya authored May 30, 2020
2 parents 198b87b + 629ae66 commit 39da453
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ Export-Package: org.eclipse.passage.loc.dashboard.ui;x-internal:=true,
org.eclipse.passage.loc.dashboard.ui.panel;x-internal:=true,
org.eclipse.passage.loc.dashboard.ui.wizards;x-internal:=true,
org.eclipse.passage.loc.internal.dashboard.ui.i18n;x-internal:=true
Bundle-ActivationPolicy: lazy
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ public Optional<C> get() {
}

protected Optional<EObject> showWizard(Class<C> type, EditingDomainRegistry<?> registry) {
EntityMetadata metadata = context.get(ComposableClassMetadata.class).find(type).get();
Optional<EntityMetadata> found = context.get(ComposableClassMetadata.class).find(type);
if (!found.isPresent()) {
return Optional.empty();
}
EntityMetadata metadata = found.get();
EClass eClass = metadata.eClass();
ResourceLocator resourceLocator = new EClassResources(eClass).get();
String typeName = resourceLocator.getString(NLS.bind("_UI_{0}_type", eClass.getName())); //$NON-NLS-1$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ protected void selectPath() {
@Override
protected void initControls() {
super.initControls();
text.setText(basePath() + File.separator + new EObjectNameIdentifier(eClass) + '.' + extension);
text.setText(basePath() + File.separator + new EObjectNameIdentifier(eClass).apply('.') + '.' + extension);
}

protected String basePath() {
Expand Down

0 comments on commit 39da453

Please sign in to comment.