# How can my plugin listen for cursor or mouse events?

**URL:** <https://forum.katalon.com/t/how-can-my-plugin-listen-for-cursor-or-mouse-events/115667>\
**Category:** Integrations\
**Tags:** custom-plugin, plugins, katalon-studio\
**Created:** [January 27, 2024, 8:10am UTC](https://forum.katalon.com/t/how-can-my-plugin-listen-for-cursor-or-mouse-events/115667 "2024-01-27T08:10:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![WakaTime](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/wakatime/32/26555_2.png) [@WakaTime](https://forum.katalon.com/u/WakaTime)\
**Post date:** [January 27, 2024, 8:10am UTC](https://forum.katalon.com/t/how-can-my-plugin-listen-for-cursor-or-mouse-events/115667/1 "2024-01-27T08:10:36Z")

</div>

I’m building a plugin for Katalon Studio that needs to execute when the cursor moves inside Katalon Studio. Since this Katalon is eclipse based, I would need to use `org.eclipse.ui.PlatformUI` but it’s not available in the example plugin. I tried adding `org.eclipse.ui` as a dependency in my `pom.xml` but getting this error when running `mvn clean install`:

` The following artifacts could not be resolved: xml-apis:xml-apis-ext:jar:1.0.0.v20230923-0644 (absent): Could not find artifact xml-apis:xml-apis-ext:jar:1.0.0.v20230923-0644 in org.eclipse.platform (https://download.eclipse.org/releases/2023-09/)`

I’m trying to use `PlatformUI` to listen for editor document events. For ex:

```auto
// window changed event listener
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getPartService().addPartListener(editorListener);

```

Can someone help get this plugin working?

---

<div class="post-metadata">

**Author:** ![Elly\_Tran](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/elly_tran/32/21874_2.png) [@Elly\_Tran](https://forum.katalon.com/u/Elly_Tran)\
**Post date:** [January 29, 2024, 3:57am UTC](https://forum.katalon.com/t/how-can-my-plugin-listen-for-cursor-or-mouse-events/115667/2 "2024-01-29T03:57:25Z")

</div>

Hi,

I do not have much experience with this but Many well-experienced members of our Community are willing to help you. Looking forward to hearing from anyone soon.
