Skip to content

Commit

Permalink
removed now superfluous UI dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
rsfzi committed Jan 30, 2025
1 parent 44ec38a commit 75a22b6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ Require-Bundle: org.eclipse.xtext;visibility:=reexport,
de.uka.ipd.sdq.stoex.analyser;visibility:=reexport,
de.uka.ipd.sdq.errorhandling.core;bundle-version="5.2.1",
org.palladiosimulator.commons;bundle-version="5.2.1",
org.palladiosimulator.core-commons.mwe2;bundle-version="5.2.1";resolution:=optional,
org.eclipse.ui
org.palladiosimulator.core-commons.mwe2;bundle-version="5.2.1";resolution:=optional
Bundle-RequiredExecutionEnvironment: JavaSE-17
Export-Package: org.palladiosimulator.commons.stoex,
org.palladiosimulator.commons.stoex.api,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import javax.inject.Provider;

import org.eclipse.core.runtime.Platform;
import org.eclipse.ui.IEditorInput;
import org.palladiosimulator.commons.eclipseutils.ExtensionHelper;

import com.google.inject.Injector;
Expand Down Expand Up @@ -63,13 +62,6 @@ protected Optional<T> getExtension() {
if (!Platform.isRunning()) {
return Optional.empty();
}
try {
// This is done because the Xtext framework requires the Eclipse UI bundle to be loaded
// when running within the platform.
IEditorInput.class.getClass();
} catch (NoClassDefFoundError e) {
return Optional.empty();
}
final var foundExtensions = ExtensionHelper.<T> getExecutableExtensions(extensionPointId, extensionPointAttr);
if (foundExtensions.isEmpty()) {
return Optional.empty();
Expand Down

0 comments on commit 75a22b6

Please sign in to comment.