Bug 197505 Add Design Handle to Scriptable Objects
Currently in a report design, you can modify the design file by calling: reportContext.getReportRunnable().designHandle.getDesignHandle() Adding an object that is available by default called the DesignHandle would make this process significantly easier and more intuitive. The DesignHandle should be available at all of the same points that ReportContext is available.
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/ReportContextImpl.java
/*******************************************************************************
 * Copyright (c) 2005 Actuate Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *  Actuate Corporation  - initial API and implementation
 *******************************************************************************/
package org.eclipse.birt.report.engine.script.internal;
import java.io.Serializable;
import java.util.Locale;
import java.util.Map;
import org.eclipse.birt.report.engine.api.EngineConstants;
import org.eclipse.birt.report.engine.api.IEngineTask;
import org.eclipse.birt.report.engine.api.IRenderOption;
import org.eclipse.birt.report.engine.api.IReportRunnable;
import org.eclipse.birt.report.engine.api.script.IReportContext;
import org.eclipse.birt.report.engine.executor.ExecutionContext;
import com.ibm.icu.text.MessageFormat;
/**
 * Implementation of the IReportContext interface
 */
public class ReportContextImpl implements IReportContext