Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
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 @@ -6,7 +6,6 @@
/build/
/tmp/
*.log
*.jar
*.zip
target/
.gradle/
Expand All @@ -20,3 +19,5 @@ Thumbs.db
*.bak
*.rej
*.launch

/bin/

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IFileEditorInput;
Expand Down Expand Up @@ -517,16 +518,16 @@ public void earlyStartup() {
}


Job initJob = new Job("Initialize Feature Management") {
@Override
protected IStatus run(IProgressMonitor monitor) {
FeatureManager manager = new FeatureManager();
manager.installFeatureIfNeeded();
return Status.OK_STATUS;
}
};

initJob.schedule(2000);
// Job initJob = new Job("Initialize Feature Management") {
// @Override
// protected IStatus run(IProgressMonitor monitor) {
// FeatureManager manager = new FeatureManager();
// manager.installFeatureIfNeeded();
// return Status.OK_STATUS;
// }
// };
//
// initJob.schedule(2000);

System.out.println("Early startup: Feature management scheduled");

Expand Down Expand Up @@ -759,6 +760,7 @@ public void saveEventDataAndSendtoServer(IWorkbench workbench) {

//Getting Eclipse Version
String eclipseVersion = Platform.getBundle("org.eclipse.core.runtime").getVersion().toString();


List<SequentialEventData> mousEventList = new ArrayList<>();
List<SequentialEventData> keyEvents = new ArrayList<>();
Expand Down Expand Up @@ -786,10 +788,11 @@ public void saveEventDataAndSendtoServer(IWorkbench workbench) {
// System.out.println("EDJO"+edjo);
edjo.setIPAddress(Utils.getIpAddress());
edjo.setMACAddress(Utils.getMacAddress());
edjo.setPluginVersion("V2.0.2");
edjo.setPluginVersion("V2.1.0");
edjo.setOSInfo(osName, osVersion, osArch);
edjo.setJavaInfo(javaVersion, javaVendor);
edjo.setEclipseInfo(eclipseVersion);

System.out.println("retrived key would be: ");
Gson gson = new Gson();
try {
Expand Down Expand Up @@ -1352,6 +1355,10 @@ else if (selectedElement instanceof IJavaElement) {

private void removeSelectionListener(IWorkbenchWindow window) {
if (window == null) return;
Shell shell = window.getShell();
if (shell == null || shell.isDisposed()) {
return; // Window is already disposed, nothing to clean up
}
Display display = window.getShell().getDisplay();
Runnable unregister = () -> {
try {
Expand Down
Loading