/*
 * JBoss, Home of Professional Open Source.
 *
 * See the LEGAL.txt file distributed with this work for information regarding copyright ownership and licensing.
 *
 * See the AUTHORS.txt file distributed with this work for a full listing of individual contributors.
 */
package com.metamatrix.modeler.diagram.ui.editor;
  
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.viewers.ISelection;
import com.metamatrix.modeler.ui.editors.ModelEditorPage;
import com.metamatrix.ui.actions.GlobalActionsMap;

/**
 * DiagramActionAdapter
 */
public interface IDiagramActionAdapter {
    
    void pageActivated();
    
    void pageDeactivated();

    void setDiagramEditor( ModelEditorPage editor);
    
    void contributeToMenuManager(IMenuManager theMenuMgr, ISelection selection);
    
    boolean shouldOverrideMenu(ISelection selection);
    
    void contributeExportedActions(IMenuManager theMenuMgr);
    
    GlobalActionsMap getGlobalActions();
    
    void contributeToDiagramToolBar();
    
    void enableDiagramToolbarActions();
    
    void disposeOfActions();
    
    void handleNotification(Notification theNotification);
        
}
