blob: 2ea8e68d0371f3e3f2a295696b00145e53f76f39 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2011 Kai Toedter and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/.
*.
* SPDX-License-Identifier: EPL-2.0.
*
* Contributors:
* Kai Toedter - initial API and implementation
* Rushan R. Gilmullin - adaption to vaaclipse needs
*******************************************************************************/
package org.eclipse.osbp.vaaclipse.presentation.renderers;
import org.eclipse.e4.core.contexts.IEclipseContext;
import org.eclipse.e4.ui.model.application.ui.MElementContainer;
import org.eclipse.e4.ui.model.application.ui.MUIElement;
/**
* The beginning point of this renderer interface is a Kai Toedter's
* GenericRenderer class. I place it in vaaclipse packages temproraly - until
* the generic renderer will be the part of eclipse project.
*
* @author Kai Toedter
*/
public interface GenericRenderer {
void createWidget(MUIElement element, MElementContainer<MUIElement> parent);
void disposeWidget(MUIElement element);
void processContents(MElementContainer<MUIElement> element);
void addChildGui(MUIElement child, MElementContainer<MUIElement> element);
void removeChildGui(MUIElement element, MElementContainer<MUIElement> parent);
boolean isLazy();
void hookControllerLogic(MUIElement element);
IEclipseContext getContext(MUIElement part);
void setVisible(MUIElement changedElement, boolean visible);
void bindWidget(MUIElement element);
void unbindWidget(MUIElement element);
}