Eclipse Equinox Documentation

Logo

This is the documentation of the Eclipse Equinox Framework.

View the Project on GitHub eclipse-equinox/equinox

Application Console Commands

Description

Commands for managing Eclipse applications

The Equinox Application commands provide functionality for managing Eclipse applications, including listing, starting, stopping, scheduling, and locking applications. These commands are available through the console command provider in the org.eclipse.equinox.app bundle.

Commands

Listing Applications

Application Lifecycle

Application Locking

Application Scheduling

Examples

List all installed applications

g! apps
org.eclipse.ui.ide.workbench [launchable]
org.eclipse.equinox.app.test [running] [launchable]
org.example.app [not launchable] [locked]

This displays all registered applications with their current state, showing whether they are:

List all running applications

g! activeApps
org.eclipse.ui.ide.workbench.12345 [running]
org.eclipse.equinox.app.test.67890 [stopping]

This shows all active application instances with their instance IDs and current state (running or stopping).

Start an application

g! startApp org.eclipse.ui.ide.workbench
Launched application instance: org.eclipse.ui.ide.workbench.12345

You can also pass arguments to the application:

g! startApp org.example.myapp arg1 arg2 arg3
Launched application instance: org.example.myapp.98765

Stop a running application

g! stopApp org.eclipse.ui.ide.workbench.12345
Stopped application instance: org.eclipse.ui.ide.workbench.12345

You can stop an application by either its instance ID or its application ID.

Lock an application

g! lockApp org.example.myapp
Locked application: org.example.myapp

Locking an application prevents new instances from being launched. It does not affect already running instances.

Unlock an application

g! unlockApp org.example.myapp
Unlocked application: org.example.myapp

Schedule an application

g! schedApp org.example.myapp "(hour=12)" false
Scheduled application: org.example.myapp

The second parameter is a time filter using LDAP filter syntax (RFC 1960). The third parameter indicates whether the schedule should be recurring (true) or one-time (false).

Unschedule an application

g! unschedApp org.example.myapp
Unscheduled application: org.example.myapp

Notes

Related links: