Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
import org.eclipse.m2e.core.internal.launch.AbstractMavenRuntime;
import org.eclipse.m2e.core.internal.launch.MavenExternalRuntime;
import org.eclipse.m2e.core.internal.launch.MavenRuntimeManagerImpl;
import org.eclipse.swt.program.Program;
import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IPersistableElement;
import org.eclipse.ui.IStartup;
Expand Down Expand Up @@ -85,6 +87,7 @@ public void earlyStartup() {
setFileAssociations();
setDefaultMavenInstallation();
setDefaultImportAndExportOptions();
showDeprecationMessage();
}

/**
Expand Down Expand Up @@ -297,5 +300,18 @@ public String getToolTipText() {
return "Getting Started";
}
}

public static void showDeprecationMessage() {
Display.getDefault().asyncExec(() -> {
boolean openLink = MessageDialog.openQuestion(Display.getDefault().getActiveShell(),
"WSO2 Integration Studio Deprecated",
"WSO2 Integration Studio is now deprecated. Please migrate to VS Code for the latest tools and support.\n\n"
+ "Would you like to visit the VS Code Marketplace?");

// Open the URL if the user clicks "Yes"
if (openLink) {
Program.launch("https://marketplace.visualstudio.com/items?itemName=WSO2.micro-integrator");
}
});
}
}
Loading