Package name.abuchen.portfolio.ui.handlers

Source Code of name.abuchen.portfolio.ui.handlers.OpenPartHandler

package name.abuchen.portfolio.ui.handlers;

import javax.inject.Named;

import name.abuchen.portfolio.ui.UIConstants;

import org.eclipse.e4.core.di.annotations.Execute;
import org.eclipse.e4.ui.model.application.ui.basic.MPart;
import org.eclipse.e4.ui.workbench.modeling.EPartService;

public class OpenPartHandler
{
    @Execute
    public void execute(EPartService partService, @Named(UIConstants.Parameter.PART) String partname)
    {
        MPart part = partService.findPart(partname);
        part.setVisible(true);
        partService.activate(part, true);
    }
}
TOP

Related Classes of name.abuchen.portfolio.ui.handlers.OpenPartHandler

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.