public code v1
This commit is contained in:
+37
@@ -0,0 +1,37 @@
|
||||
package flintstones.application.control.handler;
|
||||
|
||||
import javax.inject.Inject;
|
||||
|
||||
import org.eclipse.e4.core.contexts.ContextInjectionFactory;
|
||||
import org.eclipse.e4.core.contexts.IEclipseContext;
|
||||
import org.eclipse.e4.core.di.annotations.Execute;
|
||||
|
||||
import flintstones.application.model.IApplicationService;
|
||||
import flintstones.application.handlers.PerspectiveSwitcher;
|
||||
|
||||
/**
|
||||
* The Class NewHandler creates a new proyect.
|
||||
*/
|
||||
public class NewHandler {
|
||||
|
||||
/** The context. */
|
||||
@Inject
|
||||
IEclipseContext context;
|
||||
|
||||
/** The app service. */
|
||||
@Inject
|
||||
IApplicationService appService;
|
||||
|
||||
/**
|
||||
* Execute.
|
||||
*
|
||||
* @throws IOException Signals that an I/O exception has occurred.
|
||||
*/
|
||||
@Execute
|
||||
public void execute() {
|
||||
this.appService.newProblem();
|
||||
ContextInjectionFactory.make(PerspectiveSwitcher.class, context).changePerspective("flintstones.application.perspective.framework");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user