Skip to main content
summaryrefslogtreecommitdiffstats
blob: 0272ffa9f2c524a6abfb9bb80cdd13a95992d96c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package org.eclipse.fx.testcases.e4.handlers;

import org.eclipse.e4.core.di.annotations.Execute;
import org.eclipse.e4.ui.model.application.ui.basic.MPart;
import org.eclipse.fx.ui.workbench.services.ELifecycleService;

public class RegisterDynamicLifecycle {
	
	@Execute
	public void execute(ELifecycleService service, MPart part){
		System.err.println(part.getLabel());
		service.registerLifecycleURI(part, "bundleclass://org.eclipse.fx.testcases.e4/"+
		"org.eclipse.fx.testcases.e4.lifecycle.SecondLifeCycle");
	}

}

Back to the top