blob: 194d8ce4ff1de1c7680d7c03a45a69426fc39eaf [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2010 BREDEX GmbH.
* 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:
* BREDEX GmbH - initial API and implementation and/or initial documentation
*******************************************************************************/
package org.eclipse.jubula.toolkit.swt.provider;
import java.net.URL;
import java.util.Map;
import java.util.ResourceBundle;
import org.eclipse.jubula.toolkit.common.AbstractToolkitProvider;
import org.eclipse.jubula.toolkit.common.exception.ToolkitPluginException;
import org.eclipse.jubula.toolkit.common.utils.ToolkitUtils;
import org.eclipse.swt.widgets.Composite;
/**
* @author BREDEX GmbH
* @created 24.04.2007
*/
public class SWTToolkitProvider extends AbstractToolkitProvider {
/** <code>I18N_PROPERTIES</code> */
private static final String BUNDLE =
"org.eclipse.jubula.toolkit.swt.provider.I18nStrings"; //$NON-NLS-1$
/** {@inheritDoc} */
public Composite getAutConfigDialog(Composite parent, int style,
Map<String, String> autConfig, String autName)
throws ToolkitPluginException {
return ToolkitUtils.createAutConfigComponent(
"org.eclipse.jubula.client.ui.rcp.widgets.autconfig.SwtAutConfigComponent", //$NON-NLS-1$
this.getClass().getClassLoader(), parent, style,
autConfig, autName);
}
/** {@inheritDoc} */
public URL getComponentConfigurationFileURL() {
return ToolkitUtils.getURL(Activator.getDefault().getBundle(),
COMP_CONFIG_PATH);
}
/** {@inheritDoc} */
public ResourceBundle getResourceBundle() {
return ResourceBundle.getBundle(BUNDLE);
}
}