org.jbpm.designer.client.DesignerPresenterActivity Maven / Gradle / Ivy
/*
* Copyright 2012 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jbpm.designer.client;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import javax.annotation.Generated;
import javax.enterprise.context.Dependent;
import javax.inject.Inject;
import javax.inject.Named;
import org.uberfire.client.workbench.annotations.AssociatedResources;
import org.uberfire.client.workbench.annotations.Priority;
import org.uberfire.client.mvp.AbstractWorkbenchEditorActivity;
import org.uberfire.client.mvp.PlaceManager;
import org.uberfire.mvp.PlaceRequest;
import org.uberfire.workbench.model.menu.Menus;
import org.uberfire.backend.vfs.ObservablePath;
import com.google.gwt.user.client.ui.IsWidget;
@Dependent
@Generated("org.uberfire.annotations.processors.WorkbenchEditorProcessor")
@Named("jbpm.designer")
@AssociatedResources({
org.jbpm.designer.client.type.Bpmn2Type.class
})
@Priority(0)
/*
* WARNING! This class is generated. Do not modify.
*/
public class DesignerPresenterActivity extends AbstractWorkbenchEditorActivity {
private static final Collection ROLES = Collections.emptyList();
private static final Collection TRAITS = Collections.emptyList();
@Inject
private DesignerPresenter realPresenter;
@Inject
//Constructor injection for testing
public DesignerPresenterActivity(final PlaceManager placeManager) {
super( placeManager );
}
@Override
public void onStartup(final ObservablePath path,
final PlaceRequest place) {
super.onStartup( path, place );
realPresenter.onStartup( path, place );
}
@Override
public boolean onMayClose() {
return realPresenter.canClose();
}
@Override
public void onClose() {
super.onClose();
realPresenter.onClose();
}
@Override
public IsWidget getTitleDecoration() {
return realPresenter.getTitle();
}
@Override
public String getTitle() {
return realPresenter.getTitleText();
}
@Override
public IsWidget getWidget() {
return realPresenter.getView();
}
@Override
public Menus getMenus() {
return realPresenter.getMenus();
}
@Override
public Collection getRoles() {
return ROLES;
}
@Override
public Collection getTraits() {
return TRAITS;
}
@Override
public String getSignatureId() {
return "org.jbpm.designer.client.DesignerPresenterActivity";
}
@Override
public String getIdentifier() {
return "jbpm.designer";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy