001: /*
002: * Copyright 2006 Pentaho Corporation. All rights reserved.
003: * This software was developed by Pentaho Corporation and is provided under the terms
004: * of the Mozilla Public License, Version 1.1, or any later version. You may not use
005: * this file except in compliance with the license. If you need a copy of the license,
006: * please go to http://www.mozilla.org/MPL/MPL-1.1.txt. The Original Code is the Pentaho
007: * BI Platform. The Initial Developer is Pentaho Corporation.
008: *
009: * Software distributed under the Mozilla Public License is distributed on an "AS IS"
010: * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. Please refer to
011: * the license for the specific language governing your rights and limitations.
012: */
013: package org.pentaho.designstudio.intro;
014:
015: import org.eclipse.swt.SWT;
016: import org.eclipse.swt.graphics.Image;
017: import org.eclipse.swt.layout.GridData;
018: import org.eclipse.swt.layout.GridLayout;
019: import org.eclipse.swt.widgets.Composite;
020: import org.eclipse.swt.widgets.Label;
021: import org.eclipse.ui.IMemento;
022: import org.eclipse.ui.IPropertyListener;
023: import org.eclipse.ui.PartInitException;
024: import org.eclipse.ui.intro.IIntroPart;
025: import org.eclipse.ui.intro.IIntroSite;
026: import org.pentaho.designstudio.messages.Messages;
027:
028: public class WorkbenchIntro implements IIntroPart {
029:
030: public IIntroSite getIntroSite() {
031: // TODO Auto-generated method stub
032: return null;
033: }
034:
035: public void init(IIntroSite site, IMemento memento)
036: throws PartInitException {
037: // TODO Auto-generated method stub
038:
039: }
040:
041: public void standbyStateChanged(boolean standby) {
042: // TODO Auto-generated method stub
043:
044: }
045:
046: public void saveState(IMemento memento) {
047: // TODO Auto-generated method stub
048:
049: }
050:
051: public void addPropertyListener(IPropertyListener listener) {
052: // TODO Auto-generated method stub
053:
054: }
055:
056: public void createPartControl(Composite container) {
057: Composite outerContainer = new Composite(container, SWT.NONE);
058: GridLayout gridLayout = new GridLayout();
059: outerContainer.setLayout(gridLayout);
060: outerContainer.setBackground(outerContainer.getDisplay()
061: .getSystemColor(SWT.COLOR_TITLE_BACKGROUND_GRADIENT));
062: Label label = new Label(outerContainer, SWT.CENTER);
063: label.setText(Messages
064: .getString("WorkbenchIntro.UI_WORKBENCH_INTRO")); //$NON-NLS-1$
065: GridData gd = new GridData(GridData.GRAB_HORIZONTAL
066: | GridData.GRAB_VERTICAL);
067: gd.horizontalAlignment = GridData.CENTER;
068: gd.verticalAlignment = GridData.CENTER;
069: label.setLayoutData(gd);
070: label.setBackground(outerContainer.getDisplay().getSystemColor(
071: SWT.COLOR_TITLE_BACKGROUND_GRADIENT));
072:
073: }
074:
075: public void dispose() {
076: // TODO Auto-generated method stub
077:
078: }
079:
080: public Image getTitleImage() {
081: // TODO Auto-generated method stub
082: return null;
083: }
084:
085: public void removePropertyListener(IPropertyListener listener) {
086: // TODO Auto-generated method stub
087:
088: }
089:
090: public void setFocus() {
091: // TODO Auto-generated method stub
092:
093: }
094:
095: public Object getAdapter(Class adapter) {
096: // TODO Auto-generated method stub
097: return null;
098: }
099:
100: public String getTitle() {
101: // TODO Auto-generated method stub
102: return null;
103: }
104:
105: }
|