Package ru.runa.jbpm.ui

Source Code of ru.runa.jbpm.ui.ApplicationWorkbenchWindowAdvisor

package ru.runa.jbpm.ui;

import org.eclipse.ui.application.ActionBarAdvisor;
import org.eclipse.ui.application.IActionBarConfigurer;
import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
import org.eclipse.ui.application.WorkbenchWindowAdvisor;

import ru.runa.jbpm.ui.resource.Messages;

public class ApplicationWorkbenchWindowAdvisor extends WorkbenchWindowAdvisor {

    public ApplicationWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer) {
        super(configurer);
    }

    public ActionBarAdvisor createActionBarAdvisor(IActionBarConfigurer configurer) {
      return new ApplicationActionBarAdvisor(configurer);
    }
   
    public void preWindowOpen() {
        IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
        configurer.setShowStatusLine(false);
        configurer.setTitle(Messages.getString("ApplicationWorkbenchWindowAdvisor.window.title"));
        configurer.getWorkbenchConfigurer().setSaveAndRestore(true);
        configurer.setShowCoolBar(true);
    }

}
TOP

Related Classes of ru.runa.jbpm.ui.ApplicationWorkbenchWindowAdvisor

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.