diff options
author | Dejan Gloszic | 2006-02-22 22:34:57 +0000 |
---|---|---|
committer | Dejan Gloszic | 2006-02-22 22:34:57 +0000 |
commit | 41d602cdd78df7e60a202ff2334717a5b3ecc986 (patch) | |
tree | 6dcbba58aff808f7dcbf0553d9d267da2a443a96 | |
parent | b89d04ce6529f56238f482bd232efc0c14a56ef6 (diff) | |
download | eclipse.platform.ua-41d602cdd78df7e60a202ff2334717a5b3ecc986.tar.gz eclipse.platform.ua-41d602cdd78df7e60a202ff2334717a5b3ecc986.tar.xz eclipse.platform.ua-41d602cdd78df7e60a202ff2334717a5b3ecc986.zip |
Extracting Universal Welcome from the framework.
198 files changed, 497 insertions, 6069 deletions
diff --git a/org.eclipse.ui.intro/META-INF/MANIFEST.MF b/org.eclipse.ui.intro/META-INF/MANIFEST.MF index 877f7ddfb..db97dfd79 100644 --- a/org.eclipse.ui.intro/META-INF/MANIFEST.MF +++ b/org.eclipse.ui.intro/META-INF/MANIFEST.MF @@ -6,10 +6,10 @@ Bundle-Version: 3.2.0.qualifier Bundle-Activator: org.eclipse.ui.internal.intro.impl.IntroPlugin Bundle-Vendor: %provider_name Bundle-Localization: plugin -Export-Package: org.eclipse.ui.internal.intro.impl;x-internal:=true, +Export-Package: org.eclipse.ui.internal.intro.impl;x-friends:="org.eclipse.ui.intro.universal", org.eclipse.ui.internal.intro.impl.html;x-internal:=true, - org.eclipse.ui.internal.intro.impl.model;x-friends:="org.eclipse.ua.tests", - org.eclipse.ui.internal.intro.impl.model.loader;x-friends:="org.eclipse.ua.tests", + org.eclipse.ui.internal.intro.impl.model;x-friends:="org.eclipse.ua.tests,org.eclipse.ui.intro.universal", + org.eclipse.ui.internal.intro.impl.model.loader;x-friends:="org.eclipse.ua.tests,org.eclipse.ui.intro.universal", org.eclipse.ui.internal.intro.impl.model.url;x-internal:=true, org.eclipse.ui.internal.intro.impl.model.util;x-internal:=true, org.eclipse.ui.internal.intro.impl.model.viewer;x-internal:=true, @@ -17,7 +17,6 @@ Export-Package: org.eclipse.ui.internal.intro.impl;x-internal:=true, org.eclipse.ui.internal.intro.impl.presentations;x-friends:="org.eclipse.ua.tests", org.eclipse.ui.internal.intro.impl.swt;x-internal:=true, org.eclipse.ui.internal.intro.impl.util;x-internal:=true, - org.eclipse.ui.internal.intro.universal;x-internal:=true, org.eclipse.ui.intro.config Require-Bundle: org.apache.lucene;bundle-version="[1.4.3,2.0.0)";resolution:=optional, org.eclipse.core.runtime;bundle-version="[3.1.0,4.0.0)", diff --git a/org.eclipse.ui.intro/build.properties b/org.eclipse.ui.intro/build.properties index 0c0eee939..b3a473490 100644 --- a/org.eclipse.ui.intro/build.properties +++ b/org.eclipse.ui.intro/build.properties @@ -19,8 +19,8 @@ bin.includes = plugin.xml,\ about_files/,\ dtds/,\ META-INF/,\ - invalidPage/,\ - universal/ + invalidPage/ + src.includes = schema/,\ about.html,\ .options diff --git a/org.eclipse.ui.intro/icons/full/elcl16/configure.gif b/org.eclipse.ui.intro/icons/full/elcl16/configure.gif Binary files differdeleted file mode 100644 index 8304a2b71..000000000 --- a/org.eclipse.ui.intro/icons/full/elcl16/configure.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/icons/full/obj16/extension_obj.gif b/org.eclipse.ui.intro/icons/full/obj16/extension_obj.gif Binary files differdeleted file mode 100644 index 7f3f595bc..000000000 --- a/org.eclipse.ui.intro/icons/full/obj16/extension_obj.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/icons/full/obj16/firststeps16.png b/org.eclipse.ui.intro/icons/full/obj16/firststeps16.png Binary files differdeleted file mode 100644 index 4c15c823b..000000000 --- a/org.eclipse.ui.intro/icons/full/obj16/firststeps16.png +++ /dev/null diff --git a/org.eclipse.ui.intro/icons/full/obj16/icallout_obj.gif b/org.eclipse.ui.intro/icons/full/obj16/icallout_obj.gif Binary files differdeleted file mode 100644 index f52d86a67..000000000 --- a/org.eclipse.ui.intro/icons/full/obj16/icallout_obj.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/icons/full/obj16/ihigh_obj.gif b/org.eclipse.ui.intro/icons/full/obj16/ihigh_obj.gif Binary files differdeleted file mode 100644 index f99bdc358..000000000 --- a/org.eclipse.ui.intro/icons/full/obj16/ihigh_obj.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/icons/full/obj16/ilow_obj.gif b/org.eclipse.ui.intro/icons/full/obj16/ilow_obj.gif Binary files differdeleted file mode 100644 index a6815bcc0..000000000 --- a/org.eclipse.ui.intro/icons/full/obj16/ilow_obj.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/icons/full/obj16/image_obj.gif b/org.eclipse.ui.intro/icons/full/obj16/image_obj.gif Binary files differdeleted file mode 100644 index 830be0ea0..000000000 --- a/org.eclipse.ui.intro/icons/full/obj16/image_obj.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/icons/full/obj16/inew_obj.gif b/org.eclipse.ui.intro/icons/full/obj16/inew_obj.gif Binary files differdeleted file mode 100644 index b1526e931..000000000 --- a/org.eclipse.ui.intro/icons/full/obj16/inew_obj.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/icons/full/obj16/migrate16.png b/org.eclipse.ui.intro/icons/full/obj16/migrate16.png Binary files differdeleted file mode 100644 index 3fc84145d..000000000 --- a/org.eclipse.ui.intro/icons/full/obj16/migrate16.png +++ /dev/null diff --git a/org.eclipse.ui.intro/icons/full/obj16/overview16.png b/org.eclipse.ui.intro/icons/full/obj16/overview16.png Binary files differdeleted file mode 100644 index b2e977f8d..000000000 --- a/org.eclipse.ui.intro/icons/full/obj16/overview16.png +++ /dev/null diff --git a/org.eclipse.ui.intro/icons/full/obj16/samples16.png b/org.eclipse.ui.intro/icons/full/obj16/samples16.png Binary files differdeleted file mode 100644 index fdff5dd5b..000000000 --- a/org.eclipse.ui.intro/icons/full/obj16/samples16.png +++ /dev/null diff --git a/org.eclipse.ui.intro/icons/full/obj16/tutorials16.png b/org.eclipse.ui.intro/icons/full/obj16/tutorials16.png Binary files differdeleted file mode 100644 index f2d688f21..000000000 --- a/org.eclipse.ui.intro/icons/full/obj16/tutorials16.png +++ /dev/null diff --git a/org.eclipse.ui.intro/icons/full/obj16/webresources16.png b/org.eclipse.ui.intro/icons/full/obj16/webresources16.png Binary files differdeleted file mode 100644 index b847caad5..000000000 --- a/org.eclipse.ui.intro/icons/full/obj16/webresources16.png +++ /dev/null diff --git a/org.eclipse.ui.intro/icons/full/obj16/whatsnew16.png b/org.eclipse.ui.intro/icons/full/obj16/whatsnew16.png Binary files differdeleted file mode 100644 index 5294b1741..000000000 --- a/org.eclipse.ui.intro/icons/full/obj16/whatsnew16.png +++ /dev/null diff --git a/org.eclipse.ui.intro/plugin.properties b/org.eclipse.ui.intro/plugin.properties index e3ec59b26..12d6ab52e 100644 --- a/org.eclipse.ui.intro/plugin.properties +++ b/org.eclipse.ui.intro/plugin.properties @@ -18,12 +18,4 @@ provider_name = Eclipse.org config = Intro Part Configuration configExtension = Intro Part Configuration Extension - - - - - - searchParticipant.name.welcome = Welcome -theme.name.circles = Circles -theme.name.purpleMesh = Purple Mesh
\ No newline at end of file diff --git a/org.eclipse.ui.intro/plugin.xml b/org.eclipse.ui.intro/plugin.xml index 3739d943e..0c03143f8 100644 --- a/org.eclipse.ui.intro/plugin.xml +++ b/org.eclipse.ui.intro/plugin.xml @@ -33,51 +33,4 @@ name="%searchParticipant.name.welcome" participant="org.eclipse.ui.internal.intro.impl.model.IntroSearchParticipant"/> </extension> - <extension - point="org.eclipse.ui.intro"> - <intro - class="org.eclipse.ui.intro.config.CustomizableIntroPart" - icon="icons/welcome_item.gif" - id="org.eclipse.ui.intro.universal"/> - </extension> - <extension - point="org.eclipse.ui.intro.config"> - <config - configurer="org.eclipse.ui.internal.intro.universal.UniversalIntroConfigurer" - content="$nl$/universal/introContent.xml" - id="org.eclipse.ui.intro.universalConfig" - introId="org.eclipse.ui.intro.universal"> - <presentation - home-page-id="root" standby-page-id="standby"> - <!-- --> - <implementation - style="$theme$/html/shared.css" - kind="html" - os="win32,linux,macosx"> - </implementation> - <!-- --> - <implementation - kind="swt"> - </implementation> - <launchBar - location="fastview" - bg="#c6c3e8" - computed="true"> - </launchBar> - </presentation> - </config> - </extension> - <extension - point="org.eclipse.ui.intro.configExtension"> - <theme - default="true" - id="org.eclipse.ui.intro.circles" - name="%theme.name.circles" - path="$nl$/themes/circles"/> - <theme - id="org.eclipse.ui.intro.purpleMesh" - name="%theme.name.purpleMesh" - path="$nl$/themes/purpleMesh" - previewImage="themes/purpleMesh/preview.png"/> - </extension> </plugin> diff --git a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/Messages.java b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/Messages.java index acec21606..7e5738ee4 100644 --- a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/Messages.java +++ b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/Messages.java @@ -52,66 +52,4 @@ public class Messages extends NLS { // Misc // ------- public static String IntroPart_showContentButton_tooltip; - public static String SharedIntroConfigurer_overview_name; - public static String SharedIntroConfigurer_overview_alt; - public static String SharedIntroConfigurer_overview_tooltip; - public static String SharedIntroConfigurer_firststeps_name; - public static String SharedIntroConfigurer_firststeps_alt; - public static String SharedIntroConfigurer_firststeps_tooltip; - public static String SharedIntroConfigurer_tutorials_name; - public static String SharedIntroConfigurer_tutorials_alt; - public static String SharedIntroConfigurer_tutorials_tooltip; - public static String SharedIntroConfigurer_samples_name; - public static String SharedIntroConfigurer_samples_alt; - public static String SharedIntroConfigurer_samples_tooltip; - public static String SharedIntroConfigurer_whatsnew_name; - public static String SharedIntroConfigurer_whatsnew_alt; - public static String SharedIntroConfigurer_whatsnew_tooltip; - public static String SharedIntroConfigurer_migrate_name; - public static String SharedIntroConfigurer_migrate_alt; - public static String SharedIntroConfigurer_migrate_tooltip; - public static String SharedIntroConfigurer_webresources_name; - public static String SharedIntroConfigurer_webresources_alt; - public static String SharedIntroConfigurer_webresources_tooltip; - public static String SharedIntroConfigurer_overview_nav; - public static String SharedIntroConfigurer_firststeps_nav; - public static String SharedIntroConfigurer_tutorials_nav; - public static String SharedIntroConfigurer_samples_nav; - public static String SharedIntroConfigurer_whatsnew_nav; - public static String SharedIntroConfigurer_migrate_nav; - public static String SharedIntroConfigurer_webresources_nav; - public static String WelcomeCustomizationPreferencePage_available; - public static String WelcomeCustomizationPreferencePage_left; - public static String WelcomeCustomizationPreferencePage_right; - public static String WelcomeCustomizationPreferencePage_background; - public static String WelcomeCustomizationPreferencePage_preview; - public static String WelcomeCustomizationPreferencePage_rootpages; - public static String WelcomeCustomizationPreferencePage_overview; - public static String WelcomeCustomizationPreferencePage_firststeps; - public static String WelcomeCustomizationPreferencePage_tutorials; - public static String WelcomeCustomizationPreferencePage_samples; - public static String WelcomeCustomizationPreferencePage_whatsnew; - public static String WelcomeCustomizationPreferencePage_webresources; - public static String WelcomeCustomizationPreferencePage_migrate; - public static String WelcomeCustomizationPreferencePage_applyToAll; - public static String ExtensionData_callout; - public static String ExtensionData_low; - public static String ExtensionData_medium; - public static String ExtensionData_high; - public static String ExtensionData_new; - public static String WelcomeCustomizationPreferencePage_serialize; - public static String WelcomeCustomizationPreferencePage_serializeTitle; - public static String WelcomeCustomizationPreferencePage_up; - public static String WelcomeCustomizationPreferencePage_down; - public static String WelcomeCustomizationPreferencePage_moveTo; - public static String WelcomeCustomizationPreferencePage_menu_available; - public static String WelcomeCustomizationPreferencePage_menu_top_left; - public static String WelcomeCustomizationPreferencePage_menu_top_right; - public static String WelcomeCustomizationPreferencePage_menu_bottom_left; - public static String WelcomeCustomizationPreferencePage_menu_bottom_right; - public static String WelcomeCustomizationPreferencePage_browse; - public static String WelcomeCustomizationPreferencePage_browseTitle; - public static String SharedIntroConfigurer_customize_label; - public static String SharedIntroConfigurer_customize_text; - public static String WelcomeCustomizationPreferencePage_pageDesc; } diff --git a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/Messages.properties b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/Messages.properties index c5b8a5ee8..bd5e18615 100644 --- a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/Messages.properties +++ b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/Messages.properties @@ -50,68 +50,4 @@ IntroLaunchBar_restore_tooltip=Return to Welcome # Misc # ------- -IntroPart_showContentButton_tooltip = Show Intro Tree - - -SharedIntroConfigurer_overview_name=Overview -SharedIntroConfigurer_overview_alt=Overview -SharedIntroConfigurer_overview_tooltip=Find out what Eclipse is all about -SharedIntroConfigurer_firststeps_name=First Steps -SharedIntroConfigurer_firststeps_alt=First Steps -SharedIntroConfigurer_firststeps_tooltip=Make first steps -SharedIntroConfigurer_tutorials_name=Tutorials -SharedIntroConfigurer_tutorials_alt=Tutorials -SharedIntroConfigurer_tutorials_tooltip=Go through tutorials -SharedIntroConfigurer_samples_name=Samples -SharedIntroConfigurer_samples_alt=Samples -SharedIntroConfigurer_samples_tooltip=Try out the samples -SharedIntroConfigurer_whatsnew_name=What's New -SharedIntroConfigurer_whatsnew_alt=What's New -SharedIntroConfigurer_whatsnew_tooltip=Find out what is new -SharedIntroConfigurer_migrate_name=Migrate -SharedIntroConfigurer_migrate_alt=Migrate -SharedIntroConfigurer_migrate_tooltip=Migrate to the new release -SharedIntroConfigurer_customize_label=Customize -SharedIntroConfigurer_webresources_name=Web Resources -SharedIntroConfigurer_webresources_alt=Web Resources -SharedIntroConfigurer_webresources_tooltip=Read more on the Web -SharedIntroConfigurer_overview_nav=Overview -SharedIntroConfigurer_firststeps_nav=First Steps -SharedIntroConfigurer_customize_text=Customize page -SharedIntroConfigurer_tutorials_nav=Tutorials -SharedIntroConfigurer_samples_nav=Samples -SharedIntroConfigurer_whatsnew_nav=What's New -SharedIntroConfigurer_migrate_nav=Migrate -SharedIntroConfigurer_webresources_nav=Web Resources -WelcomeCustomizationPreferencePage_left= Left Column: -WelcomeCustomizationPreferencePage_up= Move Up -WelcomeCustomizationPreferencePage_down=Move Down -WelcomeCustomizationPreferencePage_right= Right Column: -WelcomeCustomizationPreferencePage_browse=Browse... -WelcomeCustomizationPreferencePage_browseTitle=Select the background image file -WelcomeCustomizationPreferencePage_preview= Preview: -WelcomeCustomizationPreferencePage_samples= Samples -WelcomeCustomizationPreferencePage_migrate= Migrate -WelcomeCustomizationPreferencePage_moveTo=Move To -WelcomeCustomizationPreferencePage_available= Available Extensions: -WelcomeCustomizationPreferencePage_background= Home Page Theme: -WelcomeCustomizationPreferencePage_firststeps= First Steps -WelcomeCustomizationPreferencePage_applyToAll=Apply settings to all the products sharing this workbench -WelcomeCustomizationPreferencePage_menu_top_right= Top Right -WelcomeCustomizationPreferencePage_webresources= Web Resources -WelcomeCustomizationPreferencePage_menu_bottom_left=Bottom Left -WelcomeCustomizationPreferencePage_menu_bottom_right=Bottom Right -WelcomeCustomizationPreferencePage_rootpages= Root Pages: -WelcomeCustomizationPreferencePage_overview= Overview -WelcomeCustomizationPreferencePage_tutorials= Tutorials -WelcomeCustomizationPreferencePage_whatsnew= What's New -WelcomeCustomizationPreferencePage_pageDesc=Use drag and drop to position extensions on the page. -WelcomeCustomizationPreferencePage_serialize = Save As... -WelcomeCustomizationPreferencePage_menu_top_left=Top Left -WelcomeCustomizationPreferencePage_serializeTitle=Save the page layout data as a file -WelcomeCustomizationPreferencePage_menu_available=Available -ExtensionData_callout=Callout -ExtensionData_low=Low -ExtensionData_medium=Medium -ExtensionData_high=High -ExtensionData_new=New +IntroPart_showContentButton_tooltip = Show Intro Tree
\ No newline at end of file diff --git a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/IntroPartPresentation.java b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/IntroPartPresentation.java index 705c615b3..e9448c524 100644 --- a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/IntroPartPresentation.java +++ b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/IntroPartPresentation.java @@ -1,13 +1,11 @@ -/******************************************************************************* - * Copyright (c) 2004, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 +/*************************************************************************************************** + * Copyright (c) 2004, 2005 IBM Corporation and others. 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ + * + * Contributors: IBM Corporation - initial API and implementation + **************************************************************************************************/ package org.eclipse.ui.internal.intro.impl.model; @@ -28,491 +26,472 @@ import org.eclipse.ui.internal.intro.impl.util.Log; import org.eclipse.ui.intro.IIntroPart; /** - * This class models the presentation element contributed to a config extension - * point. The Presentation class delegates UI creation to the actual - * Implementation class, and passes the IntroPart along to this implementation - * class. Also, dynamic awarness is honored here. + * This class models the presentation element contributed to a config extension point. The + * Presentation class delegates UI creation to the actual Implementation class, and passes the + * IntroPart along to this implementation class. Also, dynamic awarness is honored here. * <p> * Rules: * <ul> - * <li>There is no model class for the "implementation" markup element. This - * presentation class inherits information from the implementation class that is - * picked (based on OS, ...).</li> - * <li>ID attribute of this model class is the id of the picked implementation - * element.</li> - * <li>Style attribute in this model class is the style of the picked - * implementation element.</li> - * <li>HTMLHeadContent in this model class is the HEAD element under the picked - * implementation element, only if the implementation element is a Browser - * implmenetation.</li> - * <li>The UI model class, AbstractIntroPartImplementation, that represents the - * IntroPart implementation is cached here for quick access. It is used by intro - * url actions for manipulation of UI.<br> + * <li>There is no model class for the "implementation" markup element. This presentation class + * inherits information from the implementation class that is picked (based on OS, ...).</li> + * <li>ID attribute of this model class is the id of the picked implementation element.</li> + * <li>Style attribute in this model class is the style of the picked implementation element.</li> + * <li>HTMLHeadContent in this model class is the HEAD element under the picked implementation + * element, only if the implementation element is a Browser implmenetation.</li> + * <li>The UI model class, AbstractIntroPartImplementation, that represents the IntroPart + * implementation is cached here for quick access. It is used by intro url actions for manipulation + * of UI.<br> * INTRO:This really should be in a UI model class. * <ul> */ public class IntroPartPresentation extends AbstractIntroElement { - protected static final String TAG_PRESENTATION = "presentation"; //$NON-NLS-1$ - private static final String TAG_IMPLEMENTATION = "implementation"; //$NON-NLS-1$ - - private static final String ATT_KIND = "kind"; //$NON-NLS-1$ - private static final String ATT_STYLE = "style"; //$NON-NLS-1$ - private static final String ATT_OS = "os"; //$NON-NLS-1$ - private static final String ATT_WS = "ws"; //$NON-NLS-1$ - protected static final String ATT_HOME_PAGE_ID = "home-page-id"; //$NON-NLS-1$ - protected static final String ATT_STANDBY_PAGE_ID = "standby-page-id"; //$NON-NLS-1$ - - public static final String BROWSER_IMPL_KIND = "html"; //$NON-NLS-1$ - public static final String FORMS_IMPL_KIND = "swt"; //$NON-NLS-1$ - // this implementation kind if not public api. Only used internally for - // debugging. - private static final String TEXT_IMPL_KIND = "text"; //$NON-NLS-1$ - - - // private String title; - private String implementationStyle; - private String implementationKind; - private String homePageId; - private String standbyPageId; - - // The Head contributions to this preentation (inherited from child - // implementation). - private IntroHead head; - - private AbstractIntroPartImplementation implementation; - - private IntroLaunchBarElement launchBar; - - // CustomizableIntroPart and memento instances. Passed to the Implementation - // classes. - private IIntroPart introPart; - private IMemento memento; - - /** - * - */ - IntroPartPresentation(IConfigurationElement element) { - super(element); - homePageId = element.getAttribute(ATT_HOME_PAGE_ID); - standbyPageId = element.getAttribute(ATT_STANDBY_PAGE_ID); - } - - private void updatePresentationAttributes(IConfigurationElement element) { - if (element != null) { - // reset (ie: inherit) type and style to be implementation type and - // style. Then handle HEAD content for the case of HTML Browser. - implementationStyle = element.getAttribute(ATT_STYLE); - IntroModelRoot root = getModelRoot(); - if (implementationStyle!=null && root!=null) - implementationStyle = root.resolveVariables(implementationStyle); - implementationKind = element.getAttribute(ATT_KIND); - // get Head contribution, regardless of implementation class. - // Implementation class is created lazily by UI. - head = getHead(element); - // Resolve. - implementationStyle = ModelUtil.resolveURL(implementationStyle, - element); - } - } - - /** - * Returns the style associated with the Presentation. May be null if no - * shared presentation style is needed, or in the case of static HTML OOBE. - * - * @return Returns the style. - */ - public String getImplementationStyle() { - return implementationStyle; - } - - /** - * Returns the type attribute of the implementation picked by this - * presentation. - * - * @return Returns the implementationKind. - */ - public String getImplementationKind() { - return implementationKind; - } - - public AbstractIntroPartImplementation getIntroPartImplementation() { - return implementation; - } - - - /** - * Returns the model class for the Head element under an implementation. - * Returns null if there is no head contribution. - * - * @param element - * @return - */ - private IntroHead getHead(IConfigurationElement element) { - try { - // There should only be one head element. Since elements where - // obtained by name, no point validating name. - IConfigurationElement[] headElements = element - .getChildren(IntroHead.TAG_HEAD); - if (headElements.length == 0) - // no contributions. done. - return null; - IntroHead head = new IntroHead(headElements[0]); - head.setParent(this); - return head; - } catch (Exception e) { - Log.error(e.getMessage(), e); - return null; - } - } - - /** - * Returns the launch bar element if defined in this presentation, or - * <code>null</code> otherwise. - * - * @since 3.1 - * @return - */ - - public IntroLaunchBarElement getLaunchBarElement() { - if (launchBar != null) - return launchBar; - IConfigurationElement[] children = getCfgElement().getChildren( - "launchBar"); //$NON-NLS-1$ - if (children.length > 0) { - launchBar = new IntroLaunchBarElement(children[0]); - launchBar.setParent(this); - if (children.length > 1) - Log - .warning("Mutiple Intro Launch bars defined when only one is allowed. Only first one was loaded. "); //$NON-NLS-1$ - } - return launchBar; - } - - /** - * @param introPart - */ - public void init(IIntroPart introPart, IMemento memento) { - // REVISIT: Called when the actual UI needs to be created. Incomplete - // separation of model / UI. Will change later. should not get here if - // there is no valid implementation. - this.introPart = introPart; - this.memento = memento; - } - - /** - * Creates the UI based on the implementation class. - * - * @see org.eclipse.ui.IWorkbenchPart#createPartControl(org.eclipse.swt.widgets.Composite) - */ - public void createPartControl(Composite parent) { - Vector validImplementations = getValidImplementationElements(getCfgElement()); - IConfigurationElement implementationElement = null; - for (int i = 0; i < validImplementations.size(); i++) { - implementationElement = (IConfigurationElement) validImplementations - .elementAt(i); - // you want to pass primed model. - updatePresentationAttributes(implementationElement); - try { - implementation = createIntroPartImplementation(getImplementationKind()); - if (implementation == null) - // failed to create executable. - continue; - - implementation.init(introPart, memento); - implementation.createPartControl(parent); - if (Log.logInfo) - Log.info("Loading Intro UI implementation from: " //$NON-NLS-1$ - + ModelLoaderUtil.getLogString( - implementationElement, "kind")); //$NON-NLS-1$ - break; - } catch (SWTError e) { - Log.warning("Failed to create Intro UI implementation from: " //$NON-NLS-1$ - + ModelLoaderUtil.getLogString(implementationElement, - "kind") + e.getMessage()); //$NON-NLS-1$ - implementation = null; - implementationElement = null; - } catch (Exception e) { - Log.error("Failed to create Intro UI implementation from: " //$NON-NLS-1$ - + ModelLoaderUtil.getLogString(implementationElement, - "kind"), e); //$NON-NLS-1$ - implementation = null; - implementationElement = null; - } - } - - if (implementationElement == null) { - // worst case scenario. We failed in all cases. - implementation = new FormIntroPartImplementation(); - try { - implementation.init(introPart, memento); - // simply set the presentation kind since all other attributes - // will be null. - implementationKind = FORMS_IMPL_KIND; - } catch (Exception e) { - // should never be here. - Log.error(e.getMessage(), e); - return; - } - implementation.createPartControl(parent); - Log - .warning("Loaded UI Forms implementation as a default UI implementation."); //$NON-NLS-1$ - } - } - - /** - * Retruns a list of valid implementation elements of the config. Choose - * correct implementation element based on os atrributes. Rules: get current - * OS, choose first contributrion, with os that matches OS. Otherwise, - * choose first contribution with no os. Returns null if no valid - * implementation is found. - */ - private Vector getValidImplementationElements( - IConfigurationElement configElement) { - - Vector validList = new Vector(); - - // There can be more than one implementation contribution. Add each - // valid one. First start with OS, then WS then no OS. - IConfigurationElement[] implementationElements = configElement - .getChildren(TAG_IMPLEMENTATION); - // IConfigurationElement implementationElement = null; - - if (implementationElements.length == 0) - // no contributions. done. - return validList; - - String currentOS = Platform.getOS(); - String currentWS = Platform.getWS(); - - // first loop through all to find one with matching OS, with or - // without WS. - for (int i = 0; i < implementationElements.length; i++) { - String os = implementationElements[i].getAttribute(ATT_OS); - if (os == null) - // no os, no match. - continue; - - if (listValueHasValue(os, currentOS)) { - // found implementation with correct OS. Now try if WS - // matches. - String ws = implementationElements[i].getAttribute(ATT_WS); - if (ws == null) { - // good OS, and they do not care about WS. we have a - // match. - validList.add(implementationElements[i]); - } else { - // good OS, and we have WS. - if (listValueHasValue(ws, currentWS)) - validList.add(implementationElements[i]); - } - } - } - - // now loop through all to find one with no OS defined, but with a - // matching WS. - for (int i = 0; i < implementationElements.length; i++) { - String os = implementationElements[i].getAttribute(ATT_OS); - if (os == null) { - // found implementation with no OS. Now try if WS - // matches. - String ws = implementationElements[i].getAttribute(ATT_WS); - if (ws == null) { - // no OS, and they do not care about WS. we have a - // match. - validList.add(implementationElements[i]); - } else { - // no OS, and we have WS. - if (listValueHasValue(ws, currentWS)) - validList.add(implementationElements[i]); - } - - } - } - - return validList; - - } - - /** - * Util method that searches for the given value in a comma separated list - * of values. The list is retrieved as an attribute value of OS, WS. - * - */ - private boolean listValueHasValue(String stringValue, String value) { - String[] attributeValues = stringValue.split(","); //$NON-NLS-1$ - for (int i = 0; i < attributeValues.length; i++) { - if (attributeValues[i].equalsIgnoreCase(value)) - return true; - } - return false; - } - - /** - * Util method to load shared style from given kind. - */ - public String getSharedStyle(String kind) { - // There can be more than one implementation contribution. - IConfigurationElement[] implementationElements = getCfgElement() - .getChildren(TAG_IMPLEMENTATION); - // IConfigurationElement implementationElement = null; - - if (implementationElements.length == 0) - // no implementations. done. - return null; - - // loop through all to find one with matching kind. - for (int i = 0; i < implementationElements.length; i++) { - String aKind = implementationElements[i].getAttribute(ATT_KIND); - if (aKind.equals(kind)) { - // found implementation with matching kind. - String style = implementationElements[i] - .getAttribute(ATT_STYLE); - return ModelUtil.resolveURL(style, getCfgElement()); - } - } - return null; - } - - - /** - * Creates the actual implementation class. Returns null on failure. - * - */ - private AbstractIntroPartImplementation createIntroPartImplementation( - String implementationType) { - // quick exits - if (implementationType == null) - return null; - if (!implementationType.equals(BROWSER_IMPL_KIND) - && !implementationType.equals(FORMS_IMPL_KIND) - && !implementationType.equals(TEXT_IMPL_KIND)) - return null; - - AbstractIntroPartImplementation implementation = null; - try { - if (implementationType.equals(BROWSER_IMPL_KIND)) - implementation = new BrowserIntroPartImplementation(); - else if (implementationType.equals(FORMS_IMPL_KIND)) - implementation = new FormIntroPartImplementation(); - else - implementation = new TextIntroPartImplementation(); - } catch (Exception e) { - Log.error("Could not instantiate implementation " //$NON-NLS-1$ - + implementationType, e); - } - return implementation; - } - - /** - * Returns the the Customizable Intro Part. may return null if init() has - * not been called yet on the presentation. - * - * @return Returns the introPart. - */ - public IIntroPart getIntroPart() { - return introPart; - } - - /** - * Save the current state of the intro. Delegate to the implementation to do - * the work, as different implementations may have different requirements. - * - * @param memento - * the memento in which to store state information - */ - public void saveState(IMemento memento) { - if (implementation != null) - implementation.saveState(memento); - } - - - public void setFocus() { - if (implementation != null) - implementation.setFocus(); - } - - public void standbyStateChanged(boolean standby, boolean isStandbyPartNeeded) { - if (implementation != null) - implementation.standbyStateChanged(standby, isStandbyPartNeeded); - } - - public void updateHistory(AbstractIntroPage page) { - if (implementation != null) - implementation.updateHistory(page); - } - - - - public boolean navigateForward() { - if (implementation != null) - return implementation.navigateForward(); - return false; - } - - public boolean navigateBackward() { - if (implementation != null) - return implementation.navigateBackward(); - return false; - } - - public boolean navigateHome() { - if (implementation != null) - return implementation.navigateHome(); - return false; - } - - - /** - * Called when the IntroPart is disposed. Forwards the call to the - * implementation class. - */ - public void dispose() { - if (implementation != null) - implementation.dispose(); - } - - /** - * Support dynamic awarness. Clear cached models first, then update UI by - * delegating to implementation. - * - * @see org.eclipse.core.runtime.IRegistryChangeListener#registryChanged(org.eclipse.core.runtime.IRegistryChangeEvent) - */ - public void registryChanged(IRegistryChangeEvent event) { - if (implementation != null) - implementation.registryChanged(event); - } - - /** - * @return Returns the homePageId. - */ - public String getHomePageId() { - return homePageId; - } - - /** - * @return Returns the homePageId. - */ - public String getStandbyPageId() { - return standbyPageId; - } - - /* - * (non-Javadoc) - * - * @see org.eclipse.ui.internal.intro.impl.model.IntroElement#getType() - */ - public int getType() { - return AbstractIntroElement.PRESENTATION; - } - - /** - * @return Returns the HTML head conttent to be added to each dynamic html - * page in this presentation.. - */ - public IntroHead getHead() { - return head; - } + protected static final String TAG_PRESENTATION = "presentation"; //$NON-NLS-1$ + private static final String TAG_IMPLEMENTATION = "implementation"; //$NON-NLS-1$ + + private static final String ATT_KIND = "kind"; //$NON-NLS-1$ + private static final String ATT_STYLE = "style"; //$NON-NLS-1$ + private static final String ATT_OS = "os"; //$NON-NLS-1$ + private static final String ATT_WS = "ws"; //$NON-NLS-1$ + protected static final String ATT_HOME_PAGE_ID = "home-page-id"; //$NON-NLS-1$ + protected static final String ATT_STANDBY_PAGE_ID = "standby-page-id"; //$NON-NLS-1$ + + public static final String BROWSER_IMPL_KIND = "html"; //$NON-NLS-1$ + public static final String FORMS_IMPL_KIND = "swt"; //$NON-NLS-1$ + // this implementation kind if not public api. Only used internally for + // debugging. + private static final String TEXT_IMPL_KIND = "text"; //$NON-NLS-1$ + + + // private String title; + private String implementationStyle; + private String implementationKind; + private String homePageId; + private String standbyPageId; + + // The Head contributions to this preentation (inherited from child + // implementation). + private IntroHead head; + + private AbstractIntroPartImplementation implementation; + + private IntroLaunchBarElement launchBar; + + // CustomizableIntroPart and memento instances. Passed to the Implementation + // classes. + private IIntroPart introPart; + private IMemento memento; + + /** + * + */ + IntroPartPresentation(IConfigurationElement element) { + super(element); + homePageId = element.getAttribute(ATT_HOME_PAGE_ID); + standbyPageId = element.getAttribute(ATT_STANDBY_PAGE_ID); + } + + private void updatePresentationAttributes(IConfigurationElement element) { + if (element != null) { + // reset (ie: inherit) type and style to be implementation type and + // style. Then handle HEAD content for the case of HTML Browser. + implementationStyle = element.getAttribute(ATT_STYLE); + IntroModelRoot root = getModelRoot(); + if (implementationStyle != null && root != null) + implementationStyle = root.resolveVariables(implementationStyle); + implementationKind = element.getAttribute(ATT_KIND); + // get Head contribution, regardless of implementation class. + // Implementation class is created lazily by UI. + head = getHead(element); + // Resolve. + implementationStyle = ModelUtil.resolveURL(implementationStyle, element); + } + } + + /** + * Returns the style associated with the Presentation. May be null if no shared presentation + * style is needed, or in the case of static HTML OOBE. + * + * @return Returns the style. + */ + public String getImplementationStyle() { + return implementationStyle; + } + + /** + * Returns the type attribute of the implementation picked by this presentation. + * + * @return Returns the implementationKind. + */ + public String getImplementationKind() { + return implementationKind; + } + + public AbstractIntroPartImplementation getIntroPartImplementation() { + return implementation; + } + + + /** + * Returns the model class for the Head element under an implementation. Returns null if there + * is no head contribution. + * + * @param element + * @return + */ + private IntroHead getHead(IConfigurationElement element) { + try { + // There should only be one head element. Since elements where + // obtained by name, no point validating name. + IConfigurationElement[] headElements = element.getChildren(IntroHead.TAG_HEAD); + if (headElements.length == 0) + // no contributions. done. + return null; + IntroHead head = new IntroHead(headElements[0]); + head.setParent(this); + return head; + } catch (Exception e) { + Log.error(e.getMessage(), e); + return null; + } + } + + /** + * Returns the launch bar element if defined in this presentation, or <code>null</code> + * otherwise. + * + * @since 3.1 + * @return + */ + + public IntroLaunchBarElement getLaunchBarElement() { + if (launchBar != null) + return launchBar; + IConfigurationElement[] children = getCfgElement().getChildren("launchBar"); //$NON-NLS-1$ + if (children.length > 0) { + launchBar = new IntroLaunchBarElement(children[0]); + launchBar.setParent(this); + if (children.length > 1) + Log + .warning("Mutiple Intro Launch bars defined when only one is allowed. Only first one was loaded. "); //$NON-NLS-1$ + } + return launchBar; + } + + /** + * @param introPart + */ + public void init(IIntroPart introPart, IMemento memento) { + // REVISIT: Called when the actual UI needs to be created. Incomplete + // separation of model / UI. Will change later. should not get here if + // there is no valid implementation. + this.introPart = introPart; + this.memento = memento; + } + + /** + * Creates the UI based on the implementation class. + * + * @see org.eclipse.ui.IWorkbenchPart#createPartControl(org.eclipse.swt.widgets.Composite) + */ + public void createPartControl(Composite parent) { + Vector validImplementations = getValidImplementationElements(getCfgElement()); + IConfigurationElement implementationElement = null; + for (int i = 0; i < validImplementations.size(); i++) { + implementationElement = (IConfigurationElement) validImplementations.elementAt(i); + // you want to pass primed model. + updatePresentationAttributes(implementationElement); + try { + implementation = createIntroPartImplementation(getImplementationKind()); + if (implementation == null) + // failed to create executable. + continue; + + implementation.init(introPart, memento); + implementation.createPartControl(parent); + IntroModelRoot model = getModelRoot(); + if (model != null && model.getConfigurer() != null) + model.getConfigurer().init(introPart.getIntroSite()); + if (Log.logInfo) + Log.info("Loading Intro UI implementation from: " //$NON-NLS-1$ + + ModelLoaderUtil.getLogString(implementationElement, "kind")); //$NON-NLS-1$ + break; + } catch (SWTError e) { + Log.warning("Failed to create Intro UI implementation from: " //$NON-NLS-1$ + + ModelLoaderUtil.getLogString(implementationElement, "kind") + e.getMessage()); //$NON-NLS-1$ + implementation = null; + implementationElement = null; + } catch (Exception e) { + Log.error("Failed to create Intro UI implementation from: " //$NON-NLS-1$ + + ModelLoaderUtil.getLogString(implementationElement, "kind"), e); //$NON-NLS-1$ + implementation = null; + implementationElement = null; + } + } + + if (implementationElement == null) { + // worst case scenario. We failed in all cases. + implementation = new FormIntroPartImplementation(); + try { + implementation.init(introPart, memento); + // simply set the presentation kind since all other attributes + // will be null. + implementationKind = FORMS_IMPL_KIND; + } catch (Exception e) { + // should never be here. + Log.error(e.getMessage(), e); + return; + } + implementation.createPartControl(parent); + Log.warning("Loaded UI Forms implementation as a default UI implementation."); //$NON-NLS-1$ + } + } + + /** + * Retruns a list of valid implementation elements of the config. Choose correct implementation + * element based on os atrributes. Rules: get current OS, choose first contributrion, with os + * that matches OS. Otherwise, choose first contribution with no os. Returns null if no valid + * implementation is found. + */ + private Vector getValidImplementationElements(IConfigurationElement configElement) { + + Vector validList = new Vector(); + + // There can be more than one implementation contribution. Add each + // valid one. First start with OS, then WS then no OS. + IConfigurationElement[] implementationElements = configElement.getChildren(TAG_IMPLEMENTATION); + // IConfigurationElement implementationElement = null; + + if (implementationElements.length == 0) + // no contributions. done. + return validList; + + String currentOS = Platform.getOS(); + String currentWS = Platform.getWS(); + + // first loop through all to find one with matching OS, with or + // without WS. + for (int i = 0; i < implementationElements.length; i++) { + String os = implementationElements[i].getAttribute(ATT_OS); + if (os == null) + // no os, no match. + continue; + + if (listValueHasValue(os, currentOS)) { + // found implementation with correct OS. Now try if WS + // matches. + String ws = implementationElements[i].getAttribute(ATT_WS); + if (ws == null) { + // good OS, and they do not care about WS. we have a + // match. + validList.add(implementationElements[i]); + } else { + // good OS, and we have WS. + if (listValueHasValue(ws, currentWS)) + validList.add(implementationElements[i]); + } + } + } + + // now loop through all to find one with no OS defined, but with a + // matching WS. + for (int i = 0; i < implementationElements.length; i++) { + String os = implementationElements[i].getAttribute(ATT_OS); + if (os == null) { + // found implementation with no OS. Now try if WS + // matches. + String ws = implementationElements[i].getAttribute(ATT_WS); + if (ws == null) { + // no OS, and they do not care about WS. we have a + // match. + validList.add(implementationElements[i]); + } else { + // no OS, and we have WS. + if (listValueHasValue(ws, currentWS)) + validList.add(implementationElements[i]); + } + + } + } + + return validList; + + } + + /** + * Util method that searches for the given value in a comma separated list of values. The list + * is retrieved as an attribute value of OS, WS. + * + */ + private boolean listValueHasValue(String stringValue, String value) { + String[] attributeValues = stringValue.split(","); //$NON-NLS-1$ + for (int i = 0; i < attributeValues.length; i++) { + if (attributeValues[i].equalsIgnoreCase(value)) + return true; + } + return false; + } + + /** + * Util method to load shared style from given kind. + */ + public String getSharedStyle(String kind) { + // There can be more than one implementation contribution. + IConfigurationElement[] implementationElements = getCfgElement().getChildren(TAG_IMPLEMENTATION); + // IConfigurationElement implementationElement = null; + + if (implementationElements.length == 0) + // no implementations. done. + return null; + + // loop through all to find one with matching kind. + for (int i = 0; i < implementationElements.length; i++) { + String aKind = implementationElements[i].getAttribute(ATT_KIND); + if (aKind.equals(kind)) { + // found implementation with matching kind. + String style = implementationElements[i].getAttribute(ATT_STYLE); + return ModelUtil.resolveURL(style, getCfgElement()); + } + } + return null; + } + + + /** + * Creates the actual implementation class. Returns null on failure. + * + */ + private AbstractIntroPartImplementation createIntroPartImplementation(String implementationType) { + // quick exits + if (implementationType == null) + return null; + if (!implementationType.equals(BROWSER_IMPL_KIND) && !implementationType.equals(FORMS_IMPL_KIND) + && !implementationType.equals(TEXT_IMPL_KIND)) + return null; + + AbstractIntroPartImplementation implementation = null; + try { + if (implementationType.equals(BROWSER_IMPL_KIND)) + implementation = new BrowserIntroPartImplementation(); + else if (implementationType.equals(FORMS_IMPL_KIND)) + implementation = new FormIntroPartImplementation(); + else + implementation = new TextIntroPartImplementation(); + } catch (Exception e) { + Log.error("Could not instantiate implementation " //$NON-NLS-1$ + + implementationType, e); + } + return implementation; + } + + /** + * Returns the the Customizable Intro Part. may return null if init() has not been called yet on + * the presentation. + * + * @return Returns the introPart. + */ + public IIntroPart getIntroPart() { + return introPart; + } + + /** + * Save the current state of the intro. Delegate to the implementation to do the work, as + * different implementations may have different requirements. + * + * @param memento + * the memento in which to store state information + */ + public void saveState(IMemento memento) { + if (implementation != null) + implementation.saveState(memento); + } + + + public void setFocus() { + if (implementation != null) + implementation.setFocus(); + } + + public void standbyStateChanged(boolean standby, boolean isStandbyPartNeeded) { + if (implementation != null) + implementation.standbyStateChanged(standby, isStandbyPartNeeded); + } + + public void updateHistory(AbstractIntroPage page) { + if (implementation != null) + implementation.updateHistory(page); + } + + + + public boolean navigateForward() { + if (implementation != null) + return implementation.navigateForward(); + return false; + } + + public boolean navigateBackward() { + if (implementation != null) + return implementation.navigateBackward(); + return false; + } + + public boolean navigateHome() { + if (implementation != null) + return implementation.navigateHome(); + return false; + } + + + /** + * Called when the IntroPart is disposed. Forwards the call to the implementation class. + */ + public void dispose() { + if (implementation != null) + implementation.dispose(); + } + + /** + * Support dynamic awarness. Clear cached models first, then update UI by delegating to + * implementation. + * + * @see org.eclipse.core.runtime.IRegistryChangeListener#registryChanged(org.eclipse.core.runtime.IRegistryChangeEvent) + */ + public void registryChanged(IRegistryChangeEvent event) { + if (implementation != null) + implementation.registryChanged(event); + } + + /** + * @return Returns the homePageId. + */ + public String getHomePageId() { + return homePageId; + } + + /** + * @return Returns the homePageId. + */ + public String getStandbyPageId() { + return standbyPageId; + } + + /* + * (non-Javadoc) + * + * @see org.eclipse.ui.internal.intro.impl.model.IntroElement#getType() + */ + public int getType() { + return AbstractIntroElement.PRESENTATION; + } + + /** + * @return Returns the HTML head conttent to be added to each dynamic html page in this + * presentation.. + */ + public IntroHead getHead() { + return head; + } diff --git a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/presentations/BrowserIntroPartImplementation.java b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/presentations/BrowserIntroPartImplementation.java index dd174cc50..d3529a7f5 100644 --- a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/presentations/BrowserIntroPartImplementation.java +++ b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/presentations/BrowserIntroPartImplementation.java @@ -13,6 +13,7 @@ import java.util.Properties; import org.eclipse.core.runtime.IRegistryChangeEvent; import org.eclipse.core.runtime.Platform; import org.eclipse.jface.action.IToolBarManager; +import org.eclipse.jface.action.Separator; import org.eclipse.swt.SWT; import org.eclipse.swt.browser.Browser; import org.eclipse.swt.browser.ProgressEvent; @@ -44,6 +45,7 @@ import org.eclipse.ui.internal.intro.impl.util.Util; import org.eclipse.ui.intro.config.IIntroContentProvider; import org.eclipse.ui.intro.config.IIntroContentProviderSite; import org.eclipse.ui.intro.config.IIntroXHTMLContentProvider; +import org.eclipse.ui.intro.config.IntroConfigurer; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.Node; @@ -132,8 +134,8 @@ public class BrowserIntroPartImplementation extends browser.setText(Messages.Browser_invalidConfig); return; } - - // root page is what decides if the model is dynamic or not. + + // root page is what decides if the model is dynamic or not. if (getModel().isDynamic()) handleDynamicIntro(); else @@ -355,6 +357,7 @@ public class BrowserIntroPartImplementation extends forwardAction); actionBars.setGlobalActionHandler(ActionFactory.BACK.getId(), backAction); + toolBarManager.add(new Separator(IntroConfigurer.TB_ADDITIONS)); toolBarManager.add(homeAction); toolBarManager.add(backAction); toolBarManager.add(forwardAction); diff --git a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/presentations/FormIntroPartImplementation.java b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/presentations/FormIntroPartImplementation.java index 9e8ac47a5..4824dae0e 100644 --- a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/presentations/FormIntroPartImplementation.java +++ b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/presentations/FormIntroPartImplementation.java @@ -12,6 +12,7 @@ package org.eclipse.ui.internal.intro.impl.presentations; import org.eclipse.core.runtime.IRegistryChangeEvent; import org.eclipse.jface.action.IToolBarManager; +import org.eclipse.jface.action.Separator; import org.eclipse.swt.SWT; import org.eclipse.swt.graphics.Color; import org.eclipse.swt.graphics.Image; @@ -46,6 +47,7 @@ import org.eclipse.ui.internal.intro.impl.util.Util; import org.eclipse.ui.intro.config.CustomizableIntroPart; import org.eclipse.ui.intro.config.IIntroContentProvider; import org.eclipse.ui.intro.config.IIntroContentProviderSite; +import org.eclipse.ui.intro.config.IntroConfigurer; /** * This is a UI Forms based implementation of an Intro Part Presentation. @@ -250,6 +252,7 @@ public class FormIntroPartImplementation extends forwardAction); actionBars.setGlobalActionHandler(ActionFactory.BACK.getId(), backAction); + toolBarManager.add(new Separator(IntroConfigurer.TB_ADDITIONS)); toolBarManager.add(homeAction); toolBarManager.add(backAction); toolBarManager.add(forwardAction); diff --git a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/universal/CustomizeCommand.java b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/universal/CustomizeCommand.java deleted file mode 100644 index c16091379..000000000 --- a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/universal/CustomizeCommand.java +++ /dev/null @@ -1,66 +0,0 @@ -package org.eclipse.ui.internal.intro.universal; - -import java.util.Properties; - -import org.eclipse.core.runtime.IConfigurationElement; -import org.eclipse.core.runtime.Platform; -import org.eclipse.jface.preference.IPreferenceNode; -import org.eclipse.jface.preference.PreferenceDialog; -import org.eclipse.jface.preference.PreferenceManager; -import org.eclipse.jface.preference.PreferenceNode; -import org.eclipse.ui.IWorkbenchWindow; -import org.eclipse.ui.PlatformUI; -import org.eclipse.ui.intro.IIntroSite; -import org.eclipse.ui.intro.config.IIntroAction; - - -public class CustomizeCommand implements IIntroAction { - - public static final String P_PAGE_ID = "pageId"; //$NON-NLS-1$ - - public static IConfigurationElement getPageElement() { - IConfigurationElement[] elements = Platform.getExtensionRegistry().getConfigurationElementsFor( - "org.eclipse.ui.preferencePages"); //$NON-NLS-1$ - for (int i = 0; i < elements.length; i++) { - IConfigurationElement element = elements[i]; - if (element.getName().equals("page")) { //$NON-NLS-1$ - String att = element.getAttribute("class"); //$NON-NLS-1$ - if (att != null - && att.equals("org.eclipse.ui.intro.config.ExtensionFactory:welcomeCustomization")) { //$NON-NLS-1$ - return element; - } - } - } - return null; - } - - public void run(IIntroSite site, Properties params) { - String pageId = params.getProperty(P_PAGE_ID); - PreferenceManager pm = new PreferenceManager(); - IPreferenceNode node = createPreferenceNode(pageId); - pm.addToRoot(node); - IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow(); - PreferenceDialog dialog = new PreferenceDialog(window.getShell(), pm); - dialog.open(); - } - - private IPreferenceNode createPreferenceNode(final String pageId) { - IConfigurationElement element = getPageElement(); - if (element == null) - return null; - String id = element.getAttribute("id"); //$NON-NLS-1$ - String label = element.getAttribute("name"); //$NON-NLS-1$ - String className = "org.eclipse.ui.internal.intro.shared.WelcomeCustomizationPreferencePage"; //$NON-NLS-1$ - if (id == null || label == null || className == null) - return null; - return new PreferenceNode(id, label, null, className) { - - public void createPage() { - WelcomeCustomizationPreferencePage page = new WelcomeCustomizationPreferencePage(); - page.setTitle(getLabelText()); - page.setCurrentPage(pageId); - setPage(page); - } - }; - } -} diff --git a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/universal/ExtensionData.java b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/universal/ExtensionData.java deleted file mode 100644 index 3d2a45c79..000000000 --- a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/universal/ExtensionData.java +++ /dev/null @@ -1,128 +0,0 @@ -package org.eclipse.ui.internal.intro.universal; - -import java.io.PrintWriter; - -import org.eclipse.ui.internal.intro.impl.Messages; - - -public class ExtensionData { - - public static final int HIDDEN = -1; - public static final int CALLOUT = 0; - public static final int LOW = 1; - public static final int MEDIUM = 2; - public static final int HIGH = 3; - public static final int NEW = 4; - - private String id; - private String name; - private int fImportance = LOW; - private boolean implicit = false; - private GroupData parent; - - public static final String[] IMPORTANCE_TABLE = { ISharedIntroConstants.CALLOUT, - ISharedIntroConstants.LOW, ISharedIntroConstants.MEDIUM, ISharedIntroConstants.HIGH, - ISharedIntroConstants.NEW }; - - public static final String[] IMPORTANCE_STYLE_TABLE = { ISharedIntroConstants.STYLE_CALLOUT, - ISharedIntroConstants.STYLE_LOW, ISharedIntroConstants.STYLE_MEDIUM, ISharedIntroConstants.STYLE_HIGH, - ISharedIntroConstants.STYLE_NEW }; - - public static final String [] IMPORTANCE_NAME_TABLE = { Messages.ExtensionData_callout, - Messages.ExtensionData_low, Messages.ExtensionData_medium, Messages.ExtensionData_high, Messages.ExtensionData_new }; - - public ExtensionData(String id, String name) { - this(id, name, ISharedIntroConstants.LOW, false); - } - - public ExtensionData(String id, String name, int importance) { - this.id = id; - this.name = name; - this.fImportance = importance; - this.implicit = false; - } - - void setParent(GroupData gd) { - this.parent = gd; - } - - public GroupData getParent() { - return parent; - } - - public boolean isImplicit() { - return implicit; - } - - public ExtensionData(String id, String name, String importance, boolean implicit) { - this.id = id; - this.name = name; - this.implicit = implicit; - if (importance != null) { - if (importance.equals(ISharedIntroConstants.HIGH)) - fImportance = HIGH; - else if (importance.equals(ISharedIntroConstants.MEDIUM)) - fImportance = MEDIUM; - else if (importance.equals(ISharedIntroConstants.LOW)) - fImportance = LOW; - else if (importance.equals(ISharedIntroConstants.CALLOUT)) - fImportance = CALLOUT; - else if (importance.equals(ISharedIntroConstants.NEW)) - fImportance = NEW; - else if (importance.equals(ISharedIntroConstants.HIDDEN)) - fImportance = HIDDEN; - } - } - - public String getId() { - return id; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public int getImportance() { - return fImportance; - } - - public void setImportance(int newValue) { - fImportance = newValue; - } - - public boolean isHidden() { - return fImportance == HIDDEN; - } - - public void write(PrintWriter writer, String indent) { - writer.print(indent); - writer.print("<extension id=\"" + id + "\""); //$NON-NLS-1$ //$NON-NLS-2$ - if (!isHidden()) - writer.println(" importance=\"" + getImportanceAttributeValue() + "\"/>"); //$NON-NLS-1$ //$NON-NLS-2$ - else - writer.println("/>"); //$NON-NLS-1$ - } - - private String getImportanceAttributeValue() { - return IMPORTANCE_TABLE[fImportance]; - } - - public String toString() { - return name!=null?name:id; - } -/* - public boolean equals(Object obj) { - if (obj == null) return false; - if (obj == this) return true; - if (obj instanceof ExtensionData) { - ExtensionData src = (ExtensionData)obj; - return (id.equals(src.id) && name.equals(src.name) && fImportance==src.fImportance); - } - return false; - } - */ -}
\ No newline at end of file diff --git a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/universal/ExtensionDataTransfer.java b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/universal/ExtensionDataTransfer.java deleted file mode 100644 index f37d88375..000000000 --- a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/universal/ExtensionDataTransfer.java +++ /dev/null @@ -1,113 +0,0 @@ -package org.eclipse.ui.internal.intro.universal; - -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.DataInputStream; -import java.io.DataOutputStream; -import java.io.IOException; - -import org.eclipse.swt.dnd.ByteArrayTransfer; -import org.eclipse.swt.dnd.DND; -import org.eclipse.swt.dnd.TransferData; - - -public class ExtensionDataTransfer extends ByteArrayTransfer { - - private static final String MYTYPENAME = "ExtensionData"; //$NON-NLS-1$ - private static final int MYTYPEID = registerType(MYTYPENAME); - private static ExtensionDataTransfer _instance = new ExtensionDataTransfer(); - - public static ExtensionDataTransfer getInstance() { - return _instance; - } - - protected String[] getTypeNames() { - return new String[] { MYTYPENAME }; - } - - protected int[] getTypeIds() { - return new int[] { MYTYPEID }; - } - - public void javaToNative(Object object, TransferData transferData) { - if (!checkMyType(object) || !isSupportedType(transferData)) { - DND.error(DND.ERROR_INVALID_DATA); - } - ExtensionData[] myTypes = (ExtensionData[]) object; - try { - // write data to a byte array and then ask super to convert to pMedium - ByteArrayOutputStream out = new ByteArrayOutputStream(); - DataOutputStream writeOut = new DataOutputStream(out); - for (int i = 0, length = myTypes.length; i < length; i++) { - ExtensionData ed = myTypes[i]; - byte[] buffer = ed.getId().getBytes(); - writeOut.writeInt(ed.getId().length()); - writeOut.write(buffer); - writeOut.writeInt(ed.getName().length()); - buffer = ed.getName().getBytes(); - writeOut.write(buffer); - writeOut.writeInt(myTypes[i].getImportance()); - } - byte[] buffer = out.toByteArray(); - writeOut.close(); - super.javaToNative(buffer, transferData); - } catch (IOException e) { - } - } - - public Object nativeToJava(TransferData transferData) { - if (isSupportedType(transferData)) { - byte[] buffer = (byte[]) super.nativeToJava(transferData); - if (buffer == null) - return null; - - ExtensionData[] myData = new ExtensionData[0]; - try { - ByteArrayInputStream in = new ByteArrayInputStream(buffer); - DataInputStream readIn = new DataInputStream(in); - while (readIn.available() > 12) { - int importance; - String id; - String name; - int size = readIn.readInt(); - byte[] buff = new byte[size]; - readIn.read(buff); - id = new String(buff); - size = readIn.readInt(); - buff = new byte[size]; - readIn.read(buff); - name = new String(buff); - importance = readIn.readInt(); - - ExtensionData[] newMyData = new ExtensionData[myData.length + 1]; - System.arraycopy(myData, 0, newMyData, 0, myData.length); - newMyData[myData.length] = new ExtensionData(id, name, importance); - myData = newMyData; - } - readIn.close(); - } catch (IOException ex) { - return null; - } - return myData; - } - - return null; - } - - - boolean checkMyType(Object object) { - if (object == null || !(object instanceof ExtensionData[]) || ((ExtensionData[]) object).length == 0) { - return false; - } - ExtensionData[] myTypes = (ExtensionData[]) object; - for (int i = 0; i < myTypes.length; i++) { - if (myTypes[i] == null || myTypes[i].getId() == null || myTypes[i].getName() == null) - return false; - } - return true; - } - - protected boolean validate(Object object) { - return checkMyType(object); - } -} diff --git a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/universal/GroupData.java b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/universal/GroupData.java deleted file mode 100644 index 24162ee83..000000000 --- a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/universal/GroupData.java +++ /dev/null @@ -1,166 +0,0 @@ -package org.eclipse.ui.internal.intro.universal; - -import java.io.PrintWriter; -import java.util.ArrayList; - -import org.eclipse.ui.intro.config.IntroElement; -import org.w3c.dom.Element; -import org.w3c.dom.Node; -import org.w3c.dom.NodeList; - - -public class GroupData { - boolean fDefault=false; - private String path; - private ArrayList extensions = new ArrayList(); - - public GroupData(String path, boolean defaultGroup) { - fDefault = defaultGroup; - this.path = path; - } - - public GroupData(Element element) { - if (element.getNodeName().equals("hidden")) //$NON-NLS-1$ - path = ISharedIntroConstants.HIDDEN; - else - path = element.getAttribute("path"); //$NON-NLS-1$ - NodeList children = element.getChildNodes(); - for (int i = 0; i < children.getLength(); i++) { - Node child = children.item(i); - if (child.getNodeType() == Node.ELEMENT_NODE && child.getNodeName().equals("extension")) { //$NON-NLS-1$ - loadExtension((Element) child); - } - } - String df = element.getAttribute("default"); //$NON-NLS-1$ - if (df!=null && df.equalsIgnoreCase("true")) //$NON-NLS-1$ - fDefault = true; - } - - public boolean isHidden() { - return (path.equals(ISharedIntroConstants.HIDDEN)); - } - - public boolean isDefault() { - return fDefault; - } - - public void addAnchors(ArrayList result) { - for (int i = 0; i < extensions.size(); i++) { - ExtensionData edata = (ExtensionData) extensions.get(i); - String id = edata.getId(); - IntroElement anchor = new IntroElement("anchor"); //$NON-NLS-1$ - anchor.setAttribute("id", id); //$NON-NLS-1$ - result.add(anchor); - } - } - - public void add(ExtensionData ed) { - extensions.add(ed); - ed.setParent(this); - } - public void add(int index, ExtensionData ed) { - extensions.add(index, ed); - ed.setParent(this); - } - public void remove(ExtensionData ed) { - extensions.remove(ed); - ed.setParent(null); - } - - public void addImplicitExtension(String id, String name) { - ExtensionData ed = new ExtensionData(id, name, ISharedIntroConstants.LOW, true); - add(ed); - } - - private void loadExtension(Element element) { - String id = element.getAttribute("id"); //$NON-NLS-1$ - String name = element.getAttribute("name"); //$NON-NLS-1$ - String importance = element.getAttribute("importance"); //$NON-NLS-1$ - ExtensionData ed = new ExtensionData(id, name, importance, false); - add(ed); - } - - public int getExtensionCount() { - return extensions.size(); - } - - public ExtensionData[] getExtensions() { - return (ExtensionData[]) extensions.toArray(new ExtensionData[extensions.size()]); - } - - public String getPath() { - return path; - } - - public boolean contains(String extensionId) { - return find(extensionId)!=null; - } - - ExtensionData find(String extensionId) { - for (int i = 0; i < extensions.size(); i++) { - ExtensionData ed = (ExtensionData) extensions.get(i); - if (ed.getId().equals(extensionId)) - return ed; - } - return null; - } - - public int getIndexOf(ExtensionData ed) { - return extensions.indexOf(ed); - } - - public int getIndexOf(String extensionId) { - for (int i = 0; i < extensions.size(); i++) { - ExtensionData ed = (ExtensionData) extensions.get(i); - if (ed.getId().equals(extensionId)) - return i; - } - return -1; - } - - public boolean canMoveUp(ExtensionData ed) { - int index = extensions.indexOf(ed); - return (index>0); - } - - public boolean canMoveDown(ExtensionData ed) { - int index = extensions.indexOf(ed); - return (index!= -1 && index < extensions.size()-1); - } - - public void moveUp(ExtensionData ed) { - int index = extensions.indexOf(ed); - ExtensionData swapped = (ExtensionData)extensions.get(index-1); - extensions.set(index, swapped); - extensions.set(index-1, ed); - } - - public void moveDown(ExtensionData ed) { - int index = extensions.indexOf(ed); - ExtensionData swapped = (ExtensionData)extensions.get(index+1); - extensions.set(index, swapped); - extensions.set(index+1, ed); - } - - public void write(PrintWriter writer, String indent) { - writer.print(indent); - if (isHidden()) - writer.print("<hidden>"); //$NON-NLS-1$ - else { - writer.print("<group path=\""+path+"\""); //$NON-NLS-1$ //$NON-NLS-2$ - if (fDefault) - writer.println(" default=\"true\">"); //$NON-NLS-1$ - else - writer.println(">"); //$NON-NLS-1$ - } - for (int i=0; i<extensions.size(); i++) { - ExtensionData ed = (ExtensionData)extensions.get(i); - ed.write(writer, indent+" "); //$NON-NLS-1$ - } - writer.print(indent); - if (isHidden()) - writer.println("</hidden>"); //$NON-NLS-1$ - else - writer.println("</group>"); //$NON-NLS-1$ - } -}
\ No newline at end of file diff --git a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/universal/ISharedIntroConstants.java b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/universal/ISharedIntroConstants.java deleted file mode 100644 index 9e3209e06..000000000 --- a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/universal/ISharedIntroConstants.java +++ /dev/null @@ -1,46 +0,0 @@ -package org.eclipse.ui.internal.intro.universal; - - -public interface ISharedIntroConstants { - String LOW = "low"; //$NON-NLS-1$ - String MEDIUM = "medium"; //$NON-NLS-1$ - String HIGH = "high"; //$NON-NLS-1$ - String CALLOUT = "callout"; //$NON-NLS-1$ - String HIDDEN = "hidden"; //$NON-NLS-1$ - String NEW = "new"; //$NON-NLS-1$ - - String STYLE_LOW = "importance-low"; //$NON-NLS-1$ - String STYLE_MEDIUM = "importance-medium"; //$NON-NLS-1$ - String STYLE_HIGH = "importance-high"; //$NON-NLS-1$ - String STYLE_CALLOUT = "importance-callout"; //$NON-NLS-1$ - String STYLE_NEW = "importance-new"; //$NON-NLS-1$ - String DEFAULT_ANCHOR = "defaultAnchor"; //$NON-NLS-1$ - String DEFAULT_CONTENT_PATH = "/page-content/bottom/"+DEFAULT_ANCHOR; //$NON-NLS-1$ - // Page ids - String ID_ROOT = "root"; //$NON-NLS-1$ - String ID_STANDBY = "standby"; //$NON-NLS-1$ - String ID_OVERVIEW = "overview";//$NON-NLS-1$ - String ID_TUTORIALS = "tutorials";//$NON-NLS-1$ - String ID_SAMPLES = "samples";//$NON-NLS-1$ - String ID_FIRSTSTEPS = "firststeps";//$NON-NLS-1$ - String ID_WHATSNEW = "whatsnew";//$NON-NLS-1$ - String ID_MIGRATE = "migrate";//$NON-NLS-1$ - String ID_WEBRESOURCES = "webresources";//$NON-NLS-1$ - - // Page DIV ids - String DIV_PAGE_LINKS = "page-links"; //$NON-NLS-1$ - String DIV_LAYOUT_TOP_LEFT = "top-left"; //$NON-NLS-1$ - String DIV_LAYOUT_TOP_RIGHT = "top-right"; //$NON-NLS-1$ - String DIV_LAYOUT_BOTTOM_LEFT = "bottom-left"; //$NON-NLS-1$ - String DIV_LAYOUT_BOTTOM_RIGHT = "bottom-right"; //$NON-NLS-1$ - String DIV_CUSTOMIZE = "customize"; //$NON-NLS-1$ - - // Product intro variables - String VAR_INTRO_BACKGROUND_IMAGE = "INTRO_BACKGROUND_IMAGE"; //$NON-NLS-1$ - String VAR_INTRO_ROOT_PAGES = "INTRO_ROOT_PAGES"; //$NON-NLS-1$ - String VAR_INTRO_DATA = "INTRO_DATA"; //$NON-NLS-1$ - - //Page table properties - String P_IMPORTANCE = "importance"; //$NON-NLS-1$ - String P_NAME = "name"; //$NON-NLS-1$ -} diff --git a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/universal/IntroData.java b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/universal/IntroData.java deleted file mode 100644 index 70162d827..000000000 --- a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/universal/IntroData.java +++ /dev/null @@ -1,189 +0,0 @@ -package org.eclipse.ui.internal.intro.universal; - -import java.io.IOException; -import java.io.PrintWriter; -import java.io.StringReader; -import java.util.Enumeration; -import java.util.Hashtable; - -import javax.xml.parsers.DocumentBuilder; -import javax.xml.parsers.DocumentBuilderFactory; -import javax.xml.parsers.ParserConfigurationException; - -import org.eclipse.core.runtime.IConfigurationElement; -import org.eclipse.core.runtime.Platform; -import org.eclipse.ui.internal.intro.impl.model.loader.IntroContentParser; -import org.eclipse.ui.internal.intro.impl.model.util.BundleUtil; -import org.eclipse.ui.internal.intro.impl.util.Log; -import org.osgi.framework.Bundle; -import org.w3c.dom.Document; -import org.w3c.dom.Element; -import org.w3c.dom.Node; -import org.w3c.dom.NodeList; -import org.xml.sax.InputSource; -import org.xml.sax.SAXException; -import org.xml.sax.SAXParseException; - - -public class IntroData { - private String productId; - private Hashtable pages=new Hashtable(); - private boolean active; - - public IntroData(String productId, String fileNameOrData, boolean active) { - this.productId = productId; - this.active = active; - if (fileNameOrData!=null) - initialize(fileNameOrData); - } - - public String getProductId() { - return productId; - } - - public PageData getPage(String pageId) { - return (PageData)pages.get(pageId); - } - - public boolean isActive() { - return active; - } - - private void initialize(String fileNameOrData) { - Document doc = parse(fileNameOrData); - if (doc == null) - return; - Element root = doc.getDocumentElement(); - NodeList pages = root.getChildNodes(); - for (int i = 0; i < pages.getLength(); i++) { - Node node = pages.item(i); - if (node.getNodeType() == Node.ELEMENT_NODE && node.getNodeName().equals("page")) { //$NON-NLS-1$ - loadPage((Element) node); - } - } - } - - private void loadPage(Element page) { - PageData pd = new PageData(page); - pages.put(pd.getId(), pd); - } - - public void addImplicitContent() { - IConfigurationElement [] elements = Platform.getExtensionRegistry().getConfigurationElementsFor("org.eclipse.ui.intro.configExtension"); //$NON-NLS-1$ - for (int i=0; i<elements.length; i++) { - IConfigurationElement element = elements[i]; - if (element.getName().equals("configExtension")) { //$NON-NLS-1$ - String cid = element.getAttribute("configId"); //$NON-NLS-1$ - if (cid!=null && cid.equals("org.eclipse.ui.intro.universalConfig")) { //$NON-NLS-1$ - addCandidate(element); - } - } - } - } - - private void addCandidate(IConfigurationElement element) { - String fileName = element.getAttribute("content"); //$NON-NLS-1$ - if (fileName==null) - return; - String bundleId = element.getDeclaringExtension().getNamespace(); - Bundle bundle = Platform.getBundle(bundleId); - if (bundle==null) - return; - String content = BundleUtil.getResolvedResourceLocation("", fileName, //$NON-NLS-1$ - bundle); - IntroContentParser parser = new IntroContentParser(content); - Document dom = parser.getDocument(); - Element root = dom.getDocumentElement(); - Element extension = null; - NodeList children = root.getChildNodes(); - for (int i=0; i<children.getLength(); i++) { - Node child = children.item(i); - if (child.getNodeType()==Node.ELEMENT_NODE) { - Element el = (Element)child; - if (el.getNodeName().equalsIgnoreCase("extensionContent")) { //$NON-NLS-1$ - extension = el; - break; - } - } - } - if (extension==null) - return; - String id = extension.getAttribute("id"); //$NON-NLS-1$ - String name = extension.getAttribute("name"); //$NON-NLS-1$ - String path = extension.getAttribute("path"); //$NON-NLS-1$ - if (id==null || path==null) - return; - int at = path.lastIndexOf("/@"); //$NON-NLS-1$ - if (at == -1) - return; - if (path.charAt(path.length()-1)!='@') - return; - String pageId = path.substring(0, at); - PageData pd = (PageData)pages.get(pageId); - if (pd==null) { - pd = new PageData(pageId); - pages.put(pageId, pd); - } - pd.addImplicitExtension(id, name); - } - - private Document parse(String fileNameOrData) { - Document document = null; - try { - DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance(); - docFactory.setValidating(false); - // if this is not set, Document.getElementsByTagNameNS() will fail. - docFactory.setNamespaceAware(true); - docFactory.setExpandEntityReferences(false); - DocumentBuilder parser = docFactory.newDocumentBuilder(); - - if (fileNameOrData.charAt(0)=='<') { - //This is actual content, not the file name - StringReader reader = new StringReader(fileNameOrData); - document = parser.parse(new InputSource(reader)); - } - else - document = parser.parse(fileNameOrData); - return document; - - } catch (SAXParseException spe) { - StringBuffer buffer = new StringBuffer("IntroData error in line "); //$NON-NLS-1$ - buffer.append(spe.getLineNumber()); - buffer.append(", uri "); //$NON-NLS-1$ - buffer.append(spe.getSystemId()); - buffer.append("\n"); //$NON-NLS-1$ - buffer.append(spe.getMessage()); - - // Use the contained exception. - Exception x = spe; - if (spe.getException() != null) - x = spe.getException(); - Log.error(buffer.toString(), x); - - } catch (SAXException sxe) { - Exception x = sxe; - if (sxe.getException() != null) - x = sxe.getException(); - Log.error(x.getMessage(), x); - - } catch (ParserConfigurationException pce) { - // Parser with specified options can't be built - Log.error(pce.getMessage(), pce); - - } catch (IOException ioe) { - Log.error(ioe.getMessage(), ioe); - } - return null; - } - - public void write(PrintWriter writer) { - writer.println("<?xml version=\"1.0\" encoding=\"utf-8\" ?>"); //$NON-NLS-1$ - writer.println("<extensions>"); //$NON-NLS-1$ - for (Enumeration keys = pages.keys(); keys.hasMoreElements();) { - String id = (String)keys.nextElement(); - PageData pd = (PageData)pages.get(id); - pd.write(writer, " "); //$NON-NLS-1$ - } - writer.println("</extensions>"); //$NON-NLS-1$ - } -} diff --git a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/universal/IntroDataApplication.java b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/universal/IntroDataApplication.java deleted file mode 100644 index 6ddc0f847..000000000 --- a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/universal/IntroDataApplication.java +++ /dev/null @@ -1,118 +0,0 @@ -package org.eclipse.ui.internal.intro.universal; - -import java.io.PrintStream; -import java.util.ArrayList; -import java.util.Hashtable; - -import org.eclipse.core.runtime.IConfigurationElement; -import org.eclipse.core.runtime.IPlatformRunnable; -import org.eclipse.core.runtime.Platform; -import org.eclipse.ui.internal.intro.impl.model.loader.IntroContentParser; -import org.eclipse.ui.internal.intro.impl.model.util.BundleUtil; -import org.osgi.framework.Bundle; -import org.w3c.dom.Document; -import org.w3c.dom.Element; -import org.w3c.dom.Node; -import org.w3c.dom.NodeList; - - -public class IntroDataApplication implements IPlatformRunnable { - -class PageData { - String id; - ArrayList extensions = new ArrayList(); - PageData(String id) { - this.id = id; - } -} - - public Object run(Object args) throws Exception { - Hashtable pages = findCandidates(); - writeIntroData(pages, System.out); - return new Integer(0); - } - - private void writeIntroData(Hashtable pages, PrintStream stream) { - stream.println("<?xml version=\"1.0\" encoding=\"utf-8\" ?>"); //$NON-NLS-1$ - stream.println("<extensions>"); //$NON-NLS-1$ - writePage(ISharedIntroConstants.ID_OVERVIEW, stream, pages); - writePage(ISharedIntroConstants.ID_FIRSTSTEPS, stream, pages); - writePage(ISharedIntroConstants.ID_TUTORIALS, stream, pages); - writePage(ISharedIntroConstants.ID_SAMPLES, stream, pages); - writePage(ISharedIntroConstants.ID_WHATSNEW, stream, pages); - writePage(ISharedIntroConstants.ID_MIGRATE, stream, pages); - writePage(ISharedIntroConstants.ID_WEBRESOURCES, stream, pages); - stream.println("</extensions>"); //$NON-NLS-1$ - } - - private void writePage(String id, PrintStream stream, Hashtable pages) { - PageData pd = (PageData)pages.get(id); - if (pd==null) - return; - stream.println(" <page id=\""+id+"\">"); //$NON-NLS-1$//$NON-NLS-2$ - stream.println(" <group path=\""+"??"+"\">"); //$NON-NLS-1$ //$NON-NLS-2$//$NON-NLS-3$ - for (int i=0; i<pd.extensions.size(); i++) { - String eid = (String)pd.extensions.get(i); - stream.println(" <extension id=\""+eid+"\" importance=\"low\"/>"); //$NON-NLS-1$ //$NON-NLS-2$ - } - stream.println(" </group>"); //$NON-NLS-1$ - stream.println(" </page>"); //$NON-NLS-1$ - } - - private Hashtable findCandidates() { - Hashtable pages = new Hashtable(); - IConfigurationElement [] elements = Platform.getExtensionRegistry().getConfigurationElementsFor("org.eclipse.ui.intro.configExtension"); //$NON-NLS-1$ - for (int i=0; i<elements.length; i++) { - IConfigurationElement element = elements[i]; - if (element.getName().equals("configExtension")) { //$NON-NLS-1$ - String cid = element.getAttribute("configId"); //$NON-NLS-1$ - if (cid!=null && cid.equals("org.eclipse.ui.intro.sharedConfig")) { //$NON-NLS-1$ - addCandidate(pages, element); - } - } - } - return pages; - } - private void addCandidate(Hashtable pages, IConfigurationElement element) { - String fileName = element.getAttribute("content"); //$NON-NLS-1$ - if (fileName==null) - return; - String bundleId = element.getDeclaringExtension().getNamespace(); - Bundle bundle = Platform.getBundle(bundleId); - if (bundle==null) - return; - String content = BundleUtil.getResolvedResourceLocation("", fileName, //$NON-NLS-1$ - bundle); - IntroContentParser parser = new IntroContentParser(content); - Document dom = parser.getDocument(); - Element root = dom.getDocumentElement(); - Element extension = null; - NodeList children = root.getChildNodes(); - for (int i=0; i<children.getLength(); i++) { - Node child = children.item(i); - if (child.getNodeType()==Node.ELEMENT_NODE) { - Element el = (Element)child; - if (el.getNodeName().equalsIgnoreCase("extensionContent")) { //$NON-NLS-1$ - extension = el; - break; - } - } - } - if (extension==null) - return; - String id = extension.getAttribute("id"); //$NON-NLS-1$ - String path = extension.getAttribute("path"); //$NON-NLS-1$ - if (id==null || path==null) - return; - int at = path.lastIndexOf("/@"); //$NON-NLS-1$ - if (at == -1) - return; - path = path.substring(0, at); - PageData pdata = (PageData)pages.get(path); - if (pdata==null) { - pdata = new PageData(path); - pages.put(path, pdata); - } - pdata.extensions.add(id); - } -}
\ No newline at end of file diff --git a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/universal/PageData.java b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/universal/PageData.java deleted file mode 100644 index b24fb5380..000000000 --- a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/universal/PageData.java +++ /dev/null @@ -1,180 +0,0 @@ -package org.eclipse.ui.internal.intro.universal; - -import java.io.PrintWriter; -import java.util.ArrayList; - -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.Path; -import org.w3c.dom.Element; -import org.w3c.dom.Node; -import org.w3c.dom.NodeList; - -public class PageData { - public static final String P_TOP_LEFT = "page-content/top-left"; //$NON-NLS-1$ - public static final String P_TOP_RIGHT = "page-content/top-right"; //$NON-NLS-1$ - public static final String P_BOTTOM_LEFT = "page-content/bottom-left"; //$NON-NLS-1$ - public static final String P_BOTTOM_RIGHT = "page-content/bottom-right"; //$NON-NLS-1$ - - private String id; - private ArrayList groups = new ArrayList(); - private GroupData hidden=null; - - public PageData(String id) { - this.id = id; - } - - public PageData(Element page) { - this.id = page.getAttribute("id"); //$NON-NLS-1$ - NodeList children = page.getChildNodes(); - for (int i=0; i<children.getLength(); i++) { - Node child = children.item(i); - if (child.getNodeType()==Node.ELEMENT_NODE) { - Element element = (Element)child; - if (element.getNodeName().equals("group")) { //$NON-NLS-1$ - addGroup(element, false); - } - else if (element.getNodeName().equals(ISharedIntroConstants.HIDDEN)) { - addGroup(element, true); - } - } - } - } - - public void add(GroupData gd) { - if (gd.isHidden()) - hidden = gd; - else - groups.add(gd); - } - - public void addAnchors(ArrayList result, String groupId) { - GroupData group = findGroup(groupId); - if (group==null) return; - group.addAnchors(result); - } - - public String resolvePath(String extensionId) { - if (isHidden(extensionId)) - return null; - GroupData ddata = null; - for (int i=0; i<groups.size(); i++) { - GroupData gdata = (GroupData)groups.get(i); - if (gdata.isDefault()) - ddata=gdata; - if (gdata.contains(extensionId)) { - IPath resolvedPath = new Path(id); - resolvedPath = resolvedPath.append(gdata.getPath()); - resolvedPath = resolvedPath.append(extensionId); - return resolvedPath.toString(); - } - } - // resolve as default - IPath resolvedPath = new Path(id).append(ddata.getPath()); - resolvedPath = resolvedPath.append(ISharedIntroConstants.DEFAULT_ANCHOR); - return resolvedPath.toString(); - } - - public boolean isHidden(String extensionId) { - return hidden!=null && hidden.contains(extensionId); - } - - public GroupData findGroup(String groupId) { - if (groupId.equals(ISharedIntroConstants.HIDDEN)) - return hidden; - for (int i=0; i<groups.size(); i++) { - GroupData gdata = (GroupData)groups.get(i); - IPath path = new Path(gdata.getPath()); - if (path.lastSegment().equals(groupId)) - return gdata; - } - return null; - } - - private void addGroup(Element element, boolean hide) { - GroupData gd = new GroupData(element); - if (hide) hidden = gd; - else - groups.add(gd); - } - - public void addImplicitExtension(String extensionId, String name) { - ExtensionData ed = findExtension(extensionId, true); - if (ed!=null) { - // see if name needs to be supplied - if (ed.getName()==null || ed.getName().length()==0) - ed.setName(name); - return; - } - GroupData gd = findDefaultGroup(); - if (gd==null && groups.size()==0) { - // add bottoms as the default group - gd = new GroupData(P_BOTTOM_LEFT, true); - groups.add(gd); - groups.add(new GroupData(P_BOTTOM_RIGHT, true)); - } - gd.addImplicitExtension(extensionId, name); - } - - private GroupData findDefaultGroup() { - GroupData defaultGroup = null; - for (int i=0; i<groups.size(); i++) { - GroupData gd = (GroupData)groups.get(i); - if (gd.isDefault()) { - if (defaultGroup==null) - defaultGroup = gd; - else - if (defaultGroup.getExtensionCount()>gd.getExtensionCount()) - defaultGroup = gd; - } - } - return defaultGroup; - } - - public String getId() { - return id; - } - - public ExtensionData findExtension(String extensionId, boolean checkHidden) { - for (int i=0; i<groups.size(); i++) { - GroupData gdata = (GroupData)groups.get(i); - ExtensionData ed = gdata.find(extensionId); - if (ed!=null) - return ed; - } - // check the hidden - if (checkHidden && hidden!=null) - return hidden.find(extensionId); - return null; - } - - public String resolveExtension(String extensionId) { - // check the explicit groups - for (int i=0; i<groups.size(); i++) { - GroupData gdata = (GroupData)groups.get(i); - if (gdata.contains(extensionId)) { - return id+"/"+gdata.getPath()+"/"+extensionId; //$NON-NLS-1$//$NON-NLS-2$ - } - } - // check the hidden - if (hidden!=null && hidden.contains(extensionId)) - return null; - // create the default: pick the last group - if (groups.size()==0) return null; - GroupData last = (GroupData)groups.get(groups.size()-1); - return id + "/" + last.getPath() + "/" + ISharedIntroConstants.DEFAULT_ANCHOR; //$NON-NLS-1$//$NON-NLS-2$ - } - - public void write(PrintWriter writer, String indent) { - writer.print(indent); - String indent2 = indent+" "; //$NON-NLS-1$ - writer.println("<page id=\""+id+"\">"); //$NON-NLS-1$//$NON-NLS-2$ - for (int i=0; i<groups.size(); i++) { - GroupData gd = (GroupData)groups.get(i); - gd.write(writer, indent2); - } - if (hidden!=null) - hidden.write(writer, indent2); - writer.print(indent); - writer.println("</page>"); //$NON-NLS-1$ - } -}
\ No newline at end of file diff --git a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/universal/UniversalIntroConfigurer.java b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/universal/UniversalIntroConfigurer.java deleted file mode 100644 index 8ebecc8aa..000000000 --- a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/universal/UniversalIntroConfigurer.java +++ /dev/null @@ -1,442 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2006 IBM Corporation and others. 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: IBM Corporation - initial API and implementation - **************************************************************************************************/ - -package org.eclipse.ui.internal.intro.universal; - -import java.io.IOException; -import java.net.URL; -import java.util.ArrayList; -import java.util.StringTokenizer; - -import org.eclipse.core.runtime.FileLocator; -import org.eclipse.core.runtime.IConfigurationElement; -import org.eclipse.core.runtime.IExtension; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IProduct; -import org.eclipse.core.runtime.Path; -import org.eclipse.core.runtime.Platform; -import org.eclipse.core.runtime.Preferences; -import org.eclipse.ui.internal.intro.impl.IntroPlugin; -import org.eclipse.ui.internal.intro.impl.Messages; -import org.eclipse.ui.intro.config.IntroConfigurer; -import org.eclipse.ui.intro.config.IntroElement; -import org.osgi.framework.Bundle; - -/** - * This class provides for dynamic configuration of the shared intro implementation based on the - * data file associated with the product. - * - * @since 3.2 - */ - -public class UniversalIntroConfigurer extends IntroConfigurer implements ISharedIntroConstants { - - private ArrayList introData = new ArrayList(); - - public UniversalIntroConfigurer() { - initialize(); - } - - public String getVariable(String variableName) { - IProduct product = Platform.getProduct(); - if (product != null) { - // try product property first - String value = getProductProperty(product, variableName); - if (value != null) { - value = resolveVariable(product.getDefiningBundle(), value); - return value; - } - // nothing - try preferences - Preferences prefs = IntroPlugin.getDefault().getPluginPreferences(); - // try to prefix with a preduct id first - String key = product.getId() + "_" + variableName; //$NON-NLS-1$ - value = prefs.getString(key); - if (value.length() == 0) { - // try direct variable name - key = variableName; - value = prefs.getString(key); - } - if (value.length() > 0) - value = resolveVariable(product.getDefiningBundle(), value); - else - value = null; - return value; - } - return null; - } - - /* (non-Javadoc) - * @see org.eclipse.ui.intro.config.IntroConfigurer#getMixinStyle(java.lang.String) - */ - public String getMixinStyle(String pageId, String extensionId) { - if (introData.size()>0) { - // TODO getting the active product one only - // Eventually we should consult the data from all the products - IntroData idata = (IntroData) introData.get(0); - PageData pdata = idata.getPage(pageId); - if (pdata != null) { - ExtensionData ed = pdata.findExtension(extensionId, false); - int importance = ed.getImportance(); - if (importance!=ExtensionData.HIDDEN) - return ExtensionData.IMPORTANCE_STYLE_TABLE[importance]; - } - } - return null; - } - - private String resolveVariable(Bundle bundle, String value) { - if (value != null) { - String path = null; - if (value.startsWith("intro:")) { //$NON-NLS-1$ - bundle = IntroPlugin.getDefault().getBundle(); - path = value.substring(6); - } else if (value.startsWith("product:")) { //$NON-NLS-1$ - path = value.substring(8); - } else - return value; - try { - URL url = bundle.getEntry(path); - if (url != null) { - URL localURL = FileLocator.toFileURL(url); - return localURL.toString(); - } - } catch (IOException e) { - // just use the value as-is - return value; - } - } - return null; - } - - private String getProductProperty(IProduct product, String variableName) { - String value = product.getProperty(variableName); - if (value == null) { - // return default values - if (variableName.equals(VAR_INTRO_BACKGROUND_IMAGE)) - return "css/graphics/root/welcomebckgrd.jpg"; //$NON-NLS-1$ - } - return value; - } - - public IntroElement[] getGroupChildren(String pageId, String groupId) { - if (pageId.equals(ID_ROOT)) { - if (groupId.equals(DIV_PAGE_LINKS)) - return getRootPageLinks(false); - } else if (pageId.equals(ID_STANDBY)) { - if (groupId.equals(DIV_PAGE_LINKS)) - return getRootPageLinks(true); - } else { - // other pages - if (groupId.equals(DIV_PAGE_LINKS)) - return getNavLinks(pageId); - if (groupId.equals(DIV_CUSTOMIZE)) - return getCustomizeContent(pageId); - if (groupId.equals(DIV_LAYOUT_TOP_LEFT) || groupId.equals(DIV_LAYOUT_TOP_RIGHT) - || groupId.equals(DIV_LAYOUT_BOTTOM_LEFT) || groupId.equals(DIV_LAYOUT_BOTTOM_RIGHT)) - return getContent(pageId, groupId); - } - return new IntroElement[0]; - } - - public IntroElement[] getLaunchBarShortcuts() { - ArrayList links = new ArrayList(); - String ids = getVariable(VAR_INTRO_ROOT_PAGES); - if (ids != null) { - StringTokenizer stok = new StringTokenizer(ids, ","); //$NON-NLS-1$ - while (stok.hasMoreTokens()) { - String id = stok.nextToken().trim(); - IntroElement page = createLaunchBarShortcut(id); - if (page != null) - links.add(page); - } - } - return (IntroElement[]) links.toArray(new IntroElement[links.size()]); - } - - private IntroElement[] getRootPageLinks(boolean standby) { - ArrayList links = new ArrayList(); - String ids = getVariable(VAR_INTRO_ROOT_PAGES); - if (ids != null) { - StringTokenizer stok = new StringTokenizer(ids, ","); //$NON-NLS-1$ - while (stok.hasMoreTokens()) { - String id = stok.nextToken().trim(); - IntroElement page = createRootPageLink(id, standby); - if (page != null) - links.add(page); - } - } - return (IntroElement[]) links.toArray(new IntroElement[links.size()]); - } - - private IntroElement[] getNavLinks(String pageId) { - ArrayList links = new ArrayList(); - String ids = getVariable(VAR_INTRO_ROOT_PAGES); - if (ids != null) { - StringTokenizer stok = new StringTokenizer(ids, ","); //$NON-NLS-1$ - while (stok.hasMoreTokens()) { - String id = stok.nextToken().trim(); - IntroElement page = createNavLink(id, pageId); - if (page != null) - links.add(page); - } - } - return (IntroElement[]) links.toArray(new IntroElement[links.size()]); - } - - - - private IntroElement[] getCustomizeContent(String pageId) { - IntroElement clink = new IntroElement("link"); //$NON-NLS-1$ - clink - .setAttribute( - "url", "http://org.eclipse.ui.intro/runAction?pluginId=org.eclipse.ui.intro&class=org.eclipse.ui.internal.intro.universal.CustomizeCommand&pageId=" + pageId); //$NON-NLS-1$ //$NON-NLS-2$ - clink.setAttribute("label", Messages.SharedIntroConfigurer_customize_label); //$NON-NLS-1$ - clink.setAttribute("id", "customize"); //$NON-NLS-1$ //$NON-NLS-2$ - IntroElement text = new IntroElement("text"); //$NON-NLS-1$ - text.setValue(Messages.SharedIntroConfigurer_customize_text); - clink.addChild(text); - return new IntroElement[] { clink }; - } - - private IntroElement createRootPageLink(String id, boolean standby) { - - if (id.equals(ID_OVERVIEW)) - return createRootLink( - Messages.SharedIntroConfigurer_overview_name, - createPageURL(id, standby), - id, - "overview_img", "$theme$/graphics/root/overview.gif", Messages.SharedIntroConfigurer_overview_alt, //$NON-NLS-1$ //$NON-NLS-2$ - Messages.SharedIntroConfigurer_overview_tooltip, "left"); //$NON-NLS-1$ - if (id.equals(ID_FIRSTSTEPS)) - return createRootLink( - Messages.SharedIntroConfigurer_firststeps_name, - createPageURL(id, standby), - id, - "firststeps_img", "$theme$/graphics/root/firststeps.gif", Messages.SharedIntroConfigurer_firststeps_alt, //$NON-NLS-1$ //$NON-NLS-2$ - Messages.SharedIntroConfigurer_firststeps_tooltip, "left"); //$NON-NLS-1$ - if (id.equals(ID_TUTORIALS)) - return createRootLink( - Messages.SharedIntroConfigurer_tutorials_name, - createPageURL(id, standby), - id, - "tutorials_img", "$theme$/graphics/root/tutorials.gif", Messages.SharedIntroConfigurer_tutorials_alt, //$NON-NLS-1$ //$NON-NLS-2$ - Messages.SharedIntroConfigurer_tutorials_tooltip, "left"); //$NON-NLS-1$ - if (id.equals(ID_SAMPLES)) - return createRootLink( - Messages.SharedIntroConfigurer_samples_name, - createPageURL(id, standby), - id, - "samples_img", "$theme$/graphics/root/samples.gif", Messages.SharedIntroConfigurer_samples_alt, Messages.SharedIntroConfigurer_samples_tooltip, "right"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - if (id.equals(ID_WHATSNEW)) - return createRootLink( - Messages.SharedIntroConfigurer_whatsnew_name, - createPageURL(id, standby), - id, - "whatsnew_img", "$theme$/graphics/root/whatsnew.gif", Messages.SharedIntroConfigurer_whatsnew_alt, //$NON-NLS-1$ //$NON-NLS-2$ - Messages.SharedIntroConfigurer_whatsnew_tooltip, "right"); //$NON-NLS-1$ - if (id.equals(ID_MIGRATE)) - return createRootLink( - Messages.SharedIntroConfigurer_migrate_name, - createPageURL(id, standby), - id, - "migrate_img", "$theme$/graphics/root/migrate.gif", Messages.SharedIntroConfigurer_migrate_alt, Messages.SharedIntroConfigurer_migrate_tooltip, "right"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - if (id.equals(ID_WEBRESOURCES)) - return createRootLink(Messages.SharedIntroConfigurer_webresources_name, - createPageURL(id, standby), id, "webresources_img", "css/graphics/root/webresources.gif", //$NON-NLS-1$ //$NON-NLS-2$ - Messages.SharedIntroConfigurer_webresources_alt, - Messages.SharedIntroConfigurer_webresources_tooltip, "right"); //$NON-NLS-1$ - return null; - } - - private IntroElement createNavLink(String id, String pageId) { - if (id.equals(ID_OVERVIEW)) - return createNavLink(Messages.SharedIntroConfigurer_overview_nav, createPageURL(id, false), id, - "left"); //$NON-NLS-1$ - if (id.equals(ID_FIRSTSTEPS)) - return createNavLink(Messages.SharedIntroConfigurer_firststeps_nav, createPageURL(id, false), id, - "left"); //$NON-NLS-1$ - if (id.equals(ID_TUTORIALS)) - return createNavLink(Messages.SharedIntroConfigurer_tutorials_nav, createPageURL(id, false), id, - "left"); //$NON-NLS-1$ - if (id.equals(ID_SAMPLES)) - return createNavLink(Messages.SharedIntroConfigurer_samples_nav, createPageURL(id, false), id, - "right"); //$NON-NLS-1$ - if (id.equals(ID_WHATSNEW)) - return createNavLink(Messages.SharedIntroConfigurer_whatsnew_nav, createPageURL(id, false), id, - "right"); //$NON-NLS-1$ - if (id.equals(ID_MIGRATE)) - return createNavLink(Messages.SharedIntroConfigurer_migrate_nav, createPageURL(id, false), id, - "right"); //$NON-NLS-1$ - if (id.equals(ID_WEBRESOURCES)) - return createNavLink(Messages.SharedIntroConfigurer_webresources_nav, createPageURL(id, false), - id, "right"); //$NON-NLS-1$ - return null; - } - - private String createPageURL(String id, boolean standby) { - String url = "http://org.eclipse.ui.intro/showPage?id=" + id; //$NON-NLS-1$ - if (standby) - url += "&standby=false"; //$NON-NLS-1$ - return url; - } - - private IntroElement createLaunchBarShortcut(String id) { - if (id.equals(ID_OVERVIEW)) - return createShortcutLink( - "icons/full/obj16/overview16.png", Messages.SharedIntroConfigurer_overview_nav, //$NON-NLS-1$ - id); - if (id.equals(ID_FIRSTSTEPS)) - return createShortcutLink( - "icons/full/obj16/firststeps16.png", Messages.SharedIntroConfigurer_firststeps_nav, //$NON-NLS-1$ - id); - if (id.equals(ID_TUTORIALS)) - return createShortcutLink( - "icons/full/obj16/tutorials16.png", Messages.SharedIntroConfigurer_tutorials_nav, //$NON-NLS-1$ - id); - if (id.equals(ID_SAMPLES)) - return createShortcutLink( - "icons/full/obj16/samples16.png", Messages.SharedIntroConfigurer_samples_nav, //$NON-NLS-1$ - id); - if (id.equals(ID_WHATSNEW)) - return createShortcutLink( - "icons/full/obj16/whatsnew16.png", Messages.SharedIntroConfigurer_whatsnew_nav, //$NON-NLS-1$ - id); - if (id.equals(ID_MIGRATE)) - return createShortcutLink( - "icons/full/obj16/migrate16.png", Messages.SharedIntroConfigurer_migrate_nav, //$NON-NLS-1$ - id); - if (id.equals(ID_WEBRESOURCES)) - return createShortcutLink( - "icons/full/obj16/webresources16.png", Messages.SharedIntroConfigurer_webresources_nav, //$NON-NLS-1$ - id); - return null; - } - - private IntroElement createRootLink(String name, String url, String id, String imgId, String imgSrc, - String imgAlt, String imgText, String styleId) { - IntroElement element = new IntroElement("link"); //$NON-NLS-1$ - element.setAttribute("label", name); //$NON-NLS-1$ - element.setAttribute("url", url); //$NON-NLS-1$ - element.setAttribute("id", id); //$NON-NLS-1$ - element.setAttribute("style-id", styleId);//$NON-NLS-1$ - IntroElement img = new IntroElement("img"); //$NON-NLS-1$ - img.setAttribute("id", imgId); //$NON-NLS-1$ - img.setAttribute("style-id", "content-img"); //$NON-NLS-1$ //$NON-NLS-2$ - // img.setAttribute("src", imgSrc); //$NON-NLS-1$ - img.setAttribute("alt", imgAlt); //$NON-NLS-1$ - IntroElement text = new IntroElement("text"); //$NON-NLS-1$ - text.setValue(imgText); - element.addChild(img); - element.addChild(text); - return element; - } - - private IntroElement createNavLink(String label, String url, String id, String styleId) { - IntroElement element = new IntroElement("link"); //$NON-NLS-1$ - element.setAttribute("label", label); //$NON-NLS-1$ - element.setAttribute("url", url); //$NON-NLS-1$ - element.setAttribute("id", id); //$NON-NLS-1$ - element.setAttribute("style-id", styleId); //$NON-NLS-1$ - return element; - } - - private IntroElement createShortcutLink(String icon, String tooltip, String id) { - IntroElement element = new IntroElement("shortcut"); //$NON-NLS-1$ - element.setAttribute("icon", icon); //$NON-NLS-1$ - element.setAttribute("tooltip", tooltip); //$NON-NLS-1$ - element.setAttribute("url", createPageURL(id, false)); //$NON-NLS-1$ - return element; - } - - private void initialize() { - // add intro data for this product first - String dataFile = getVariable(VAR_INTRO_DATA); - String pid = Platform.getProduct().getId(); - if (dataFile != null) - introData.add(new IntroData(pid, dataFile, true)); - IConfigurationElement[] products = Platform.getExtensionRegistry().getConfigurationElementsFor( - "org.eclipse.core.runtime.products"); //$NON-NLS-1$ - for (int i = 0; i < products.length; i++) { - IConfigurationElement product = products[i]; - IExtension extension = product.getDeclaringExtension(); - String uid = extension.getUniqueIdentifier(); - // skip this product - if (pid.equals(uid)) - continue; - addIntroDataFor(uid, product); - } - } - - private void addIntroDataFor(String pid, IConfigurationElement product) { - IConfigurationElement[] children = product.getChildren("property"); //$NON-NLS-1$ - for (int i = 0; i < children.length; i++) { - IConfigurationElement child = children[i]; - String name = child.getAttribute("name"); //$NON-NLS-1$ - if (name != null && name.equals(VAR_INTRO_DATA)) { - String value = child.getAttribute("value"); //$NON-NLS-1$ - String bid = child.getDeclaringExtension().getNamespaceIdentifier(); - Bundle bundle = Platform.getBundle(bid); - if (bundle != null) { - String dataFile = resolveVariable(bundle, value); - introData.add(new IntroData(pid, dataFile, false)); - } - } - } - } - - private IntroElement[] getContent(String pageId, String groupId) { - ArrayList result = new ArrayList(); - if (introData.size() > 0) { - // TODO getting the active product one only - // Eventually we should consult the data from all the products - IntroData idata = (IntroData) introData.get(0); - PageData pdata = idata.getPage(pageId); - if (pdata != null) { - pdata.addAnchors(result, groupId); - } - } - // Add the fallback anchor - IntroElement fallback = new IntroElement("anchor"); //$NON-NLS-1$ - fallback.setAttribute("id", DEFAULT_ANCHOR); //$NON-NLS-1$ - result.add(fallback); - return (IntroElement[]) result.toArray(new IntroElement[result.size()]); - } - - public String resolvePath(String extensionId, String path) { - boolean extensionRelativePath = false; - IPath ipath = new Path(path); - String pageId = ipath.segment(0); - String s2 = ipath.segment(1); - if (!s2.equals("@")) //$NON-NLS-1$ - extensionRelativePath = true; - if (introData.size() > 0) { - // TODO getting the active product one only - // Eventually we should consult the data from all the products - IntroData idata = (IntroData) introData.get(0); - PageData pdata = idata.getPage(pageId); - if (pdata != null) { - String resolvedPath = pdata.resolvePath(extensionId); - if (extensionRelativePath) { - // not done - use the resolved extension path - // to complete the source path - IPath p2 = new Path(resolvedPath); - IPath p1 = ipath.removeFirstSegments(2); - // remove the last anchor and append the - // relative path from the extension - resolvedPath = p2.removeLastSegments(1).append(p1).toString(); - } - return resolvedPath; - } - } else { - // use fallback anchor - return pageId + DEFAULT_CONTENT_PATH; - } - return null; - } -}
\ No newline at end of file diff --git a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/universal/WelcomeCustomizationPreferencePage.java b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/universal/WelcomeCustomizationPreferencePage.java deleted file mode 100644 index f4563901c..000000000 --- a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/universal/WelcomeCustomizationPreferencePage.java +++ /dev/null @@ -1,1068 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2006 IBM Corporation and others. 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: IBM Corporation - initial API and implementation - **************************************************************************************************/ -package org.eclipse.ui.internal.intro.universal; - -import java.io.FileWriter; -import java.io.IOException; -import java.io.PrintWriter; -import java.io.StringWriter; -import java.util.ArrayList; -import java.util.Iterator; -import java.util.StringTokenizer; - -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IConfigurationElement; -import org.eclipse.core.runtime.IExecutableExtension; -import org.eclipse.core.runtime.IProduct; -import org.eclipse.core.runtime.Platform; -import org.eclipse.core.runtime.Preferences; -import org.eclipse.jface.action.Action; -import org.eclipse.jface.action.IMenuListener; -import org.eclipse.jface.action.IMenuManager; -import org.eclipse.jface.action.MenuManager; -import org.eclipse.jface.action.Separator; -import org.eclipse.jface.preference.PreferencePage; -import org.eclipse.jface.resource.ImageDescriptor; -import org.eclipse.jface.viewers.CellEditor; -import org.eclipse.jface.viewers.CheckStateChangedEvent; -import org.eclipse.jface.viewers.CheckboxTableViewer; -import org.eclipse.jface.viewers.ComboBoxCellEditor; -import org.eclipse.jface.viewers.ICellModifier; -import org.eclipse.jface.viewers.ICheckStateListener; -import org.eclipse.jface.viewers.ISelectionChangedListener; -import org.eclipse.jface.viewers.IStructuredContentProvider; -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.jface.viewers.ITableLabelProvider; -import org.eclipse.jface.viewers.LabelProvider; -import org.eclipse.jface.viewers.SelectionChangedEvent; -import org.eclipse.jface.viewers.StructuredSelection; -import org.eclipse.jface.viewers.TableViewer; -import org.eclipse.jface.viewers.Viewer; -import org.eclipse.jface.viewers.ViewerDropAdapter; -import org.eclipse.jface.viewers.ViewerSorter; -import org.eclipse.swt.SWT; -import org.eclipse.swt.custom.BusyIndicator; -import org.eclipse.swt.dnd.DND; -import org.eclipse.swt.dnd.DragSourceEvent; -import org.eclipse.swt.dnd.DragSourceListener; -import org.eclipse.swt.dnd.Transfer; -import org.eclipse.swt.dnd.TransferData; -import org.eclipse.swt.events.PaintEvent; -import org.eclipse.swt.events.PaintListener; -import org.eclipse.swt.events.SelectionAdapter; -import org.eclipse.swt.events.SelectionEvent; -import org.eclipse.swt.graphics.Image; -import org.eclipse.swt.graphics.Rectangle; -import org.eclipse.swt.layout.GridData; -import org.eclipse.swt.layout.GridLayout; -import org.eclipse.swt.widgets.Button; -import org.eclipse.swt.widgets.Canvas; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Control; -import org.eclipse.swt.widgets.FileDialog; -import org.eclipse.swt.widgets.Label; -import org.eclipse.swt.widgets.TabFolder; -import org.eclipse.swt.widgets.TabItem; -import org.eclipse.swt.widgets.Table; -import org.eclipse.swt.widgets.TableColumn; -import org.eclipse.swt.widgets.TableItem; -import org.eclipse.ui.IWorkbench; -import org.eclipse.ui.IWorkbenchPreferencePage; -import org.eclipse.ui.IWorkbenchWindow; -import org.eclipse.ui.PlatformUI; -import org.eclipse.ui.internal.intro.impl.IntroPlugin; -import org.eclipse.ui.internal.intro.impl.Messages; -import org.eclipse.ui.internal.intro.impl.model.IntroModelRoot; -import org.eclipse.ui.internal.intro.impl.model.util.BundleUtil; -import org.eclipse.ui.internal.intro.impl.util.ImageUtil; -import org.eclipse.ui.internal.intro.impl.util.Log; -import org.eclipse.ui.intro.IIntroManager; -import org.eclipse.ui.intro.IIntroPart; -import org.eclipse.ui.intro.config.CustomizableIntroPart; -import org.eclipse.ui.intro.config.IIntroURL; -import org.eclipse.ui.intro.config.IntroURLFactory; -import org.osgi.framework.Bundle; - - -public class WelcomeCustomizationPreferencePage extends PreferencePage implements IWorkbenchPreferencePage, - IExecutableExtension { - - private static final String INTRO_ROOT_PAGES = "INTRO_ROOT_PAGES"; //$NON-NLS-1$ - private static final String INTRO_DATA = "INTRO_DATA"; //$NON-NLS-1$ - private static final String INTRO_THEME = "INTRO_THEME"; //$NON-NLS-1$ - private TabFolder tabFolder; - private String firstPageId; - private Composite pageContainer; - private TableViewer themes; - private TableViewer available; - private TableViewer topLeft; - private TableViewer topRight; - private TableViewer bottomLeft; - private TableViewer bottomRight; - private CheckboxTableViewer rootPages; - private ArrayList introRootPages = new ArrayList(); - private ArrayList themeList = new ArrayList(); - private IntroTheme introTheme; - private String introThemeId; - private IntroData introData; - private Canvas themePreview; - private TableContentProvider contentProvider; - private TableLabelProvider labelProvider; - private Button applyToAll; - private Image extensionImage; - private Image themeImage; - private Image ihighImage; - private Image ilowImage; - private Image inewImage; - private Image icalloutImage; - private static final Transfer[] TRANSFER_TYPES = new Transfer[] { ExtensionDataTransfer.getInstance() }; - - - private static final RootPage ROOT_PAGE_TABLE[] = new RootPage[] { - new RootPage(ISharedIntroConstants.ID_OVERVIEW, - Messages.WelcomeCustomizationPreferencePage_overview), - new RootPage(ISharedIntroConstants.ID_FIRSTSTEPS, - Messages.WelcomeCustomizationPreferencePage_firststeps), - new RootPage(ISharedIntroConstants.ID_TUTORIALS, - Messages.WelcomeCustomizationPreferencePage_tutorials), - new RootPage(ISharedIntroConstants.ID_SAMPLES, - Messages.WelcomeCustomizationPreferencePage_samples), - new RootPage(ISharedIntroConstants.ID_WHATSNEW, - Messages.WelcomeCustomizationPreferencePage_whatsnew), - new RootPage(ISharedIntroConstants.ID_WEBRESOURCES, - Messages.WelcomeCustomizationPreferencePage_webresources), - new RootPage(ISharedIntroConstants.ID_MIGRATE, - Messages.WelcomeCustomizationPreferencePage_migrate) }; - - static class RootPage { - - public String id; - public String name; - - public RootPage(String id, String name) { - this.id = id; - this.name = name; - } - - public boolean equals(Object obj) { - if (obj == this) - return true; - if (obj == null) - return false; - if (obj instanceof RootPage) { - RootPage page = (RootPage) obj; - return page.id.equals(id) && page.name.equals(name); - } - return false; - } - - public String toString() { - return name; - } - } - - class TableContentProvider implements IStructuredContentProvider { - - public Object[] getElements(Object inputElement) { - if (inputElement == ROOT_PAGE_TABLE) - return ROOT_PAGE_TABLE; - if (inputElement instanceof GroupData) { - return ((GroupData) inputElement).getExtensions(); - } - if (inputElement == themes) { - return themeList.toArray(); - } - return new Object[0]; - } - - public void dispose() { - } - - public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { - } - } - - class TableDragSourceListener implements DragSourceListener { - - TableViewer viewer; - ExtensionData[] sel; - - public TableDragSourceListener(TableViewer viewer) { - this.viewer = viewer; - } - - public void dragStart(DragSourceEvent event) { - IStructuredSelection ssel = (IStructuredSelection) viewer.getSelection(); - if (ssel.size() > 0) { - event.doit = true; - } else { - event.doit = false; - } - }; - - public void dragSetData(DragSourceEvent event) { - IStructuredSelection ssel = (IStructuredSelection) viewer.getSelection(); - ExtensionData[] array = new ExtensionData[ssel.size()]; - int i = 0; - for (Iterator iter = ssel.iterator(); iter.hasNext();) { - array[i++] = (ExtensionData) iter.next(); - } - event.data = array; - sel = array; - } - - public void dragFinished(DragSourceEvent event) { - if (event.detail == DND.DROP_MOVE) { - GroupData gd = (GroupData) viewer.getInput(); - for (int i = 0; i < sel.length; i++) { - ExtensionData ed = sel[i]; - gd.remove(ed); - } - viewer.refresh(); - updateColumnSizes(viewer); - } - sel = null; - } - } - - class TableDropTargetListener extends ViewerDropAdapter { - - public TableDropTargetListener(TableViewer viewer) { - super(viewer); - } - - public boolean performDrop(Object data) { - ExtensionData target = (ExtensionData) getCurrentTarget(); - int loc = getCurrentLocation(); - GroupData gd = (GroupData) getViewer().getInput(); - if (gd == null) - gd = createTargetGd(getViewer()); - ExtensionData[] sel = (ExtensionData[]) data; - - int index = target != null ? gd.getIndexOf(target) : -1; - int startingIndex = getStartIndex(gd, sel); - if (target != null) { - if (loc == LOCATION_AFTER - || (loc == LOCATION_ON && startingIndex != -1 && startingIndex < index)) - index++; - else if (index > 0 && loc == LOCATION_BEFORE) - index--; - } - - for (int i = 0; i < sel.length; i++) { - ExtensionData ed = sel[i]; - if (index == -1) - gd.add(ed); - else - gd.add(index++, ed); - } - if (getViewer().getInput() != null) - getViewer().refresh(); - else - getViewer().setInput(gd); - updateColumnSizes((TableViewer) getViewer()); - return true; - } - - private int getStartIndex(GroupData gd, ExtensionData[] sel) { - for (int i = 0; i < sel.length; i++) { - ExtensionData ed = sel[i]; - int index = gd.getIndexOf(ed.getId()); - if (index != -1) - return index; - } - return -1; - } - - public boolean validateDrop(Object target, int operation, TransferData transferType) { - return ExtensionDataTransfer.getInstance().isSupportedType(transferType); - } - } - - class TableLabelProvider extends LabelProvider implements ITableLabelProvider { - - public String getText(Object obj) { - if (obj instanceof RootPage) { - return ((RootPage) obj).name; - } - if (obj instanceof ExtensionData) { - ExtensionData ed = (ExtensionData) obj; - String name = ed.getName(); - if (name != null && name.length() > 0) - return name; - return ed.getId(); - } - if (obj instanceof IntroTheme) { - IntroTheme bg = (IntroTheme) obj; - return bg.getName(); - } - return super.getText(obj); - } - - public Image getImage(Object obj) { - if (obj instanceof ExtensionData) { - ExtensionData ed = (ExtensionData) obj; - switch (ed.getImportance()) { - case ExtensionData.HIGH: - return ihighImage; - case ExtensionData.LOW: - return ilowImage; - case ExtensionData.NEW: - return inewImage; - case ExtensionData.CALLOUT: - return icalloutImage; - } - return extensionImage; - } - if (obj instanceof IntroTheme) - return themeImage; - return null; - } - - public Image getColumnImage(Object element, int columnIndex) { - if (columnIndex == 0) - return getImage(element); - return null; - } - - public String getColumnText(Object element, int columnIndex) { - if (columnIndex == 1 || element instanceof IntroTheme || element instanceof RootPage) - return getText(element); - return null; - } - } - - class IntroTheme { - IConfigurationElement element; - Image previewImage; - - public String getName() { - return element.getAttribute("name"); //$NON-NLS-1$ - } - - public String getId() { - return element.getAttribute("id"); //$NON-NLS-1$ - } - - public IntroTheme(IConfigurationElement element) { - this.element = element; - } - - public Image getPreviewImage() { - if (previewImage==null) { - String path = element.getAttribute("previewImage"); //$NON-NLS-1$ - if (path!=null) { - String bid = element.getDeclaringExtension().getNamespaceIdentifier(); - Bundle bundle = Platform.getBundle(bid); - if (bundle!=null) { - ImageDescriptor desc = ImageUtil.createImageDescriptor(bundle, path); - previewImage = desc.createImage(); - } - } - } - return previewImage; - } - - public void dispose() { - if (previewImage!=null) { - previewImage.dispose(); - previewImage=null; - } - } - } - - public WelcomeCustomizationPreferencePage() { - } - - public WelcomeCustomizationPreferencePage(String title) { - super(title); - } - - public WelcomeCustomizationPreferencePage(String title, ImageDescriptor image) { - super(title, image); - } - - protected Control createContents(Composite parent) { - Composite container = new Composite(parent, SWT.NULL); - GridData data = new GridData(); - data.verticalAlignment = GridData.FILL; - data.horizontalAlignment = GridData.FILL; - container.setLayoutData(data); - GridLayout layout = new GridLayout(); - layout.marginHeight = 0; - layout.marginWidth = 0; - container.setLayout(layout); - tabFolder = new TabFolder(container, SWT.TOP); - tabFolder.setLayoutData(new GridData(GridData.FILL_BOTH)); - tabFolder.addSelectionListener(new SelectionAdapter() { - - public void widgetSelected(SelectionEvent e) { - TabItem[] selection = tabFolder.getSelection(); - onTabChange(selection[0]); - } - }); - applyToAll = new Button(container, SWT.CHECK); - applyToAll.setText(Messages.WelcomeCustomizationPreferencePage_applyToAll); - contentProvider = new TableContentProvider(); - labelProvider = new TableLabelProvider(); - if (isCustomizationMode()) { - Button serialize = new Button(container, SWT.PUSH); - serialize.setText(Messages.WelcomeCustomizationPreferencePage_serialize); - serialize.addSelectionListener(new SelectionAdapter() { - - public void widgetSelected(SelectionEvent e) { - doSerializeState(); - } - }); - } - extensionImage = ImageUtil.createImage("full/obj16/extension_obj.gif"); //$NON-NLS-1$ - ihighImage = ImageUtil.createImage("full/obj16/ihigh_obj.gif"); //$NON-NLS-1$ - ilowImage = ImageUtil.createImage("full/obj16/ilow_obj.gif"); //$NON-NLS-1$ - inewImage = ImageUtil.createImage("full/obj16/inew_obj.gif"); //$NON-NLS-1$ - icalloutImage = ImageUtil.createImage("full/obj16/icallout_obj.gif"); //$NON-NLS-1$ - themeImage = ImageUtil.createImage("full/obj16/image_obj.gif"); //$NON-NLS-1$ - addPages(); - org.eclipse.jface.dialogs.Dialog.applyDialogFont(container); - return container; - } - - private void doSerializeState() { - FileDialog fd = new FileDialog(getShell(), SWT.SAVE); - fd.setText(Messages.WelcomeCustomizationPreferencePage_serializeTitle); - String fileName = fd.open(); - if (fileName != null) { - try { - FileWriter writer = new FileWriter(fileName); - PrintWriter pwriter = new PrintWriter(writer); - introData.write(pwriter); - pwriter.close(); - } catch (IOException e) { - // show an error dialog in addition - Log.error("Error while saving the intro data file", e); //$NON-NLS-1$ - } - } - } - - private boolean isCustomizationMode() { - /* - * String[] args = Platform.getApplicationArgs(); for (int i = 0; i < args.length; i++) { if - * (args[i].equalsIgnoreCase("-welcomeCustomization")) //$NON-NLS-1$ return true; } return - * false; - */ - return true; - } - - public void init(IWorkbench workbench) { - } - - private void addPages() { - loadData(false); - addHomePage(); - createPageContainer(); - addRootPages(); - updateWidgetsFromData(); - selectFirstPage(); - } - - private void addRootPages() { - addPage(ISharedIntroConstants.ID_OVERVIEW); - addPage(ISharedIntroConstants.ID_FIRSTSTEPS); - addPage(ISharedIntroConstants.ID_TUTORIALS); - addPage(ISharedIntroConstants.ID_SAMPLES); - addPage(ISharedIntroConstants.ID_WHATSNEW); - addPage(ISharedIntroConstants.ID_WEBRESOURCES); - addPage(ISharedIntroConstants.ID_MIGRATE); - } - - private void createPageContainer() { - pageContainer = new Composite(tabFolder, SWT.NULL); - GridLayout layout = new GridLayout(); - layout.horizontalSpacing = 10; - pageContainer.setLayout(layout); - layout.numColumns = 4; - Label label; - label = new Label(pageContainer, SWT.WRAP); - label.setText(Messages.WelcomeCustomizationPreferencePage_pageDesc); - GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_FILL); - gd.horizontalSpan = 4; - label.setLayoutData(gd); - label = new Label(pageContainer, SWT.SEPARATOR | SWT.HORIZONTAL); - gd = new GridData(GridData.HORIZONTAL_ALIGN_FILL); - gd.horizontalSpan = 4; - label.setLayoutData(gd); - label = new Label(pageContainer, SWT.NULL); - label.setText(Messages.WelcomeCustomizationPreferencePage_available); - gd = new GridData(); - gd.horizontalSpan = 2; - label.setLayoutData(gd); - label = new Label(pageContainer, SWT.NULL); - label.setText(Messages.WelcomeCustomizationPreferencePage_left); - label = new Label(pageContainer, SWT.NULL); - label.setText(Messages.WelcomeCustomizationPreferencePage_right); - available = createTableViewer(pageContainer, "hidden"); //$NON-NLS-1$ - available.setSorter(new ViewerSorter()); - gd = new GridData(GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_FILL); - gd.verticalSpan = 3; - gd.widthHint = 100; - gd.horizontalSpan = 2; - available.getControl().setLayoutData(gd); - - topLeft = createTableViewer(pageContainer, "top-left"); //$NON-NLS-1$ - gd = new GridData(GridData.FILL_BOTH); - topLeft.getControl().setLayoutData(gd); - - topRight = createTableViewer(pageContainer, "top-right"); //$NON-NLS-1$ - gd = new GridData(GridData.FILL_BOTH); - topRight.getControl().setLayoutData(gd); - - //label = new Label(pageContainer, SWT.NULL); - //label.setText(Messages.WelcomeCustomizationPreferencePage_bottom); - bottomLeft = createTableViewer(pageContainer, "bottom-left"); //$NON-NLS-1$ - gd = new GridData(GridData.FILL_BOTH); - bottomLeft.getControl().setLayoutData(gd); - - bottomRight = createTableViewer(pageContainer, "bottom-right"); //$NON-NLS-1$ - gd = new GridData(GridData.FILL_BOTH); - bottomRight.getControl().setLayoutData(gd); - } - - private void updatePageContainer(String pageId, PageData pd) { - if (pageId == null || pd == null) - return; - topLeft.setInput(pd.findGroup(ISharedIntroConstants.DIV_LAYOUT_TOP_LEFT)); - topRight.setInput(pd.findGroup(ISharedIntroConstants.DIV_LAYOUT_TOP_RIGHT)); - bottomLeft.setInput(pd.findGroup(ISharedIntroConstants.DIV_LAYOUT_BOTTOM_LEFT)); - bottomRight.setInput(pd.findGroup(ISharedIntroConstants.DIV_LAYOUT_BOTTOM_RIGHT)); - available.setInput(pd.findGroup(ISharedIntroConstants.HIDDEN)); - updateColumnSizes(topLeft); - updateColumnSizes(topRight); - updateColumnSizes(bottomLeft); - updateColumnSizes(bottomRight); - updateColumnSizes(available); - } - - private void onTabChange(TabItem item) { - String id = (String) item.getData(); - if (item.getControl() == pageContainer) - updatePageContainer(id, (PageData) item.getData("pageData")); //$NON-NLS-1$ - } - - private void loadData(boolean fromDefault) { - IProduct product = Platform.getProduct(); - if (product == null) - return; - String pid = product.getId(); - introRootPages.clear(); - Preferences prefs = IntroPlugin.getDefault().getPluginPreferences(); - // 1. Root pages - // try product-qualified value first - String key = pid + "_" + INTRO_ROOT_PAGES; //$NON-NLS-1$ - String rootPages = fromDefault ? prefs.getDefaultString(key) : prefs.getString(key); - if (rootPages.length() == 0) { - rootPages = fromDefault ? prefs.getDefaultString(INTRO_ROOT_PAGES) : prefs - .getString(INTRO_ROOT_PAGES); - } - if (rootPages.length() > 0) { - StringTokenizer stok = new StringTokenizer(rootPages, ","); //$NON-NLS-1$ - while (stok.hasMoreTokens()) { - String tok = stok.nextToken().trim(); - introRootPages.add(tok); - } - } - // 3. Active theme - key = pid + "_" + INTRO_THEME; //$NON-NLS-1$ - String value = fromDefault ? prefs.getDefaultString(key) : prefs.getString(key); - if (value.length() == 0) { - key = INTRO_THEME; - value = fromDefault ? prefs.getDefaultString(key) : prefs.getString(key); - } - if (value.length() > 0) - introThemeId = value; - // 4. Intro data - key = pid + "_" + INTRO_DATA; //$NON-NLS-1$ - value = fromDefault ? prefs.getDefaultString(key) : prefs.getString(key); - if (value.length() == 0) { - key = INTRO_DATA; - value = fromDefault ? prefs.getDefaultString(key) : prefs.getString(key); - } - if (value.length() == 0) - value = null; - if (value != null && value.startsWith("product:")) //$NON-NLS-1$ - value = value.substring(8); - value = BundleUtil.getResolvedResourceLocation(value, product.getDefiningBundle()); - introData = new IntroData(pid, value, true); - introData.addImplicitContent(); - } - - public void dispose() { - themeList.clear(); - extensionImage.dispose(); - ihighImage.dispose(); - ilowImage.dispose(); - inewImage.dispose(); - icalloutImage.dispose(); - themeImage.dispose(); - super.dispose(); - } - - private void updateIntroThemeFromData() { - if (introThemeId != null) { - for (int i = 0; i < themeList.size(); i++) { - IntroTheme theme = (IntroTheme) themeList.get(i); - if (theme.getId().equals(introThemeId)) { - introTheme = theme; - break; - } - } - } - updateThemePreview(); - } - - private void updateWidgetsFromData() { - // sync up intro background part - updateIntroThemeFromData(); - // sync up the root page checklist - rootPages.setInput(ROOT_PAGE_TABLE); - ArrayList selected = new ArrayList(); - for (int i = 0; i < ROOT_PAGE_TABLE.length; i++) { - String id = ROOT_PAGE_TABLE[i].id; - if (introRootPages.contains(id)) - selected.add(ROOT_PAGE_TABLE[i]); - } - rootPages.setCheckedElements(selected.toArray()); - } - - private void updateThemePreview() { - themes.setInput(themes); - if (introTheme != null) - themes.setSelection(new StructuredSelection(introTheme), true); - themePreview.redraw(); - } - - public boolean performOk() { - saveData(); - BusyIndicator.showWhile(getShell().getDisplay(), new Runnable() { - - public void run() { - restartIntro(); - } - }); - return true; - } - - /** - * Remember the current page, close intro, reopen it and show the saved page. - * - */ - private void restartIntro() { - IIntroManager manager = PlatformUI.getWorkbench().getIntroManager(); - IIntroPart part = manager.getIntro(); - if (part != null && part instanceof CustomizableIntroPart) { - IntroModelRoot modelRoot = IntroPlugin.getDefault().getIntroModelRoot(); - String currentPageId = modelRoot.getCurrentPageId(); - IWorkbenchWindow window = part.getIntroSite().getWorkbenchWindow(); - boolean standby = manager.isIntroStandby(part); - PlatformUI.getWorkbench().getIntroManager().closeIntro(part); - IntroPlugin.getDefault().resetVolatileImageRegistry(); - part = PlatformUI.getWorkbench().getIntroManager().showIntro(window, standby); - if (part != null) { - StringBuffer url = new StringBuffer(); - url.append("http://org.eclipse.ui.intro/showPage?id="); //$NON-NLS-1$ - url.append(currentPageId); - IIntroURL introURL = IntroURLFactory.createIntroURL(url.toString()); - if (introURL != null) - introURL.execute(); - } - } - } - - protected void performDefaults() { - loadData(true); - // Dispose all the root page tabs - TabItem[] items = tabFolder.getItems(); - for (int i = 0; i < items.length; i++) { - if (items[i].getData("pageData") != null) //$NON-NLS-1$ - items[i].dispose(); - } - // Add them back in based on the checked state - addRootPages(); - updateWidgetsFromData(); - // Get the items again - items = tabFolder.getItems(); - // Select root - onTabChange(items[0]); - super.performDefaults(); - } - - private void saveData() { - Preferences prefs = IntroPlugin.getDefault().getPluginPreferences(); - boolean toAll = applyToAll.getSelection(); - IProduct product = Platform.getProduct(); - if (product == null) - return; - String pid = product.getId(); - StringBuffer sbuf = new StringBuffer(); - for (int i = 0; i < introRootPages.size(); i++) { - if (i > 0) - sbuf.append(","); //$NON-NLS-1$ - sbuf.append((String) introRootPages.get(i)); - } - String key = pid + "_" + INTRO_ROOT_PAGES; //$NON-NLS-1$ - prefs.setValue(key, sbuf.toString()); - if (toAll) { - key = INTRO_ROOT_PAGES; - prefs.setValue(key, sbuf.toString()); - } - // store page layouts - StringWriter writer = new StringWriter(); - PrintWriter pwriter = new PrintWriter(writer); - introData.write(pwriter); - pwriter.close(); - String value = writer.toString(); - key = pid + "_" + INTRO_DATA; //$NON-NLS-1$ - prefs.setValue(key, value); - if (toAll) { - key = INTRO_DATA; - prefs.setValue(key, value); - } - if (introTheme != null) { - key = pid + "_" + INTRO_THEME; //$NON-NLS-1$ - value = introTheme.getId(); - prefs.setValue(key, value); - } - IntroPlugin.getDefault().savePluginPreferences(); - } - - private void addHomePage() { - TabItem item = new TabItem(tabFolder, SWT.NULL); - item.setText("Home"); //$NON-NLS-1$ - Composite container = new Composite(tabFolder, SWT.NULL); - GridLayout layout = new GridLayout(); - layout.numColumns = 2; - container.setLayout(layout); - Label label = new Label(container, SWT.NULL); - label.setText(Messages.WelcomeCustomizationPreferencePage_background); - GridData gd = new GridData(GridData.VERTICAL_ALIGN_BEGINNING); - //gd.horizontalSpan = 2; - label.setLayoutData(gd); - label = new Label(container, SWT.NULL); - label.setText(Messages.WelcomeCustomizationPreferencePage_preview); - themes = new TableViewer(container, SWT.BORDER); - themes.getControl().setLayoutData(new GridData(GridData.FILL_BOTH)); - themes.setContentProvider(contentProvider); - themes.setLabelProvider(labelProvider); - themes.addSelectionChangedListener(new ISelectionChangedListener() { - public void selectionChanged(SelectionChangedEvent e) { - Object sel = ((StructuredSelection) e.getSelection()).getFirstElement(); - introTheme = (IntroTheme) sel; - themePreview.redraw(); - } - }); - loadThemes(); - /* - Button browse = new Button(container, SWT.PUSH); - gd = new GridData(GridData.VERTICAL_ALIGN_BEGINNING); - browse.setLayoutData(gd); - browse.setText(Messages.WelcomeCustomizationPreferencePage_browse); - browse.addSelectionListener(new SelectionAdapter() { - - public void widgetSelected(SelectionEvent e) { - doBrowseBackground(); - } - }); - */ - themePreview = new Canvas(container, SWT.NULL); - gd = new GridData(); - gd.widthHint = 160+20; - gd.heightHint = 120+20; - themePreview.setLayoutData(gd); - themePreview.addPaintListener(new PaintListener() { - - public void paintControl(PaintEvent e) { - if (introTheme == null) - return; - Image bgImage = introTheme.getPreviewImage(); - if (bgImage == null) - return; - //Rectangle carea = themePreview.getClientArea(); - Rectangle ibounds = bgImage.getBounds(); - e.gc.drawImage(bgImage, 0, 0, ibounds.width, ibounds.height, 10, 10, 160, 120); - } - }); - label = new Label(container, SWT.NULL); - label.setText(Messages.WelcomeCustomizationPreferencePage_rootpages); - gd = new GridData(); - gd.horizontalSpan = 2; - label.setLayoutData(gd); - rootPages = CheckboxTableViewer.newCheckList(container, SWT.BORDER); - rootPages.setContentProvider(contentProvider); - rootPages.setLabelProvider(labelProvider); - gd = new GridData(GridData.FILL_HORIZONTAL | GridData.FILL_VERTICAL); - gd.horizontalSpan = 2; - rootPages.getControl().setLayoutData(gd); - rootPages.addCheckStateListener(new ICheckStateListener() { - - public void checkStateChanged(CheckStateChangedEvent event) { - RootPage page = (RootPage) event.getElement(); - boolean checked = event.getChecked(); - onPageChecked(page.id, checked); - } - }); - item.setControl(container); - } - - private void loadThemes() { - IConfigurationElement [] elements = Platform.getExtensionRegistry().getConfigurationElementsFor("org.eclipse.ui.intro.configExtension"); //$NON-NLS-1$ - for (int i=0; i<elements.length; i++) { - if (elements[i].getName().equals("theme")) { //$NON-NLS-1$ - themeList.add(new IntroTheme(elements[i])); - } - } - } - - private void addPage(String id) { - if (!getRootPageSelected(id)) - return; - TabItem item = new TabItem(tabFolder, SWT.NULL); - item.setText(getRootPageName(id)); - item.setControl(pageContainer); - item.setData(id); - PageData pd = introData.getPage(id); - item.setData("pageData", pd); //$NON-NLS-1$ - } - - private void onPageChecked(String id, boolean checked) { - TabItem[] items = tabFolder.getItems(); - if (checked) { - for (int i = 0; i < items.length; i++) { - TabItem item = items[i]; - if (item.getData() != null) - item.dispose(); - } - introRootPages.add(id); - addRootPages(); - } else { - for (int i = 0; i < items.length; i++) { - TabItem item = items[i]; - String itemId = (String) item.getData(); - if (itemId != null && itemId.equals(id)) { - item.dispose(); - introRootPages.remove(id); - return; - } - } - } - } - - private String getRootPageName(String id) { - for (int i = 0; i < ROOT_PAGE_TABLE.length; i++) { - if (ROOT_PAGE_TABLE[i].id.equals(id)) - return ROOT_PAGE_TABLE[i].name; - } - return "?"; //$NON-NLS-1$ - } - - private boolean getRootPageSelected(String id) { - for (int i = 0; i < introRootPages.size(); i++) { - String cid = (String) introRootPages.get(i); - if (cid.equals(id)) - return true; - } - return false; - } - - public void setInitializationData(IConfigurationElement config, String propertyName, Object data) - throws CoreException { - } - - private void createPopupMenu(final TableViewer viewer) { - MenuManager manager = new MenuManager(); - manager.createContextMenu(viewer.getControl()); - viewer.getControl().setMenu(manager.getMenu()); - manager.setRemoveAllWhenShown(true); - manager.addMenuListener(new IMenuListener() { - - public void menuAboutToShow(IMenuManager manager) { - fillPopupMenu(manager, viewer); - } - }); - } - - private void addDNDSupport(TableViewer viewer) { - viewer.addDragSupport(DND.DROP_MOVE, TRANSFER_TYPES, new TableDragSourceListener(viewer)); - viewer.addDropSupport(DND.DROP_MOVE, TRANSFER_TYPES, new TableDropTargetListener(viewer)); - } - - private TableViewer createTableViewer(Composite parent, String id) { - final Table table = new Table(parent, SWT.BORDER | SWT.FULL_SELECTION); - final TableColumn column1 = new TableColumn(table, SWT.NULL); - column1.setMoveable(false); - column1.setWidth(20); - column1.setResizable(false); - final TableColumn column2 = new TableColumn(table, SWT.NULL); - column2.setResizable(true); - final TableViewer viewer = new TableViewer(table); - CellEditor[] editors = new CellEditor[2]; - editors[0] = new ComboBoxCellEditor(table, ExtensionData.IMPORTANCE_NAME_TABLE, SWT.READ_ONLY); - viewer.setCellEditors(editors); - viewer.setColumnProperties(new String[] { ISharedIntroConstants.P_IMPORTANCE, - ISharedIntroConstants.P_NAME }); - viewer.setCellModifier(new ICellModifier() { - - public boolean canModify(Object element, String property) { - return property.equals(ISharedIntroConstants.P_IMPORTANCE); - } - - public Object getValue(Object element, String property) { - ExtensionData ed = (ExtensionData) element; - if (property.equals(ISharedIntroConstants.P_IMPORTANCE)) - return new Integer(ed.getImportance()); - return null; - } - - public void modify(Object element, String property, Object value) { - Integer ivalue = (Integer) value; - TableItem item = (TableItem) element; - ExtensionData ed = (ExtensionData) item.getData(); - ed.setImportance(ivalue.intValue()); - viewer.update(ed, new String [] {ISharedIntroConstants.P_IMPORTANCE}); - } - }); - viewer.setContentProvider(contentProvider); - viewer.setLabelProvider(labelProvider); - viewer.setData("id", id); //$NON-NLS-1$ - createPopupMenu(viewer); - addDNDSupport(viewer); - return viewer; - } - - private void fillPopupMenu(IMenuManager manager, final TableViewer viewer) { - StructuredSelection ssel = (StructuredSelection) viewer.getSelection(); - - if (ssel.size() == 1 && viewer != available) { - Action upAction = new Action(Messages.WelcomeCustomizationPreferencePage_up) { - - public void run() { - doMove(viewer, true); - } - }; - Action downAction = new Action(Messages.WelcomeCustomizationPreferencePage_down) { - - public void run() { - doMove(viewer, false); - } - }; - ExtensionData ed = (ExtensionData) ssel.getFirstElement(); - GroupData gd = (GroupData) viewer.getInput(); - upAction.setEnabled(gd.canMoveUp(ed)); - downAction.setEnabled(gd.canMoveDown(ed)); - manager.add(upAction); - manager.add(downAction); - } - if (ssel.size() > 0) { - manager.add(new Separator()); - MenuManager menu = new MenuManager(Messages.WelcomeCustomizationPreferencePage_moveTo); - addMoveToAction(menu, available, viewer, - Messages.WelcomeCustomizationPreferencePage_menu_available); - addMoveToAction(menu, topLeft, viewer, Messages.WelcomeCustomizationPreferencePage_menu_top_left); - addMoveToAction(menu, topRight, viewer, Messages.WelcomeCustomizationPreferencePage_menu_top_right); - addMoveToAction(menu, bottomLeft, viewer, Messages.WelcomeCustomizationPreferencePage_menu_bottom_left); - addMoveToAction(menu, bottomRight, viewer, Messages.WelcomeCustomizationPreferencePage_menu_bottom_right); - manager.add(menu); - } - } - - private void addMoveToAction(MenuManager menu, final TableViewer target, final TableViewer source, - String name) { - if (source == target) - return; - Action action = new Action(name) { - - public void run() { - doMoveTo(source, target); - } - }; - menu.add(action); - } - - private void doMove(Viewer viewer, boolean up) { - Object obj = ((StructuredSelection) viewer.getSelection()).getFirstElement(); - GroupData gd = (GroupData) viewer.getInput(); - if (up) - gd.moveUp((ExtensionData) obj); - else - gd.moveDown((ExtensionData) obj); - viewer.refresh(); - } - - private void doMoveTo(TableViewer source, TableViewer target) { - Object[] selObjs = ((StructuredSelection) source.getSelection()).toArray(); - GroupData sourceGd = (GroupData) source.getInput(); - GroupData targetGd = (GroupData) target.getInput(); - if (targetGd == null) { - targetGd = createTargetGd(target); - } - for (int i = 0; i < selObjs.length; i++) { - ExtensionData ed = (ExtensionData) selObjs[i]; - sourceGd.remove(ed); - targetGd.add(ed); - } - source.refresh(); - updateColumnSizes(source); - if (target.getInput() != null) - target.refresh(); - else - target.setInput(targetGd); - updateColumnSizes(target); - } - - private void updateColumnSizes(TableViewer viewer) { - TableColumn sc = viewer.getTable().getColumn(1); - sc.pack(); - } - - private GroupData createTargetGd(Viewer target) { - GroupData targetGd = null; - if (target == topLeft) - targetGd = new GroupData(PageData.P_TOP_LEFT, false); - else if (target == topRight) - targetGd = new GroupData(PageData.P_TOP_RIGHT, false); - else if (target == bottomLeft) - targetGd = new GroupData(PageData.P_BOTTOM_LEFT, false); - else if (target == bottomRight) - targetGd = new GroupData(PageData.P_BOTTOM_RIGHT, false); - else if (target == available) - targetGd = new GroupData(ISharedIntroConstants.HIDDEN, false); - else - return null; - TabItem[] items = tabFolder.getSelection(); - PageData pd = (PageData) items[0].getData("pageData"); //$NON-NLS-1$ - pd.add(targetGd); - return targetGd; - } - - public void setCurrentPage(String pageId) { - firstPageId = pageId; - } - - private void selectFirstPage() { - if (firstPageId == null) - return; - TabItem[] items = tabFolder.getItems(); - for (int i = 0; i < items.length; i++) { - TabItem item = items[i]; - PageData pd = (PageData) item.getData("pageData"); //$NON-NLS-1$ - if (pd != null && pd.getId().equals(firstPageId)) { - tabFolder.setSelection(i); - onTabChange(item); - return; - } - } - } -}
\ No newline at end of file diff --git a/org.eclipse.ui.intro/src/org/eclipse/ui/intro/config/ExtensionFactory.java b/org.eclipse.ui.intro/src/org/eclipse/ui/intro/config/ExtensionFactory.java deleted file mode 100644 index e9fac54ab..000000000 --- a/org.eclipse.ui.intro/src/org/eclipse/ui/intro/config/ExtensionFactory.java +++ /dev/null @@ -1,81 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2006 IBM Corporation and others. 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: IBM Corporation - initial API and implementation - **************************************************************************************************/ -package org.eclipse.ui.intro.config; - -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IConfigurationElement; -import org.eclipse.core.runtime.IExecutableExtension; -import org.eclipse.core.runtime.IExecutableExtensionFactory; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.Status; -import org.eclipse.ui.internal.intro.impl.IntroPlugin; -import org.eclipse.ui.internal.intro.universal.WelcomeCustomizationPreferencePage; - -/** - * Factory for the intro's public extensions. - * <p> - * This allows the extensions to be made available for use by RCP applications without exposing - * their concrete implementation classes. - * </p> - * <p> - * Currently supported plug-in extensions: - * <ul> - * <li>welcomeCustomization - a preference page that allows user customization of the shared - * Welcome.</li> - * </ul> - * <p>This class should be referenced in extensions but not subclassed - * or instantiated programmatically. - * - * @since 3.2 - */ - -public class ExtensionFactory implements IExecutableExtensionFactory, IExecutableExtension { - - private String id; - private IConfigurationElement config; - private String propertyName; - private static final String WELCOME_CUSTOMIZATION_PREFERENCE_PAGE = "welcomeCustomization"; //$NON-NLS-1$ - - /* - * (non-Javadoc) - * - * @see org.eclipse.core.runtime.IExecutableExtensionFactory#create() - */ - public Object create() throws CoreException { - if (WELCOME_CUSTOMIZATION_PREFERENCE_PAGE.equals(id)) - return configure(new WelcomeCustomizationPreferencePage()); - - throw new CoreException(new Status(IStatus.ERROR, IntroPlugin.PLUGIN_ID, 0, - "Unknown id in data argument for " + getClass(), null)); //$NON-NLS-1$ - } - - private Object configure(Object obj) throws CoreException { - if (obj instanceof IExecutableExtension) { - ((IExecutableExtension) obj).setInitializationData(config, propertyName, null); - } - return obj; - } - - /* - * (non-Javadoc) - * - * @see org.eclipse.core.runtime.IExecutableExtension#setInitializationData(org.eclipse.core.runtime.IConfigurationElement, - * java.lang.String, java.lang.Object) - */ - public void setInitializationData(IConfigurationElement config, String propertyName, Object data) - throws CoreException { - if (data instanceof String) - id = (String) data; - else - throw new CoreException(new Status(IStatus.ERROR, IntroPlugin.PLUGIN_ID, 0, - "Data argument must be a String for " + getClass(), null)); //$NON-NLS-1$ - this.config = config; - this.propertyName = propertyName; - } -}
\ No newline at end of file diff --git a/org.eclipse.ui.intro/src/org/eclipse/ui/intro/config/IntroConfigurer.java b/org.eclipse.ui.intro/src/org/eclipse/ui/intro/config/IntroConfigurer.java index 5f26db971..9f600ddd1 100644 --- a/org.eclipse.ui.intro/src/org/eclipse/ui/intro/config/IntroConfigurer.java +++ b/org.eclipse.ui.intro/src/org/eclipse/ui/intro/config/IntroConfigurer.java @@ -9,6 +9,8 @@ package org.eclipse.ui.intro.config; +import org.eclipse.ui.intro.IIntroSite; + /** * Classes that extend this abstract class are used to configure <code>CustomizableIntroPart</code>. @@ -20,6 +22,22 @@ package org.eclipse.ui.intro.config; */ public abstract class IntroConfigurer { + /** + * The identifier of the named group where the configurer can + * contribute local tool bar actions. + * + * @see #init(IIntroSite) + */ + public static final String TB_ADDITIONS = "additions"; //$NON-NLS-1$ + + /** + * Provides the opportunity for the configurer to contribute to + * the action bars. + * @param site + * the intro part's site + */ + public void init(IIntroSite site) { + } /** * Returns the value of the variable defined by the configurer. This variable can appear in XML @@ -77,8 +95,7 @@ public abstract class IntroConfigurer { * Themes can use this feature to render certain extensions differently. * * @param pageId - * the identifier of the target page that this extension - * is contributed into + * the identifier of the target page that this extension is contributed into * @param extensionId * the identifier of the extension to provide the mixin style for. * @return the style to add to the original extension style or <code>null</code> if no mixin diff --git a/org.eclipse.ui.intro/themes/circles/graphics/banner_left_lines.png b/org.eclipse.ui.intro/themes/circles/graphics/banner_left_lines.png Binary files differdeleted file mode 100644 index e96fc867a..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/banner_left_lines.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/fs_banner.jpg b/org.eclipse.ui.intro/themes/circles/graphics/fs_banner.jpg Binary files differdeleted file mode 100644 index 8524e946b..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/fs_banner.jpg +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/fs_nav.png b/org.eclipse.ui.intro/themes/circles/graphics/fs_nav.png Binary files differdeleted file mode 100644 index 99eb592de..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/fs_nav.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/fs_nav_hover.png b/org.eclipse.ui.intro/themes/circles/graphics/fs_nav_hover.png Binary files differdeleted file mode 100644 index c80a66e85..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/fs_nav_hover.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/fs_nav_lg.png b/org.eclipse.ui.intro/themes/circles/graphics/fs_nav_lg.png Binary files differdeleted file mode 100644 index 324de6e43..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/fs_nav_lg.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/mi_banner.jpg b/org.eclipse.ui.intro/themes/circles/graphics/mi_banner.jpg Binary files differdeleted file mode 100644 index 89cb6401c..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/mi_banner.jpg +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/mi_nav.png b/org.eclipse.ui.intro/themes/circles/graphics/mi_nav.png Binary files differdeleted file mode 100644 index 5434708e5..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/mi_nav.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/mi_nav_hover.png b/org.eclipse.ui.intro/themes/circles/graphics/mi_nav_hover.png Binary files differdeleted file mode 100644 index a6551a860..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/mi_nav_hover.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/mi_nav_lg.png b/org.eclipse.ui.intro/themes/circles/graphics/mi_nav_lg.png Binary files differdeleted file mode 100644 index df8e2ffa7..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/mi_nav_lg.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/nav_midhov.png b/org.eclipse.ui.intro/themes/circles/graphics/nav_midhov.png Binary files differdeleted file mode 100644 index 58a220d42..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/nav_midhov.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/nav_rightedgehov.png b/org.eclipse.ui.intro/themes/circles/graphics/nav_rightedgehov.png Binary files differdeleted file mode 100644 index 403775eb4..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/nav_rightedgehov.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/new_obj.gif b/org.eclipse.ui.intro/themes/circles/graphics/new_obj.gif Binary files differdeleted file mode 100644 index f46b81bdd..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/new_obj.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/newhov_obj.gif b/org.eclipse.ui.intro/themes/circles/graphics/newhov_obj.gif Binary files differdeleted file mode 100644 index 593e63bc6..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/newhov_obj.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/ov_banner.jpg b/org.eclipse.ui.intro/themes/circles/graphics/ov_banner.jpg Binary files differdeleted file mode 100644 index 004686582..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/ov_banner.jpg +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/ov_nav.png b/org.eclipse.ui.intro/themes/circles/graphics/ov_nav.png Binary files differdeleted file mode 100644 index 709f69a68..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/ov_nav.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/ov_nav_hover.png b/org.eclipse.ui.intro/themes/circles/graphics/ov_nav_hover.png Binary files differdeleted file mode 100644 index b01a1aa4b..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/ov_nav_hover.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/ov_nav_lg.png b/org.eclipse.ui.intro/themes/circles/graphics/ov_nav_lg.png Binary files differdeleted file mode 100644 index c2513e951..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/ov_nav_lg.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/ov_nav_midhov.png b/org.eclipse.ui.intro/themes/circles/graphics/ov_nav_midhov.png Binary files differdeleted file mode 100644 index 44bb0e5f4..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/ov_nav_midhov.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/ov_nav_rightedgehov.png b/org.eclipse.ui.intro/themes/circles/graphics/ov_nav_rightedgehov.png Binary files differdeleted file mode 100644 index 7b3b1d9f5..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/ov_nav_rightedgehov.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/overview48sel.gif b/org.eclipse.ui.intro/themes/circles/graphics/overview48sel.gif Binary files differdeleted file mode 100644 index 3d1c45bf7..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/overview48sel.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/root/circles.png b/org.eclipse.ui.intro/themes/circles/graphics/root/circles.png Binary files differdeleted file mode 100644 index 5537eac58..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/root/circles.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/root/firststeps.png b/org.eclipse.ui.intro/themes/circles/graphics/root/firststeps.png Binary files differdeleted file mode 100644 index eccc75735..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/root/firststeps.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/root/firststeps48.png b/org.eclipse.ui.intro/themes/circles/graphics/root/firststeps48.png Binary files differdeleted file mode 100644 index 5b0270e1f..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/root/firststeps48.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/root/firststeps_tophov.png b/org.eclipse.ui.intro/themes/circles/graphics/root/firststeps_tophov.png Binary files differdeleted file mode 100644 index 1f6061733..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/root/firststeps_tophov.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/root/migrate.png b/org.eclipse.ui.intro/themes/circles/graphics/root/migrate.png Binary files differdeleted file mode 100644 index 07fea1d0e..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/root/migrate.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/root/migrate48.png b/org.eclipse.ui.intro/themes/circles/graphics/root/migrate48.png Binary files differdeleted file mode 100644 index c1379ac75..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/root/migrate48.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/root/migrate_tophov.png b/org.eclipse.ui.intro/themes/circles/graphics/root/migrate_tophov.png Binary files differdeleted file mode 100644 index b9177b213..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/root/migrate_tophov.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/root/overview.png b/org.eclipse.ui.intro/themes/circles/graphics/root/overview.png Binary files differdeleted file mode 100644 index 64735d630..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/root/overview.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/root/overview48.png b/org.eclipse.ui.intro/themes/circles/graphics/root/overview48.png Binary files differdeleted file mode 100644 index f14e3b887..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/root/overview48.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/root/overview_tophov.png b/org.eclipse.ui.intro/themes/circles/graphics/root/overview_tophov.png Binary files differdeleted file mode 100644 index bae1dcf32..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/root/overview_tophov.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/root/root_bottomhov.png b/org.eclipse.ui.intro/themes/circles/graphics/root/root_bottomhov.png Binary files differdeleted file mode 100644 index d0cb41621..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/root/root_bottomhov.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/root/root_midhov.png b/org.eclipse.ui.intro/themes/circles/graphics/root/root_midhov.png Binary files differdeleted file mode 100644 index 5ee69dc0c..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/root/root_midhov.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/root/samples.png b/org.eclipse.ui.intro/themes/circles/graphics/root/samples.png Binary files differdeleted file mode 100644 index cb3db1db8..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/root/samples.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/root/samples48.png b/org.eclipse.ui.intro/themes/circles/graphics/root/samples48.png Binary files differdeleted file mode 100644 index 5e9bcfc48..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/root/samples48.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/root/samples_tophover.png b/org.eclipse.ui.intro/themes/circles/graphics/root/samples_tophover.png Binary files differdeleted file mode 100644 index 6729f5ee6..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/root/samples_tophover.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/root/tutorials.png b/org.eclipse.ui.intro/themes/circles/graphics/root/tutorials.png Binary files differdeleted file mode 100644 index e40a8239b..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/root/tutorials.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/root/tutorials48.png b/org.eclipse.ui.intro/themes/circles/graphics/root/tutorials48.png Binary files differdeleted file mode 100644 index fd97ecb3a..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/root/tutorials48.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/root/tutorials_tophov.png b/org.eclipse.ui.intro/themes/circles/graphics/root/tutorials_tophov.png Binary files differdeleted file mode 100644 index 8bbf9243f..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/root/tutorials_tophov.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/root/webresources.png b/org.eclipse.ui.intro/themes/circles/graphics/root/webresources.png Binary files differdeleted file mode 100644 index 1a876dc58..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/root/webresources.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/root/webresources48.png b/org.eclipse.ui.intro/themes/circles/graphics/root/webresources48.png Binary files differdeleted file mode 100644 index 095009825..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/root/webresources48.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/root/webresources_tophov.png b/org.eclipse.ui.intro/themes/circles/graphics/root/webresources_tophov.png Binary files differdeleted file mode 100644 index 944668b1f..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/root/webresources_tophov.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/root/welcomebckgrd.jpg b/org.eclipse.ui.intro/themes/circles/graphics/root/welcomebckgrd.jpg Binary files differdeleted file mode 100644 index 34eb1a78e..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/root/welcomebckgrd.jpg +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/root/whatsnew.png b/org.eclipse.ui.intro/themes/circles/graphics/root/whatsnew.png Binary files differdeleted file mode 100644 index a10dd3de0..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/root/whatsnew.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/root/whatsnew48.png b/org.eclipse.ui.intro/themes/circles/graphics/root/whatsnew48.png Binary files differdeleted file mode 100644 index 37e19e056..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/root/whatsnew48.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/root/whatsnew_tophov.png b/org.eclipse.ui.intro/themes/circles/graphics/root/whatsnew_tophov.png Binary files differdeleted file mode 100644 index d8c1490af..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/root/whatsnew_tophov.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/root/workbench.png b/org.eclipse.ui.intro/themes/circles/graphics/root/workbench.png Binary files differdeleted file mode 100644 index 868f3abbd..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/root/workbench.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/root/workbench48.png b/org.eclipse.ui.intro/themes/circles/graphics/root/workbench48.png Binary files differdeleted file mode 100644 index d778dfa56..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/root/workbench48.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/root/workbench_tophov.png b/org.eclipse.ui.intro/themes/circles/graphics/root/workbench_tophov.png Binary files differdeleted file mode 100644 index 57adab786..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/root/workbench_tophov.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/sa_banner.jpg b/org.eclipse.ui.intro/themes/circles/graphics/sa_banner.jpg Binary files differdeleted file mode 100644 index 5a2eaf5d8..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/sa_banner.jpg +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/sa_nav.png b/org.eclipse.ui.intro/themes/circles/graphics/sa_nav.png Binary files differdeleted file mode 100644 index 9871b72bb..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/sa_nav.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/sa_nav_hover.png b/org.eclipse.ui.intro/themes/circles/graphics/sa_nav_hover.png Binary files differdeleted file mode 100644 index be6ed3310..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/sa_nav_hover.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/sa_nav_lg.png b/org.eclipse.ui.intro/themes/circles/graphics/sa_nav_lg.png Binary files differdeleted file mode 100644 index d2cabf1e5..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/sa_nav_lg.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/samples48.gif b/org.eclipse.ui.intro/themes/circles/graphics/samples48.gif Binary files differdeleted file mode 100644 index 3213de674..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/samples48.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/samples48sel.gif b/org.eclipse.ui.intro/themes/circles/graphics/samples48sel.gif Binary files differdeleted file mode 100644 index f9c0469ab..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/samples48sel.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/tu_banner.jpg b/org.eclipse.ui.intro/themes/circles/graphics/tu_banner.jpg Binary files differdeleted file mode 100644 index 2e450b7d4..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/tu_banner.jpg +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/tu_nav.png b/org.eclipse.ui.intro/themes/circles/graphics/tu_nav.png Binary files differdeleted file mode 100644 index ce589ab7d..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/tu_nav.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/tu_nav_hover.png b/org.eclipse.ui.intro/themes/circles/graphics/tu_nav_hover.png Binary files differdeleted file mode 100644 index 39a5931e1..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/tu_nav_hover.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/tu_nav_lg.png b/org.eclipse.ui.intro/themes/circles/graphics/tu_nav_lg.png Binary files differdeleted file mode 100644 index 4c6664402..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/tu_nav_lg.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/tutorials48sel.gif b/org.eclipse.ui.intro/themes/circles/graphics/tutorials48sel.gif Binary files differdeleted file mode 100644 index 3d687bd56..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/tutorials48sel.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/wb_nav.png b/org.eclipse.ui.intro/themes/circles/graphics/wb_nav.png Binary files differdeleted file mode 100644 index 0621c3c47..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/wb_nav.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/wb_nav_hover.png b/org.eclipse.ui.intro/themes/circles/graphics/wb_nav_hover.png Binary files differdeleted file mode 100644 index 791318934..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/wb_nav_hover.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/whatsnew48sel.gif b/org.eclipse.ui.intro/themes/circles/graphics/whatsnew48sel.gif Binary files differdeleted file mode 100644 index 0da843fe3..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/whatsnew48sel.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/wn_banner.jpg b/org.eclipse.ui.intro/themes/circles/graphics/wn_banner.jpg Binary files differdeleted file mode 100644 index 0f9e8f335..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/wn_banner.jpg +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/wn_nav.png b/org.eclipse.ui.intro/themes/circles/graphics/wn_nav.png Binary files differdeleted file mode 100644 index 47ecb7c96..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/wn_nav.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/wn_nav_hover.png b/org.eclipse.ui.intro/themes/circles/graphics/wn_nav_hover.png Binary files differdeleted file mode 100644 index 585c663e0..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/wn_nav_hover.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/wn_nav_lg.png b/org.eclipse.ui.intro/themes/circles/graphics/wn_nav_lg.png Binary files differdeleted file mode 100644 index cb686d2a5..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/wn_nav_lg.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/wr_banner.jpg b/org.eclipse.ui.intro/themes/circles/graphics/wr_banner.jpg Binary files differdeleted file mode 100644 index 44c008ab1..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/wr_banner.jpg +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/wr_nav.png b/org.eclipse.ui.intro/themes/circles/graphics/wr_nav.png Binary files differdeleted file mode 100644 index 00d3056a8..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/wr_nav.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/wr_nav_hover.png b/org.eclipse.ui.intro/themes/circles/graphics/wr_nav_hover.png Binary files differdeleted file mode 100644 index 71244ddb2..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/wr_nav_hover.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/graphics/wr_nav_lg.png b/org.eclipse.ui.intro/themes/circles/graphics/wr_nav_lg.png Binary files differdeleted file mode 100644 index a95839aec..000000000 --- a/org.eclipse.ui.intro/themes/circles/graphics/wr_nav_lg.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/circles/html/firststeps.css b/org.eclipse.ui.intro/themes/circles/html/firststeps.css deleted file mode 100644 index 738a36a7e..000000000 --- a/org.eclipse.ui.intro/themes/circles/html/firststeps.css +++ /dev/null @@ -1,91 +0,0 @@ -body { - background-image : url(../graphics/contentpage/overview_wtr.jpg); -} - -/* show the "selected" image for this page */ -#navigation-links a#overview img, #navigation-links a#overview:hover img { - background-image : url(../graphics/icons/ctool/overview48sel.gif); - } - - -iframe { - position:relative; - top:16px; - width:100%; - height:100%; - padding-left:10px; - } - -/* mozilla scrollbar appearing off page fix */ -#page-content > iframe { - width: 98%; - padding-left: 2%; -} - - -/* - * Set up the Overview links to be displayed in two columns - * that are centered in the middle of the page. - */ - -#overview-links { - text-align : left; - width : 760px; - /* To center in Moz (have to use text-align for IE) */ - margin : 0px auto; - -} - -#overview-links a { - width : 370px; - text-align : left; - margin-left : 5px; - margin-right : 5px; - margin-top : 5px; - margin-bottom : -20px; - vertical-align : top; -} - -#overview-links > a { vertical-align : middle; } - -#overview-links a img { - height : 57px; - width : 57px; - vertical-align : middle; - -} - -#overview-links a .link-label { - display : block; - width : 300px; - position : relative; - top : -50px; - left : 60px; -} - -#overview-links a > .link-label { left: 65px; } - -#overview-links a p .text { - display : block; - width : 300px; - position : relative; - top : -45px; - left : 53px; -} - -#overview-links a p > .text { left: 58px; } - -/* Special case for Mozilla, because the links are displayed - in 1 vertical column instead of 2 centered columns */ -#overview-links > a { width : 700px; } -#overview-links a > .link-label { width : 700px; } -#overview-links a p > .text { width : 700px; } - -#overview-links a:hover { border-right : 5px; } - -a#basics img { background-image : url(../graphics/icons/obj48/wbbasics_obj.gif); } -a#basics:hover img { background-image : url(../graphics/icons/obj48/wbbasicshov_obj.gif); } - -a#team img { background-image : url(../graphics/icons/obj48/teamsup_obj.gif); } -a#team:hover img { background-image : url(../graphics/icons/obj48/teamsuphov_obj.gif); } - diff --git a/org.eclipse.ui.intro/themes/circles/html/migrate.css b/org.eclipse.ui.intro/themes/circles/html/migrate.css deleted file mode 100644 index 1f1c21417..000000000 --- a/org.eclipse.ui.intro/themes/circles/html/migrate.css +++ /dev/null @@ -1,132 +0,0 @@ -body { - background-image : url(../graphics/contentpage/whatsnew_wtr.jpg); -} - -/* show the "selected" image for this page */ -#navigation-links a#news img, #navigation-links a#news:hover img { background-image : url(../graphics/icons/ctool/whatsnew48sel.gif); } - -/* - * Set up the content of the Whats New page to be displayed in - * two columns that are centered in the middle of the page. - */ - -#noteworthy-links { - text-align : left; - width : 760px; - /* To center in Moz (have to use text-align for IE) */ - margin: 0px auto; -} - -#noteworthy-links a { - width : 370px; - text-align : left; - margin-left : 5px; - margin-right : 5px; - margin-top : 5px; - margin-bottom : -20px; - vertical-align : top; -} - -#noteworthy-links > a { vertical-align : middle; } - -#noteworthy-links a img { - height : 57px; - width : 57px; - vertical-align : middle; -} - -#noteworthy-links a .link-label { - display : block; - width : 300px; - position : relative; - top : -50px; - left : 60px; -} - -#noteworthy-links a > .link-label { left: 65px; } - -#noteworthy-links a p .text { - display : block; - width : 300px; - position : relative; - top : -45px; - left : 53px; -} - -#noteworthy-links a p > .text { left: 58px; } - -/* Special case for Mozilla, because the links are displayed - in 1 vertical column instead of 2 centered columns */ -#noteworthy-links > a { width : 700px; } -#noteworthy-links a > .link-label { width : 700px; } -#noteworthy-links a p > .text { width : 700px; } - -#noteworthy-links a:hover { border-right : 5px; } - -#noteworthy-links a img { background-image : url(../graphics/icons/obj48/new_obj.gif); } -#noteworthy-links a:hover img { background-image : url(../graphics/icons/obj48/newhov_obj.gif); } - - -#news-links { - text-align : left; - width : 760px; - /* To center in Moz (have to use text-align for IE) */ - margin: 0px auto; -} - -#news-links a { - width : 370px; - text-align : left; - margin-left : 5px; - margin-right : 5px; - margin-top : 5px; - margin-bottom : -20px; - vertical-align : top; -} - -#news-links > a { vertical-align : middle; } - -#news-links a img { - height : 57px; - width : 57px; - vertical-align : middle; -} - -#news-links a .link-label { - display : block; - width : 300px; - position : relative; - top : -50px; - left : 60px; -} - -#news-links a > .link-label { left: 65px; } - -#news-links a p .text { - display : block; - width : 300px; - position : relative; - top : -45px; - left : 53px; -} - -#news-links a p > .text { left: 58px; } - -/* Special case for Mozilla, because the links are displayed - in 1 vertical column instead of 2 centered columns */ -#news-links > a { width : 700px; } -#news-links a > .link-label { width : 700px; } -#news-links a p > .text { width : 700px; } - -#news-links a:hover { border-right : 5px; } - -a#new-and-noteworthy img { background-image : url(../graphics/icons/obj48/new_obj.gif); } -a#new-and-noteworthy:hover img { background-image : url(../graphics/icons/obj48/newhov_obj.gif); } - -a#updates img { background-image : url(../graphics/icons/obj48/updates_obj.gif); } -a#updates:hover img { background-image : url(../graphics/icons/obj48/updateshov_obj.gif); } - -a#eclipse img { background-image : url(../graphics/icons/obj48/community_obj.gif); } -a#eclipse:hover img { background-image : url(../graphics/icons/obj48/communityhov_obj.gif); } - - diff --git a/org.eclipse.ui.intro/themes/circles/html/overview.css b/org.eclipse.ui.intro/themes/circles/html/overview.css deleted file mode 100644 index a3678934e..000000000 --- a/org.eclipse.ui.intro/themes/circles/html/overview.css +++ /dev/null @@ -1,78 +0,0 @@ -/* show the "selected" image for this page */ -#navigation-links a#overview img, #navigation-links a#overview:hover img { - background-image : url(../graphics/overview48sel.gif); - } - -iframe { - position:relative; - top:16px; - width:100%; - height:100%; - padding-left:10px; - } - -/* mozilla scrollbar appearing off page fix */ -#page-content > iframe { - width: 98%; - padding-left: 2%; -} - - -/* - * Set up the Overview links to be displayed in two columns - * that are centered in the middle of the page. - */ - -#overview-links { - text-align : left; - width : 760px; - /* To center in Moz (have to use text-align for IE) */ - margin : 0px auto; - -} - -#overview-links a { - width : 370px; - text-align : left; - margin-left : 5px; - margin-right : 5px; - margin-top : 5px; - margin-bottom : -20px; - vertical-align : top; -} - -#overview-links > a { vertical-align : middle; } - -#overview-links a img { - height : 57px; - width : 57px; - vertical-align : middle; -} - -#overview-links a .link-label { - display : block; - width : 300px; - position : relative; - top : -50px; - left : 60px; -} - -#overview-links a > .link-label { left: 65px; } - -#overview-links a p .text { - display : block; - width : 300px; - position : relative; - top : -45px; - left : 53px; -} - -#overview-links a p > .text { left: 58px; } - -/* Special case for Mozilla, because the links are displayed - in 1 vertical column instead of 2 centered columns */ -#overview-links > a { width : 700px; } -#overview-links a > .link-label { width : 700px; } -#overview-links a p > .text { width : 700px; } - -#overview-links a:hover { border-right : 5px; }
\ No newline at end of file diff --git a/org.eclipse.ui.intro/themes/circles/html/root.css b/org.eclipse.ui.intro/themes/circles/html/root.css deleted file mode 100644 index 57163ba53..000000000 --- a/org.eclipse.ui.intro/themes/circles/html/root.css +++ /dev/null @@ -1,207 +0,0 @@ -/* - * Set up general font colours, sizes, etc. Some of these will override - * settings from the shared CSS - */ -.intro-header H1 { - font-size : 18pt; -} -#page-links a .link-label, #action-links a .link-label { - font-size : 13pt;
font-weight : 600;
color : #E5E5E5; -} -#page-links a p .text, #action-links a p .text { - font-size : 13pt;
font-weight : 500;
color : #E5E5E5; -} -/* - * Set up the content for the root page. - */ -body { - min-width : 770px;
/* since IE doesn't support min-width, use expression */ - width:expression(document.body.clientWidth < 770? "770px": "auto" ); - background-repeat : no-repeat;
background-position : top left;
background-color : #345365; - background-image: url('../graphics/root/welcomebckgrd.jpg'); -} -#root { - min-height : 450px;
height : 100%;
height : expression(document.body.clientHeight < 450? "450px": "100%" ); - overflow: hidden; -} - -#branding { - position : relative; - background-repeat : no-repeat; - background-position: bottom left; - min-height: 450px; - width: 100px; - height: 100%; - height : expression(document.body.clientHeight < 450? "450px": "100%" ); - bottom: -20px; - top: auto; - left: 20px; -} - -/* - * Set up the navigation bar. It should be centered in the middle - * of the page - */ -#links-background { - position: relative; - height: 272px; - width: 100%; - /* - margin-top : 18%; - margin-bottom : auto; - */ - top: 250px; - text-align : center; - background-position: center; -} -/* specify a width for Moz so we can center. - * **Important** If additional links are added, we will have to increase this width - * to accomodate them, otherwise they will wrap to a new line - */ - -#links-background > #page-links { - width : 33em;
margin : 0 auto; -} -#page-links { - height : 177px; - position : relative;
top : 50px; -} -#page-links a { - position : relative;
width : 86px;
margin-left : 1em;
margin-right : 1em;
text-align : center;
vertical-align : top; -} -/* float left for Moz so the items all appear inline */ -#page-links > a { - float : left;
position : relative; -} -#page-links a img { - height : 82px;
width : 82px;
vertical-align : middle; -} -/* remove the hover image from the flow of the document, - so it doesn't take up space and change the position - of the link label and descriptions */ -#page-links a .background-image { - position : absolute; -} -/* properly align the link label and text based on class (left vs. right) */ -#page-links a:hover { - /* This is needed for IE to force the hover pseudo selectors below to work.*/
padding : 0 em; -} -/* Hide both the label and the description of the link and remove them from static HTML flow, until user hovers over link */ -/* First, set the width of both the label and the description to a max of 15 em. */ -/* This can be changed when translated to different country locals. */ -#page-links a span { - width : 16em;
} -/* Set up left links orientation first. */ -#page-links a.left:link .link-label, -#page-links a.left:visited .link-label { - display: none; -} -#page-links a.left:hover .link-label, -#page-links a.left:focus .link-label, -#page-links a.left:active .link-label { - text-align: left;
display: block;
position: absolute;
top : 120 %;
left : 0; -} -/* hide description and remove it from static HTML flow, until user hovers over link */ -#page-links a.left:link .text, -#page-links a.left:visited .text { - display: none; -} -#page-links a.left:hover .text, -#page-links a.left:focus .text, -#page-links a.left:active .text { - text-align: left;
display: block;
position: absolute;
left : 0;
top: 145%; -} -/* Set up right links orientation now. */ -#page-links a.right:link .link-label, -#page-links a.right:visited .link-label { - display: none; -} -#page-links a.right:hover .link-label, -#page-links a.right:focus .link-label, -#page-links a.right:active .link-label { - text-align: right;
display: block;
position: absolute;
top : 120 %;
right : 0; -} -/* hide description and remove it from static HTML flow, until user hovers over link */ -#page-links a.right:link .text, -#page-links a.right:visited .text { - display: none; -} -#page-links a.right:hover .text, -#page-links a.right:focus .text, -#page-links a.right:active .text { - text-align: right;
display: block;
position: absolute;
right : 0;
top: 145%; -} -/* properties for each of the page-links */ -a#overview .background-image { - background-image : url(../graphics/icons/ctool/overview72.gif);
visibility : hidden; -} -a#tutorials .background-image { - background-image : url(../graphics/icons/ctool/tutorials72.gif);
visibility : hidden; -} -a#samples .background-image { - background-image : url(../graphics/icons/ctool/samples72.gif);
visibility : hidden; -} -a#news .background-image { - background-image : url(../graphics/icons/ctool/whatsnew72.gif);
visibility : hidden; -} -/* show the hover image on hover, focus, and active */ -#page-links a:hover .background-image, -#page-links a:focus .background-image, -#page-links a:active .background-image { - visibility : visible; -} -/* - * Set up the action links - */ -#action-links { - width : 98%;
position : absolute;
left : 0px;
top : 20px; -} -#action-links a#workbench { - position : absolute;
top : -16px;
right : -8px;
text-align : right; -} -#action-links a .background-image, -#action-links a #workbench_img { - height : 53px;
width : 53px;
text-align : center;
vertical-align : top; -} -/* special case for mozilla */ -#action-links a > .background-image, -#action-links a > #workbench_img { - vertical-align : middle; -} -/* remove the hover image from the flow of the document, - so it doesn't take up space and change the position - of the main image */ -#action-links a .background-image { - position : absolute; -} -#action-links a#workbench .background-image { - background-image : url(../graphics/icons/ctool/wb48.gif);
visibility : hidden; -} -#action-links a#workbench:hover .background-image, -#action-links a#workbench:focus .background-image, -#action-links a#workbench:active .background-image { - visibility : visible; - position: absolute; - top: 0px; - right: 0px; -} -/* hide the link and description until users hover over the link */ -#action-links a p .text, #action-links a .link-label { - display : none; -} -#action-links a:hover .link-label, -#action-links a:focus .link-label, -#action-links a:active .link-label { - display : block;
width : 16em; - margin-left : 10px; -} -#action-links a:hover p .text, -#action-links a:focus p .text, -#action-links a:active p .text { - display : block;
width : 16em; -} -#action-links a:hover, -#action-links a:focus, -#action-links a:active { - border : 0px; -} diff --git a/org.eclipse.ui.intro/themes/circles/html/samples.css b/org.eclipse.ui.intro/themes/circles/html/samples.css deleted file mode 100644 index 5ecba1101..000000000 --- a/org.eclipse.ui.intro/themes/circles/html/samples.css +++ /dev/null @@ -1,74 +0,0 @@ -body { - background-image : url(../graphics/contentpage/samples_wtr.jpg); -} - -/* Lay out the real content of the samples page. */ - -.samples-group { - width : 750px; - /* To center in Moz (have to use text-align for IE) */ - margin : 0px auto; - margin-bottom : 10px; - text-align : left; - float : none; - clear : both; -} - -.samples-group H4 { margin-top : 10px; } - -.sample-link { - width : 360px; - text-align : left; - margin-left : 5px; - margin-right : 5px; - margin-top : 10px; - margin-bottom : -30px; - vertical-align : top; -} - -/* specialize the swt samples group to be spread over only 1 column */ -#swt .sample-link { - width : 720px; -} - -.samples-group > .sample-link { - float : left; - height : 150px; - vertical-align : middle; -} -.sample-link .link-label { - display : block; - width : 300px; - position : relative; - top : -50px; - left : 60px; -} - -#swt .sample-link .link-label { - width : 600px; -} - -.sample-link p .text { - display : block; - width : 310px; - position : relative; - top : -45px; - left : 53px; -} - -#swt .sample-link .text { - width : 620px; -} - -.sample-link img { - height : 56px; - width : 56px; - vertical-align : middle; -} - -.sample-link:hover { border-right : 0px; } - -/* show the "selected" image for this page */ -#navigation-links a#samples img, #navigation-links a#samples:hover img { background-image : url(../graphics/samples48sel.gif); } - - diff --git a/org.eclipse.ui.intro/themes/circles/html/shared.css b/org.eclipse.ui.intro/themes/circles/html/shared.css deleted file mode 100644 index b1a2289e8..000000000 --- a/org.eclipse.ui.intro/themes/circles/html/shared.css +++ /dev/null @@ -1,268 +0,0 @@ -/* - * Set up general fonts, sizes and colors - */ -body { font-family : Arial, sans-serif; } - -H1, H2, H3, H4, p, a { color : #4D4D4D; } - -.intro-header H1 { - font-size : 16pt; - font-weight : normal; - color : #E5E5E5; -} - -h2 { - font-size : 13pt; - font-weight : normal; - color : #7B8694; -} -/* For regular div labels */ -H4 .div-label { - font-size : 10pt; - font-weight : bold; -} - -/* For the main page content's title */ -#content-header H4 .div-label { - font-size : 14pt; - font-weight : normal; - color : #8C96A2; - float : none; - clear : both; -} - -.page-description { - font-size : 10pt; - float : none; - clear : both; -} - -a { - font-weight : bold; - text-decoration : none; - color : #4D4D4D; -} - -a .link-label { - font-size : 10pt; - font-weight : normal; -} - -#navigation-links a .link-label { - font-size : 9pt; - font-weight : normal; - color : #E5E5E5; -} - -a .text { - font-size : 8pt; - font-weight : normal; -} - -p .group-description { - font-size : 10pt; - font-weight : normal; -} - - -/* - * Set up other general properties like padding/margins - */ -html, body { width : 100%; height : 100%; } - -html, body, div, h1, h4, p, a { margin : 0px; padding : 0px; } - -.intro-header H1 { padding-top : 10px; margin-left : 10px; } - -/* For regular div labels */ -#page-content div H4 { - padding : 10px; - padding-bottom : 0px; -} - -/* For the main page content's div label */ -#page-content #content-header H4 { - padding-bottom : 10px; - padding-top : 0px; -} - -/* special case for Mozilla's main content-header label. - Mozilla 1.4 needs more room at the top */ -#page-content > #content-header H4 { padding-top : 10px; } - -/* Needed in IE to get shift+tab to show the active image properly */ -a:active { - border : solid 0px; -} - -a img { - border-width : 0; - background-repeat : no-repeat; -} - -/* - * to get scrollbars working in both IE and Mozilla - */ -html,body { overflow: auto; } -html>body { overflow: visible; } - -/* - * Set up the body, decorative background, and navigation for the content - * pages. - * Note: the root page handles its own background and navigation; these - * settings primarily apply to the content pages - */ -body { - background-color : #FFFFFF; - background-repeat : no-repeat; - background-position : bottom right; -} - -#curve-image { - width : 100%; - height : 164px; - position : absolute; - top : 0px; - background-image : url(../graphics/contentpage/backgroundcurve.gif); - background-repeat : no-repeat; - background-position : top center; - margin : 0; - padding : 0; -} - -.intro-header { background-color : transparent; z-index : 100;} - -body, .page{ - min-width : 770px; - /* since IE doesn't support min-width, try expression */ - width:expression(document.body.clientWidth < 770? "770px": "auto" ); - min-height : 425px; - height : 100%; - height : expression(document.body.clientHeight < 425? "425px": "100%" ); -} - -.page { - min-height : 475px; - background-image : url(../graphics/contentpage/background.jpg); - background-repeat : repeat-x; - background-position : top left; -} - -#page-content { - background-repeat : no-repeat; - background-position : bottom right; - height : 80%; -} - -#page-content #left { - display: inline; - width: 50%; -/* background-color: #ffa0a0; */ -} - -#page-content #right { - display: inline; - width: 50%; -/* background-color: #a0ffa0; */ -} - -#page-content #bottom { - display: inline; - width: 100%; -/* background-color: #a0a0ff; */ -} - -/* - * Lay out the navigation links - * (Root page does something similar for its navigation) - */ -#navigation-links { - position : relative; - left : 0px; - top : 0px; - height : 118px; - width : 100%; -} - -#navigation-links a { - padding-left : 5px; - padding-right : 5px; - float : left; - text-align : center; -} - -#navigation-links a img { - height : 52px; - width : 52px; - vertical-align : middle; -} - -#navigation-links a .link-label { display : block; margin-top : 5px;} - -#navigation-links a .text { display : none; } - -#navigation-links a:hover, -#navigation-links a:focus -#navigation-links a:active { border-right : 0px;} - -/* properties for each of the navigation-links */ -#navigation-links a#overview img { background-image : url(../graphics/ov_nav.png); } -#navigation-links a#overview:hover img, -#navigation-links a#overview:focus img, -#navigation-links a#overview:active img { background-image : url(../graphics/ov_nav_hover.png); } - -#navigation-links a#tutorials img { background-image : url(../graphics/tu_nav.png); } -#navigation-links a#tutorials:hover img, -#navigation-links a#tutorials:active img, -#navigation-links a#tutorials:focus img { background-image : url(../graphics/tu_nav_hover.png); } -/*#navigation-links a#tutorials:active img { background-image : url(../graphics/icons/ctool/tutorials48sel.gif); }*/ - -#navigation-links a#samples img { background-image : url(../graphics/sa_nav.png); } -#navigation-links a#samples:hover img, -#navigation-links a#samples:active img, -#navigation-links a#samples:focus img { background-image : url(../graphics/sa_nav_hover.png); } -/*#navigation-links a#samples:active img { background-image : url(../graphics/icons/ctool/samples48sel.gif); }*/ - -#navigation-links a#whatsnew img { background-image : url(../graphics/wn_nav.png); } -#navigation-links a#whatsnew:hover img, -#navigation-links a#whatsnew:focus img, -#navigation-links a#whatsnew:active img { background-image : url(../graphics/wn_nav_hover.png); } - -#navigation-links a#workbench { position : absolute; right : 0px; top : -35px; text-align : right;} -#navigation-links a#workbench .text { display : none; } -#navigation-links a#workbench img { background-image : url(../graphics/wb_nav.png); width : 53px; height : 53px;} -#navigation-links a#workbench:hover img, -#navigation-links a#workbench:focus img, -#navigation-links a#workbench:active img { background-image : url(../graphics/wb_nav_hover.png); } - -/* - * Lay out the page title and description - */ -h1, p { margin-left : 10px; } /* required in mozilla so the page description is properly indented */ - -/* position the page content so that the page title overlays the bottom - * of the background image, but make sure the content is always on top - * (using z-index) */ -#page-content { - float : none; - clear : both; - text-align : center; - margin-top : 35px; -} - -.page > #page-content { margin-top : 50px; } - -#page-content p { - padding-bottom : 15px; - text-align : left; - float : none; - clear : both; -} - -#page-content #content-header H4, .page-description { - text-align : left; - margin-right : 10px; - float : none; - clear : both; -} - diff --git a/org.eclipse.ui.intro/themes/circles/html/standby.css b/org.eclipse.ui.intro/themes/circles/html/standby.css deleted file mode 100644 index e8862ad60..000000000 --- a/org.eclipse.ui.intro/themes/circles/html/standby.css +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Set up general font colours, sizes, etc. Some of these will override - * settings from the shared CSS - */ -.intro-header H1 { - font-size : 15pt; -} - -#page-links a .link-label, #action-links a .link-label { - font-size : 10pt; - font-weight : 600; - color : #E5E5E5; -} - -#page-links a p .text, #action-links a p .text { - font-size : 10pt; - font-weight : 500; - color : #E5E5E5; -} - -/* - * Set up the content for the standby page. - */ -body { - min-width : 230px; - /* since IE doesn't support min-width, use expression */ - width:expression(document.body.clientWidth < 230? "230px": "auto" ); - background-repeat : no-repeat; - background-position : top left; - background-color : #345365; -} - -.page { - background-repeat : no-repeat; - background-position : bottom left; - min-width : 230px; - /* since IE doesn't support min-width, use expression */ - width:expression(document.body.clientWidth < 230? "230px": "auto" ); - min-height : 610px; - height : 100%; - height : expression(document.body.clientHeight < 450? "450px": "100%" ); -} - -/* - * Set up the navigation bar. It should be centered in the middle - * of the page - */ - -#links-background { - width : 100%; - margin-top : 10%; - margin-bottom : auto; - text-align : center; -} - -#page-links a { - display : block; - width : 220px; - text-align : left; - margin-left : auto; - margin-right : auto; - margin-top : 0px; - vertical-align : top; -} -#page-links a span, #page-links a p { - display : block; - width : 160px; - margin : 0px; - padding : 0px; -} - -#page-links a .link-label { - position : relative; - left : 60px; - top : -50px; -} - -#page-links a p .text { - position : relative; - left : 60px; - top : -50px; - -} - -#page-links a img { - height : 52px; - width : 52px; - vertical-align : middle; -} - -#page-links a:hover, -#page-links a:focus, -#page-links a:active { border : 0px; } - -#page-links a:hover p, -#page-links a:focus p, -#page-links a:active p { margin : 0px; padding : 0px; } - -/* properties for each of the page-links */ -a#overview img { background-image : url(../graphics/icons/etool/overview48.gif); } -a#overview:hover img, -a#overview:focus img, -a#overview:active img { background-image : url(../graphics/icons/ctool/overview48.gif); } - -a#tutorials img { background-image : url(../graphics/icons/etool/tutorials48.gif); } -a#tutorials:hover img, -a#tutorials:focus img, -a#tutorials:active img { background-image : url(../graphics/icons/ctool/tutorials48.gif); } - -a#samples img { background-image : url(../graphics/icons/etool/samples48.gif); } -a#samples:hover img, -a#samples:focus img, -a#samples:active img { background-image : url(../graphics/icons/ctool/samples48.gif); } - -a#news img { background-image : url(../graphics/icons/etool/whatsnew48.gif); } -a#news:hover img, -a#news:focus img, -a#news:active img { background-image : url(../graphics/icons/ctool/whatsnew48.gif); } - diff --git a/org.eclipse.ui.intro/themes/circles/html/tutorials.css b/org.eclipse.ui.intro/themes/circles/html/tutorials.css deleted file mode 100644 index fa06e8b7c..000000000 --- a/org.eclipse.ui.intro/themes/circles/html/tutorials.css +++ /dev/null @@ -1,77 +0,0 @@ -body { - background-image : url(../graphics/contentpage/tutorials_wtr.jpg); -} - -/* show the "selected" image for this page */ -#navigation-links a#tutorials img, #navigation-links a#tutorials:hover img { background-image : url(../graphics/tutorials48sel.gif); } - -/* - * Set up the content of the tutorials page into two - * columns that are centered in the page - */ - - -/* a group of tutorial links */ -.tutorials-group { - /* To center in Moz (have to use text-align for IE) */ - margin-left : auto; - margin-right : auto; - width : 750px; - margin-bottom : 30px; - float : none; - clear : both; - text-align : left; -} - -.tutorials-link { - width : 360px; - text-align : left; - margin-left : 5px; - margin-right : 5px; - margin-top : 10px; - margin-bottom : -20px; - vertical-align : top; -} - -.tutorials-group > .tutorials-link { - float : left; - height : 150px; - vertical-align : middle; -} - - -.tutorials-link img { - height : 57px; - width : 57px; - vertical-align : middle; -} - -.tutorials-group h4 { - float : none; - clear : both; -} - -p #group-description { - padding-bottom : 10px; - float : none; - clear : both; -} - -.tutorials-link .link-label { - display : block; - width : 300px; - position : relative; - top : -50px; - left : 60px; -} - - -.tutorials-link p .text { - display : block; - width : 300px; - position : relative; - top : -45px; - left : 53px; -} - -.tutorials-link:hover { border-right : 0px; } diff --git a/org.eclipse.ui.intro/themes/circles/html/webresources.css b/org.eclipse.ui.intro/themes/circles/html/webresources.css deleted file mode 100644 index 1f1c21417..000000000 --- a/org.eclipse.ui.intro/themes/circles/html/webresources.css +++ /dev/null @@ -1,132 +0,0 @@ -body { - background-image : url(../graphics/contentpage/whatsnew_wtr.jpg); -} - -/* show the "selected" image for this page */ -#navigation-links a#news img, #navigation-links a#news:hover img { background-image : url(../graphics/icons/ctool/whatsnew48sel.gif); } - -/* - * Set up the content of the Whats New page to be displayed in - * two columns that are centered in the middle of the page. - */ - -#noteworthy-links { - text-align : left; - width : 760px; - /* To center in Moz (have to use text-align for IE) */ - margin: 0px auto; -} - -#noteworthy-links a { - width : 370px; - text-align : left; - margin-left : 5px; - margin-right : 5px; - margin-top : 5px; - margin-bottom : -20px; - vertical-align : top; -} - -#noteworthy-links > a { vertical-align : middle; } - -#noteworthy-links a img { - height : 57px; - width : 57px; - vertical-align : middle; -} - -#noteworthy-links a .link-label { - display : block; - width : 300px; - position : relative; - top : -50px; - left : 60px; -} - -#noteworthy-links a > .link-label { left: 65px; } - -#noteworthy-links a p .text { - display : block; - width : 300px; - position : relative; - top : -45px; - left : 53px; -} - -#noteworthy-links a p > .text { left: 58px; } - -/* Special case for Mozilla, because the links are displayed - in 1 vertical column instead of 2 centered columns */ -#noteworthy-links > a { width : 700px; } -#noteworthy-links a > .link-label { width : 700px; } -#noteworthy-links a p > .text { width : 700px; } - -#noteworthy-links a:hover { border-right : 5px; } - -#noteworthy-links a img { background-image : url(../graphics/icons/obj48/new_obj.gif); } -#noteworthy-links a:hover img { background-image : url(../graphics/icons/obj48/newhov_obj.gif); } - - -#news-links { - text-align : left; - width : 760px; - /* To center in Moz (have to use text-align for IE) */ - margin: 0px auto; -} - -#news-links a { - width : 370px; - text-align : left; - margin-left : 5px; - margin-right : 5px; - margin-top : 5px; - margin-bottom : -20px; - vertical-align : top; -} - -#news-links > a { vertical-align : middle; } - -#news-links a img { - height : 57px; - width : 57px; - vertical-align : middle; -} - -#news-links a .link-label { - display : block; - width : 300px; - position : relative; - top : -50px; - left : 60px; -} - -#news-links a > .link-label { left: 65px; } - -#news-links a p .text { - display : block; - width : 300px; - position : relative; - top : -45px; - left : 53px; -} - -#news-links a p > .text { left: 58px; } - -/* Special case for Mozilla, because the links are displayed - in 1 vertical column instead of 2 centered columns */ -#news-links > a { width : 700px; } -#news-links a > .link-label { width : 700px; } -#news-links a p > .text { width : 700px; } - -#news-links a:hover { border-right : 5px; } - -a#new-and-noteworthy img { background-image : url(../graphics/icons/obj48/new_obj.gif); } -a#new-and-noteworthy:hover img { background-image : url(../graphics/icons/obj48/newhov_obj.gif); } - -a#updates img { background-image : url(../graphics/icons/obj48/updates_obj.gif); } -a#updates:hover img { background-image : url(../graphics/icons/obj48/updateshov_obj.gif); } - -a#eclipse img { background-image : url(../graphics/icons/obj48/community_obj.gif); } -a#eclipse:hover img { background-image : url(../graphics/icons/obj48/communityhov_obj.gif); } - - diff --git a/org.eclipse.ui.intro/themes/circles/html/whatsnew.css b/org.eclipse.ui.intro/themes/circles/html/whatsnew.css deleted file mode 100644 index a99e7967a..000000000 --- a/org.eclipse.ui.intro/themes/circles/html/whatsnew.css +++ /dev/null @@ -1,146 +0,0 @@ -body { - background-image : url(../graphics/contentpage/whatsnew_wtr.jpg); -} - -iframe { - position:relative; - top:16px; - width:100%; - height:100%; - padding-left:10px; - } - -/* mozilla scrollbar appearing off page fix */ -#page-content > iframe { - width: 98%; - padding-left: 2%; -} - -/* show the "selected" image for this page */ -#navigation-links a#news img, #navigation-links a#news:hover img { background-image : url(../graphics/icons/ctool/whatsnew48sel.gif); } - -/* - * Set up the content of the Whats New page to be displayed in - * two columns that are centered in the middle of the page. - */ - -#noteworthy-links { - text-align : left; - width : 760px; - /* To center in Moz (have to use text-align for IE) */ - margin: 0px auto; -} - -#noteworthy-links a { - width : 370px; - text-align : left; - margin-left : 5px; - margin-right : 5px; - margin-top : 5px; - margin-bottom : -20px; - vertical-align : top; -} - -#noteworthy-links > a { vertical-align : middle; } - -#noteworthy-links a img { - height : 57px; - width : 57px; - vertical-align : middle; -} - -#noteworthy-links a .link-label { - display : block; - width : 300px; - position : relative; - top : -50px; - left : 60px; -} - -#noteworthy-links a > .link-label { left: 65px; } - -#noteworthy-links a p .text { - display : block; - width : 300px; - position : relative; - top : -45px; - left : 53px; -} - -#noteworthy-links a p > .text { left: 58px; } - -/* Special case for Mozilla, because the links are displayed - in 1 vertical column instead of 2 centered columns */ -#noteworthy-links > a { width : 700px; } -#noteworthy-links a > .link-label { width : 700px; } -#noteworthy-links a p > .text { width : 700px; } - -#noteworthy-links a:hover { border-right : 5px; } - -#noteworthy-links a img { background-image : url(../graphics/icons/obj48/new_obj.gif); } -#noteworthy-links a:hover img { background-image : url(../graphics/icons/obj48/newhov_obj.gif); } - - -#news-links { - text-align : left; - width : 760px; - /* To center in Moz (have to use text-align for IE) */ - margin: 0px auto; -} - -#news-links a { - width : 370px; - text-align : left; - margin-left : 5px; - margin-right : 5px; - margin-top : 5px; - margin-bottom : -20px; - vertical-align : top; -} - -#news-links > a { vertical-align : middle; } - -#news-links a img { - height : 57px; - width : 57px; - vertical-align : middle; -} - -#news-links a .link-label { - display : block; - width : 300px; - position : relative; - top : -50px; - left : 60px; -} - -#news-links a > .link-label { left: 65px; } - -#news-links a p .text { - display : block; - width : 300px; - position : relative; - top : -45px; - left : 53px; -} - -#news-links a p > .text { left: 58px; } - -/* Special case for Mozilla, because the links are displayed - in 1 vertical column instead of 2 centered columns */ -#news-links > a { width : 700px; } -#news-links a > .link-label { width : 700px; } -#news-links a p > .text { width : 700px; } - -#news-links a:hover { border-right : 5px; } - -a#new-and-noteworthy img { background-image : url(../graphics/icons/obj48/new_obj.gif); } -a#new-and-noteworthy:hover img { background-image : url(../graphics/icons/obj48/newhov_obj.gif); } - -a#updates img { background-image : url(../graphics/icons/obj48/updates_obj.gif); } -a#updates:hover img { background-image : url(../graphics/icons/obj48/updateshov_obj.gif); } - -a#eclipse img { background-image : url(../graphics/icons/obj48/community_obj.gif); } -a#eclipse:hover img { background-image : url(../graphics/icons/obj48/communityhov_obj.gif); } - - diff --git a/org.eclipse.ui.intro/themes/circles/swt/firststeps.properties b/org.eclipse.ui.intro/themes/circles/swt/firststeps.properties deleted file mode 100644 index cc62a3453..000000000 --- a/org.eclipse.ui.intro/themes/circles/swt/firststeps.properties +++ /dev/null @@ -1,3 +0,0 @@ -firststeps.page-content.layout.ncolumns = 2 -firststeps.page-content.bottom.layout.colspan = 2 -firstseps.subtitle-id = firststeps/page-content/page-title diff --git a/org.eclipse.ui.intro/themes/circles/swt/migrate.properties b/org.eclipse.ui.intro/themes/circles/swt/migrate.properties deleted file mode 100644 index a45e8d993..000000000 --- a/org.eclipse.ui.intro/themes/circles/swt/migrate.properties +++ /dev/null @@ -1,3 +0,0 @@ -migrate.page-content.layout.ncolumns = 2 -migrate.page-content.bottom.layout.colspan = 2 -migrate.subtitle-id = migrate/page-content/page-title diff --git a/org.eclipse.ui.intro/themes/circles/swt/overview.properties b/org.eclipse.ui.intro/themes/circles/swt/overview.properties deleted file mode 100644 index 89a574dc8..000000000 --- a/org.eclipse.ui.intro/themes/circles/swt/overview.properties +++ /dev/null @@ -1,6 +0,0 @@ - -overview.page-content.layout.ncolumns = 2 -overview.page-content.bottom.layout.colspan = 2 - -overview.subtitle-id = overview/page-content/page-title -overview.description-id = overview/page-content/page-description
\ No newline at end of file diff --git a/org.eclipse.ui.intro/themes/circles/swt/root.properties b/org.eclipse.ui.intro/themes/circles/swt/root.properties deleted file mode 100644 index a44653333..000000000 --- a/org.eclipse.ui.intro/themes/circles/swt/root.properties +++ /dev/null @@ -1,30 +0,0 @@ -theme = true -root.links-background.page-links.overview.link-icon = ../graphics/root/overview.png -root.links-background.page-links.firststeps.link-icon = ../graphics/root/firststeps.png -root.links-background.page-links.tutorials.link-icon = ../graphics/root/tutorials.png -root.links-background.page-links.samples.link-icon= ../graphics/root/samples.png -root.links-background.page-links.whatsnew.link-icon = ../graphics/root/whatsnew.png -root.links-background.page-links.migrate.link-icon = ../graphics/root/migrate.png -root.links-background.page-links.webresources.link-icon = ../graphics/root/webresources.png -root.action-links.workbench.link-icon = ../graphics/root/workbench.png - -#root.links-background.page-links.overview.hover-icon = intro/css/../graphics/icons/ctool/overview72.gif -#root.links-background.page-links.tutorials.hover-icon = intro/css/../graphics/icons/ctool/tutorials72.gif -#root.links-background.page-links.samples.hover-icon = intro/css/../graphics/icons/ctool/samples72.gif -#root.links-background.page-links.news.hover-icon = intro/css/../graphics/icons/ctool/whatsnew72.gif -#root.action-links.workbench.hover-icon = intro/css/../graphics/icons/ctool/wb48.gif - - -root.links-background.page-links.overview.small-link-icon = ../graphics/root/overview48.png -root.links-background.page-links.firststeps.small-link-icon = ../graphics/root/firststeps48.png -root.links-background.page-links.tutorials.small-link-icon = ../graphics/root/tutorials48.png -root.links-background.page-links.samples.small-link-icon = ../graphics/root/samples48.png -root.links-background.page-links.whatsnew.small-link-icon = ../graphics/root/whatsnew48.png -root.links-background.page-links.migrate.small-link-icon = ../graphics/root/migrate48.png -root.links-background.page-links.webresources.small-link-icon = ../graphics/root/webresources48.png - -root.action-links.workbench.small-link-icon = ../graphics/root/workbench48.png - -root.layout.ncolumns = 1 -root.links-background.page-links.layout.hspacing = 40 -root.layout.vspacing = 35 diff --git a/org.eclipse.ui.intro/themes/circles/swt/samples.properties b/org.eclipse.ui.intro/themes/circles/swt/samples.properties deleted file mode 100644 index fbbe9c49b..000000000 --- a/org.eclipse.ui.intro/themes/circles/swt/samples.properties +++ /dev/null @@ -1,8 +0,0 @@ - -samples.page-content.layout.vspacing = 40 -samples.page-content.layout.ncolumns = 2 -samples.page-content.bottom.layout.colspan = 2 - -description-style-id = group-description -samples.subtitle-id = samples/page-content/page-title -samples.description-id = samples/page-content/page-description
\ No newline at end of file diff --git a/org.eclipse.ui.intro/themes/circles/swt/standby.properties b/org.eclipse.ui.intro/themes/circles/swt/standby.properties deleted file mode 100644 index 6a8a229fe..000000000 --- a/org.eclipse.ui.intro/themes/circles/swt/standby.properties +++ /dev/null @@ -1,15 +0,0 @@ -theme = true -standby.links-background.page-links.overview.link-icon = ../graphics/root/overview48.png -standby.links-background.page-links.firststeps.link-icon = ../graphics/root/firststeps48.png -standby.links-background.page-links.tutorials.link-icon = ../graphics/root/tutorials48.png -standby.links-background.page-links.samples.link-icon = ../graphics/root/samples48.png -standby.links-background.page-links.whatsnew.link-icon = ../graphics/root/whatsnew48.png -standby.links-background.page-links.migrate.link-icon = ../graphics/root/migrate48.png -standby.links-background.page-links.webresources.link-icon = ../graphics/root/webresources48.png - -standby.action-links.workbench.link-icon = ../graphics/root/workbench48.png - -standby.links-background.page-links.layout.vspacing = 30 -standby.layout.vspacing = 35 -standby.show-link-description = false -standby.show-home-page-navigation = false
\ No newline at end of file diff --git a/org.eclipse.ui.intro/themes/circles/swt/tutorials.properties b/org.eclipse.ui.intro/themes/circles/swt/tutorials.properties deleted file mode 100644 index de1d07215..000000000 --- a/org.eclipse.ui.intro/themes/circles/swt/tutorials.properties +++ /dev/null @@ -1,7 +0,0 @@ - -tutorials.page-content.layout.vspacing = 40 -tutorials.page-content.layout.ncolumns = 2 -tutorials.page-content.bottom.layout.colspan = 2 - -tutorials.subtitle-id = tutorials/page-content/page-title -tutorials.description-id = tutorials/page-content/page-description
\ No newline at end of file diff --git a/org.eclipse.ui.intro/themes/circles/swt/webresources.properties b/org.eclipse.ui.intro/themes/circles/swt/webresources.properties deleted file mode 100644 index 2d8589fec..000000000 --- a/org.eclipse.ui.intro/themes/circles/swt/webresources.properties +++ /dev/null @@ -1,6 +0,0 @@ - -webresources.page-content.layout.vspacing = 40 -webresources.page-content.layout.ncolumns = 2 -webresources.page-content.bottom.layout.colspan = 2 - -webresources.subtitle-id = news/page-content/page-title diff --git a/org.eclipse.ui.intro/themes/circles/swt/whatsnew.properties b/org.eclipse.ui.intro/themes/circles/swt/whatsnew.properties deleted file mode 100644 index 72ab45cfa..000000000 --- a/org.eclipse.ui.intro/themes/circles/swt/whatsnew.properties +++ /dev/null @@ -1,9 +0,0 @@ -theme = true -whatsnew.page-content.layout.vspacing = 40 -whatsnew.page-content.layout.ncolumns = 2 -whatsnew.page-content.bottom.layout.colspan = 2 - -whatsnew.link-icon = ../graphics/new_obj.gif -whatsnew.hover-icon = ../graphics/newhov_obj.gif - -whatsnew.subtitle-id = whatsnew/page-content/page-title diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/contentpage/background.jpg b/org.eclipse.ui.intro/themes/purpleMesh/graphics/contentpage/background.jpg Binary files differdeleted file mode 100644 index ce1cada20..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/contentpage/background.jpg +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/contentpage/backgroundcurve.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/contentpage/backgroundcurve.gif Binary files differdeleted file mode 100644 index 8c5ec1df2..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/contentpage/backgroundcurve.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/contentpage/overview_wtr.jpg b/org.eclipse.ui.intro/themes/purpleMesh/graphics/contentpage/overview_wtr.jpg Binary files differdeleted file mode 100644 index 733e48c50..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/contentpage/overview_wtr.jpg +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/contentpage/samples_wtr.jpg b/org.eclipse.ui.intro/themes/purpleMesh/graphics/contentpage/samples_wtr.jpg Binary files differdeleted file mode 100644 index 78e703afd..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/contentpage/samples_wtr.jpg +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/contentpage/section1.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/contentpage/section1.gif Binary files differdeleted file mode 100644 index 61475136d..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/contentpage/section1.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/contentpage/section2.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/contentpage/section2.gif Binary files differdeleted file mode 100644 index 0ee148b5a..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/contentpage/section2.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/contentpage/section3.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/contentpage/section3.gif Binary files differdeleted file mode 100644 index b5d24e695..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/contentpage/section3.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/contentpage/section4.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/contentpage/section4.gif Binary files differdeleted file mode 100644 index 258d4a838..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/contentpage/section4.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/contentpage/tutorials_wtr.jpg b/org.eclipse.ui.intro/themes/purpleMesh/graphics/contentpage/tutorials_wtr.jpg Binary files differdeleted file mode 100644 index e74c7c091..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/contentpage/tutorials_wtr.jpg +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/contentpage/whatsnew_wtr.jpg b/org.eclipse.ui.intro/themes/purpleMesh/graphics/contentpage/whatsnew_wtr.jpg Binary files differdeleted file mode 100644 index c2a42da66..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/contentpage/whatsnew_wtr.jpg +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/overview48.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/overview48.gif Binary files differdeleted file mode 100644 index 7da24bd9a..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/overview48.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/overview48sel.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/overview48sel.gif Binary files differdeleted file mode 100644 index 3d1c45bf7..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/overview48sel.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/overview72.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/overview72.gif Binary files differdeleted file mode 100644 index d34b4b3d1..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/overview72.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/samples48.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/samples48.gif Binary files differdeleted file mode 100644 index 3213de674..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/samples48.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/samples48sel.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/samples48sel.gif Binary files differdeleted file mode 100644 index f9c0469ab..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/samples48sel.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/samples72.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/samples72.gif Binary files differdeleted file mode 100644 index 4c63a9a2a..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/samples72.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/tutorials48.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/tutorials48.gif Binary files differdeleted file mode 100644 index 1a3f06a91..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/tutorials48.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/tutorials48sel.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/tutorials48sel.gif Binary files differdeleted file mode 100644 index 3d687bd56..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/tutorials48sel.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/tutorials72.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/tutorials72.gif Binary files differdeleted file mode 100644 index a2aa343af..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/tutorials72.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/wb48.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/wb48.gif Binary files differdeleted file mode 100644 index c2fd06a61..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/wb48.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/whatsnew48.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/whatsnew48.gif Binary files differdeleted file mode 100644 index 2bfb9be62..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/whatsnew48.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/whatsnew48sel.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/whatsnew48sel.gif Binary files differdeleted file mode 100644 index 0da843fe3..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/whatsnew48sel.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/whatsnew72.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/whatsnew72.gif Binary files differdeleted file mode 100644 index 74bf6ff39..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/ctool/whatsnew72.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/dtool/back.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/dtool/back.gif Binary files differdeleted file mode 100644 index f0d0929b6..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/dtool/back.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/dtool/forward.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/dtool/forward.gif Binary files differdeleted file mode 100644 index dbe58b200..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/dtool/forward.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/dtool/overview.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/dtool/overview.gif Binary files differdeleted file mode 100644 index 2bc7b0d58..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/dtool/overview.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/dtool/restore_welcome.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/dtool/restore_welcome.gif Binary files differdeleted file mode 100644 index 4997b20ce..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/dtool/restore_welcome.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/dtool/samples.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/dtool/samples.gif Binary files differdeleted file mode 100644 index 5cf3caed2..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/dtool/samples.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/dtool/tutorials.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/dtool/tutorials.gif Binary files differdeleted file mode 100644 index 63826a5d8..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/dtool/tutorials.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/dtool/whatsnew.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/dtool/whatsnew.gif Binary files differdeleted file mode 100644 index 8056c99ff..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/dtool/whatsnew.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/back.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/back.gif Binary files differdeleted file mode 100644 index 1c81cb69f..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/back.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/forward.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/forward.gif Binary files differdeleted file mode 100644 index 3e4a4f40b..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/forward.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/overview.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/overview.gif Binary files differdeleted file mode 100644 index 3fe629a83..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/overview.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/overview48.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/overview48.gif Binary files differdeleted file mode 100644 index 8e2f8c16d..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/overview48.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/overview48sel.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/overview48sel.gif Binary files differdeleted file mode 100644 index 1275a4a90..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/overview48sel.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/overview72.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/overview72.gif Binary files differdeleted file mode 100644 index e3f764808..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/overview72.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/restore_welcome.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/restore_welcome.gif Binary files differdeleted file mode 100644 index 7736bcec6..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/restore_welcome.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/samples.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/samples.gif Binary files differdeleted file mode 100644 index c69588429..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/samples.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/samples48.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/samples48.gif Binary files differdeleted file mode 100644 index 63d405bf3..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/samples48.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/samples48sel.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/samples48sel.gif Binary files differdeleted file mode 100644 index 4c3135d0a..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/samples48sel.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/samples72.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/samples72.gif Binary files differdeleted file mode 100644 index 921642619..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/samples72.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/tutorials.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/tutorials.gif Binary files differdeleted file mode 100644 index a18d7ddf8..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/tutorials.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/tutorials48.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/tutorials48.gif Binary files differdeleted file mode 100644 index 718ca6c61..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/tutorials48.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/tutorials48sel.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/tutorials48sel.gif Binary files differdeleted file mode 100644 index 10680e5cc..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/tutorials48sel.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/tutorials72.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/tutorials72.gif Binary files differdeleted file mode 100644 index bab3498f8..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/tutorials72.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/wb48.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/wb48.gif Binary files differdeleted file mode 100644 index 50ca2871a..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/wb48.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/whatsnew.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/whatsnew.gif Binary files differdeleted file mode 100644 index f02232444..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/whatsnew.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/whatsnew48.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/whatsnew48.gif Binary files differdeleted file mode 100644 index 6e00d7a2a..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/whatsnew48.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/whatsnew48sel.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/whatsnew48sel.gif Binary files differdeleted file mode 100644 index be9fa0c3d..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/whatsnew48sel.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/whatsnew72.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/whatsnew72.gif Binary files differdeleted file mode 100644 index 410093bdf..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/etool/whatsnew72.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/obj48/new_obj.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/obj48/new_obj.gif Binary files differdeleted file mode 100644 index f46b81bdd..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/obj48/new_obj.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/obj48/newhov_obj.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/obj48/newhov_obj.gif Binary files differdeleted file mode 100644 index 593e63bc6..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/icons/obj48/newhov_obj.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/root/background.jpg b/org.eclipse.ui.intro/themes/purpleMesh/graphics/root/background.jpg Binary files differdeleted file mode 100644 index 969fcf336..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/root/background.jpg +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/root/brandmark.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/root/brandmark.gif Binary files differdeleted file mode 100644 index 93f25f787..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/root/brandmark.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/root/dots.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/root/dots.gif Binary files differdeleted file mode 100644 index 6621b7c8a..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/root/dots.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/graphics/swt/form_banner.gif b/org.eclipse.ui.intro/themes/purpleMesh/graphics/swt/form_banner.gif Binary files differdeleted file mode 100644 index aebc0b2a3..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/graphics/swt/form_banner.gif +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/html/overview.css b/org.eclipse.ui.intro/themes/purpleMesh/html/overview.css deleted file mode 100644 index ec750b6fe..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/html/overview.css +++ /dev/null @@ -1,90 +0,0 @@ -body { - background-image : url(../graphics/contentpage/overview_wtr.jpg); -} - -/* show the "selected" image for this page */ -#navigation-links a#overview img, #navigation-links a#overview:hover img { - background-image : url(../graphics/icons/ctool/overview48sel.gif); - } - - -iframe { - position:relative; - top:16px; - width:100%; - height:100%; - padding-left:10px; - } - -/* mozilla scrollbar appearing off page fix */ -#page-content > iframe { - width: 98%; - padding-left: 2%; -} - - -/* - * Set up the Overview links to be displayed in two columns - * that are centered in the middle of the page. - */ - - /* - -#overview-links { - text-align : left; - width : 760px; - /* To center in Moz (have to use text-align for IE) */ - margin : 0px auto; -} - -#overview-links a { - width : 370px; - text-align : left; - margin-left : 5px; - margin-right : 5px; - margin-top : 5px; - margin-bottom : -20px; - vertical-align : top; -} - -#overview-links > a { vertical-align : middle; } - -#overview-links a img { - height : 57px; - width : 57px; - vertical-align : middle; - -} - -#overview-links a .link-label { - display : block; - width : 300px; - position : relative; - top : -50px; - left : 60px; -} - -#overview-links a > .link-label { left: 65px; } - -#overview-links a p .text { - display : block; - width : 300px; - position : relative; - top : -45px; - left : 53px; -} - -#overview-links a p > .text { left: 58px; } - -*/ - -/* Special case for Mozilla, because the links are displayed - in 1 vertical column instead of 2 centered columns */ - /* -#overview-links > a { width : 700px; } -#overview-links a > .link-label { width : 700px; } -#overview-links a p > .text { width : 700px; } - -#overview-links a:hover { border-right : 5px; } -*/ - diff --git a/org.eclipse.ui.intro/themes/purpleMesh/html/root.css b/org.eclipse.ui.intro/themes/purpleMesh/html/root.css deleted file mode 100644 index c08ab36c5..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/html/root.css +++ /dev/null @@ -1,211 +0,0 @@ -/* - * Set up general font colours, sizes, etc. Some of these will override - * settings from the shared CSS - */ -.intro-header H1 { - font-size : 18pt; -} -#page-links a .link-label, #action-links a .link-label { - font-size : 13pt;
font-weight : 600;
color : #E5E5E5; -} -#page-links a p .text, #action-links a p .text { - font-size : 13pt;
font-weight : 500;
color : #E5E5E5; -} -/* - * Set up the content for the root page. - */ -body { - min-width : 770px;
/* since IE doesn't support min-width, use expression */ - width:expression(document.body.clientWidth < 770? "770px": "auto" );
background-image : url(../graphics/root/background.jpg);
background-repeat : no-repeat;
background-position : top left;
background-color : #7169D1; -} -#root { - background-image : url(../graphics/root/brandmark.gif);
background-repeat : no-repeat;
background-position : bottom left;
min-height : 450px;
height : 100%;
height : expression(document.body.clientHeight < 450? "450px": "100%" ); -} - -/* - * We will not use the general-purpose group1 used in - * other pages for a curve image. - */ - -#extra-group1 { - display : none; -} -/* - * Set up the navigation bar. It should be centered in the middle - * of the page - */ -#links-background { - background-image : url(../graphics/root/dots.gif);
background-repeat : repeat-x;
width : 100%;
height : 177px;
margin-top : 18%;
margin-bottom : auto;
text-align : center; -} -/* specify a width for Moz so we can center. - * **Important** If additional links are added, we will have to increase this width - * to accomodate them, otherwise they will wrap to a new line - */ -#links-background > #page-links { - width : 33em;
margin : 0 auto; -} -#page-links { - position : relative;
top : 50px; -} -#page-links a { - position : relative;
width : 86px;
margin-left : 1em;
margin-right : 1em;
text-align : center;
vertical-align : top; -} -/* float left for Moz so the items all appear inline */ -#page-links > a { - float : left;
position : relative; -} -#page-links a img { - height : 82px;
width : 82px;
vertical-align : middle; -} -/* remove the hover image from the flow of the document, - so it doesn't take up space and change the position - of the link label and descriptions */ -#page-links a .background-image { - position : absolute; -} -/* properly align the link label and text based on class (left vs. right) */ -#page-links a:hover { - /* This is needed for IE to force the hover pseudo selectors below to work.*/
padding : 0 em; -} -/* Hide both the label and the description of the link and remove them from static HTML flow, until user hovers over link */ -/* First, set the width of both the label and the description to a max of 15 em. */ -/* This can be changed when translated to different country locals. */ -#page-links a span { - width : 16em;
} -/* Set up left links orientation first. */ -#page-links a.left:link .link-label, -#page-links a.left:visited .link-label { - display: none; -} -#page-links a.left:hover .link-label, -#page-links a.left:focus .link-label, -#page-links a.left:active .link-label { - text-align: left;
display: block;
position: absolute;
top : 120 %;
left : 0; -} -/* hide description and remove it from static HTML flow, until user hovers over link */ -#page-links a.left:link .text, -#page-links a.left:visited .text { - display: none; -} -#page-links a.left:hover .text, -#page-links a.left:focus .text, -#page-links a.left:active .text { - text-align: left;
display: block;
position: absolute;
left : 0;
top: 145%; -} -/* Set up right links orientation now. */ -#page-links a.right:link .link-label, -#page-links a.right:visited .link-label { - display: none; -} -#page-links a.right:hover .link-label, -#page-links a.right:focus .link-label, -#page-links a.right:active .link-label { - text-align: right;
display: block;
position: absolute;
top : 120 %;
right : 0; -} -/* hide description and remove it from static HTML flow, until user hovers over link */ -#page-links a.right:link .text, -#page-links a.right:visited .text { - display: none; -} -#page-links a.right:hover .text, -#page-links a.right:focus .text, -#page-links a.right:active .text { - text-align: right;
display: block;
position: absolute;
right : 0;
top: 145%; -} -/* properties for each of the page-links */ -#page-links a#overview img { background-image : url(../graphics/icons/etool/overview72.gif); } -#page-links a:hover#overview img { background-image : url(../graphics/icons/ctool/overview72.gif); } - -#page-links a#tutorials img { background-image : url(../graphics/icons/etool/tutorials72.gif); } -#page-links a:hover#tutorials img { background-image : url(../graphics/icons/ctool/tutorials72.gif); } - -#page-links a#samples img { background-image : url(../graphics/icons/etool/samples72.gif); } -#page-links a:hover#samples img { background-image : url(../graphics/icons/ctool/samples72.gif); } - -#page-links a#whatsnew img { background-image : url(../graphics/icons/etool/whatsnew72.gif); } -#page-links a:hover#whatsnew img { background-image : url(../graphics/icons/ctool/whatsnew72.gif); } - -/* -a#overview .background-image { - background-image : url(../graphics/icons/ctool/overview72.gif);
visibility : hidden; -} -a#tutorials .background-image { - background-image : url(../graphics/icons/ctool/tutorials72.gif);
visibility : hidden; -} -a#samples .background-image { - background-image : url(../graphics/icons/ctool/samples72.gif);
visibility : hidden; -} -a#whatsnew .background-image { - background-image : url(../graphics/icons/ctool/whatsnew72.gif);
visibility : hidden; -} - -*/ -/* show the hover image on hover, focus, and active */ -/* -#page-links a:hover .background-image, -#page-links a:focus .background-image, -#page-links a:active .background-image { - visibility : visible; -} -*/ -/* - * Set up the action links - */ -#action-links { - width : 98%;
position : absolute;
left : 0px;
top : 20px; -} -#action-links a#workbench { - position : absolute;
top : -16px;
right : -8px;
text-align : right; -} -#action-links a .background-image, -#action-links a #workbench_img { - height : 53px;
width : 53px;
text-align : center;
vertical-align : top; -} -/* special case for mozilla */ -#action-links a > .background-image, -#action-links a > #workbench_img { - vertical-align : middle; -} -/* remove the hover image from the flow of the document, - so it doesn't take up space and change the position - of the main image */ -#action-links a .background-image { - position : absolute; -} -/* -#action-links a#workbench .background-image { - background-image : url(../graphics/icons/ctool/wb48.gif);
visibility : hidden; -} -*/ -#action-links a#workbench .background-image { - background-image : url(../graphics/icons/etool/wb48.gif); -} -#action-links a#workbench:hover .background-image, -#action-links a#workbench:focus .background-image, -#action-links a#workbench:active .background-image { - background-image : url(../graphics/icons/ctool/wb48.gif); - visibility : visible; - position: absolute; - top: 0px; - right: 0px; -} -/* hide the link and description until users hover over the link */ -#action-links a p .text, #action-links a .link-label { - display : none; -} -#action-links a:hover .link-label, -#action-links a:focus .link-label, -#action-links a:active .link-label { - display : block;
width : 16em; - margin-left : 10px; -} -#action-links a:hover p .text, -#action-links a:focus p .text, -#action-links a:active p .text { - display : block;
width : 16em; -} -#action-links a:hover, -#action-links a:focus, -#action-links a:active { - border : 0px; -} diff --git a/org.eclipse.ui.intro/themes/purpleMesh/html/samples.css b/org.eclipse.ui.intro/themes/purpleMesh/html/samples.css deleted file mode 100644 index 321ec618c..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/html/samples.css +++ /dev/null @@ -1,8 +0,0 @@ -body { - background-image : url(../graphics/contentpage/samples_wtr.jpg); -} - -/* show the "selected" image for this page */ -#navigation-links a#samples img, #navigation-links a#samples:hover img { background-image : url(../graphics/icons/ctool/samples48sel.gif); } - - diff --git a/org.eclipse.ui.intro/themes/purpleMesh/html/shared.css b/org.eclipse.ui.intro/themes/purpleMesh/html/shared.css deleted file mode 100644 index 10f5f14b4..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/html/shared.css +++ /dev/null @@ -1,385 +0,0 @@ -/* - * Set up general fonts, sizes and colors - */ -body { font-family : Arial, sans-serif; } - -H1, H2, H3, H4, p, a { color : #4D4D4D; } - -.intro-header H1 { - font-size : 16pt; - font-weight : normal; - color : #E5E5E5; -} - -h2 { - font-size : 13pt; - font-weight : normal; - color : #7B8694; -} -/* For regular div labels */ -H4 .div-label { - font-size : 10pt; - font-weight : bold; -} - -/* For the main page content's title */ -#content-header H4 .div-label { - font-size : 14pt; - font-weight : normal; - color : #8C96A2; - float : none; - clear : both; -} - -.page-description { - font-size : 10pt; - float : none; - clear : both; -} - -a { - font-weight : bold; - text-decoration : none; - color : #4D4D4D; -} - -a .link-label { - font-size : 10pt; - font-weight : normal; -} - -#navigation-links a .link-label { - font-size : 9pt; - font-weight : normal; - color : #E5E5E5; -} - -a .text { - font-size : 8pt; - font-weight : normal; -} - -p .group-description { - font-size : 10pt; - font-weight : normal; -} - - -/* - * Set up other general properties like padding/margins - */ -html, body { width : 100%; height : 100%; } - -html, body, div, h1, h4, p, a { margin : 0px; padding : 0px; } - -.intro-header H1 { padding-top : 10px; margin-left : 10px; } - -.section { } -.section-body { display: none; padding : 0px; } - -/* For regular div labels */ -#page-content div H4 { - padding : 10px; - padding-bottom : 0px; -} - -/* For the main page content's div label */ -#page-content #content-header H4 { - padding-bottom : 10px; - padding-top : 0px; -} - -/* special case for Mozilla's main content-header label. - Mozilla 1.4 needs more room at the top */ -#page-content > #content-header H4 { padding-top : 10px; } - -/* Needed in IE to get shift+tab to show the active image properly */ -a:active { - border : solid 0px; -} - -a img { - border-width : 0; - background-repeat : no-repeat; -} - -/* - * to get scrollbars working in both IE and Mozilla - */ -html,body { overflow: auto; } -html>body { overflow: visible; } - -/* - * Set up the body, decorative background, and navigation for the content - * pages. - * Note: the root page handles its own background and navigation; these - * settings primarily apply to the content pages - */ -body { - background-color : #FFFFFF; - background-repeat : no-repeat; - background-position : bottom right; -} - -/* - * We will use one of the general purpose groups to show - * the curve image - */ -#extra-group1 { - width : 100%; - height : 164px; - position : absolute; - top : 0px; - background-image : url(../graphics/contentpage/backgroundcurve.gif); - background-repeat : no-repeat; - background-position : top center; - margin : 0; - padding : 0; -} - -/* - * Hide the other general-purpose groups - */ - -#extra-group2, -#extra-group3, -#extra-group4, -#extra-group5 { - display : none; -} - -.intro-header { background-color : transparent; z-index : 100;} - -body, .page{ - min-width : 770px; - /* since IE doesn't support min-width, try expression */ - width:expression(document.body.clientWidth < 770? "770px": "auto" ); - min-height : 425px; - height : 100%; - height : expression(document.body.clientHeight < 425? "425px": "100%" ); -} - -.page { - min-height : 475px; - background-image : url(../graphics/contentpage/background.jpg); - background-repeat : repeat-x; - background-position : top left; -} - -#page-content { - background-repeat : no-repeat; - background-position : bottom right; - height : 70%; -} - -/* - * Lay out the navigation links - * (Root page does something similar for its navigation) - */ -#navigation-links { - position : relative; - left : 10px; - top : 5px; - height : 60px; - width : 98%; -} - -#navigation-links a { - padding-left : 5px; - padding-right : 5px; - float : left; - text-align : center; -} - -#navigation-links #customize { - padding-left : 5px; - padding-right : 5px; - float : left; - text-align : center; -} - -#navigation-links a img { - height : 52px; - width : 52px; - vertical-align : middle; -} - -#navigation-links a .link-label { display : block; margin-top : 5px;} - -#navigation-links a .text { display : none; } - -#navigation-links a:hover, -#navigation-links a:focus -#navigation-links a:active { border-right : 0px;} - -/* properties for each of the navigation-links */ -#navigation-links a#overview img { background-image : url(../graphics/icons/etool/overview48.gif); } -#navigation-links a#overview:hover img, -#navigation-links a#overview:focus img, -#navigation-links a#overview:active img { background-image : url(../graphics/icons/ctool/overview48.gif); } - -#navigation-links a#tutorials img { background-image : url(../graphics/icons/etool/tutorials48.gif); } -#navigation-links a#tutorials:hover img, -#navigation-links a#tutorials:active img, -#navigation-links a#tutorials:focus img { background-image : url(../graphics/icons/ctool/tutorials48.gif); } - -#navigation-links a#samples img { background-image : url(../graphics/icons/etool/samples48.gif); } -#navigation-links a#samples:hover img, -#navigation-links a#samples:active img, -#navigation-links a#samples:focus img { background-image : url(../graphics/icons/ctool/samples48.gif); } - -#navigation-links a#whatsnew img { background-image : url(../graphics/icons/etool/whatsnew48.gif); } -#navigation-links a#whatsnew:hover img, -#navigation-links a#whatsnew:focus img, -#navigation-links a#whatsnew:active img { background-image : url(../graphics/icons/ctool/whatsnew48.gif); } - -#navigation-links a#workbench { position : absolute; right : 0px; top : -35px; text-align : right;} -#navigation-links a#workbench .text { display : none; } -#navigation-links a#workbench img { background-image : url(../graphics/icons/etool/wb48.gif); width : 53px; height : 53px;} -#navigation-links a#workbench:hover img, -#navigation-links a#workbench:focus img, -#navigation-links a#workbench:active img { background-image : url(../graphics/icons/ctool/wb48.gif); } - -/* - * Lay out the page title and description - */ -h1, p { margin-left : 10px; } /* required in mozilla so the page description is properly indented */ - -/* position the page content so that the page title overlays the bottom - * of the background image, but make sure the content is always on top - * (using z-index) */ -#page-content { - float : none; - clear : both; - text-align : center; - margin-top : 35px; -} - -.page > #page-content { margin-top : 50px; } - -#page-content p { - padding-bottom : 15px; - text-align : left; - float : none; - clear : both; -} - -/* Page content bins */ - -#page-content #top-left { - border: none; float: left; margin: 0; padding: 0; width: 50%; - /* - background-color: #ffc0c0; - */ - clear: left; -} -#page-content #top-right { - border: none; float: right; margin: 0; padding: 0; width: 50%; - /* - background-color: #c0ffc0; - */ - clear: right; -} - -/* top-bottom divider - runs the entire width to ensure - * bottom boxes start at the same y - */ -#page-content #content-divider { - border: none; float: none; margin: 0; padding: 0; width: 100%; - /* - background-color: #c0c0c0; - */ - clear: both; -} - -#page-content #bottom-left { - border: none; float: left; margin: 0; padding: 0; width: 50%; - /* - background-color: #ffffc0; - */ - clear: left; -} -#page-content #bottom-right { - border: none; float: right; margin: 0; padding: 0; width: 50%; - /* - background-color: #c0ffff; - */ - clear: right; -} - -/* - * Extension importance styles - */ -.importance-low { -} - -.importance-medium { - background-color: #ffdddd; -} - -.importance-high { - background-color: #ffffdd; -} - -.importance-new { -} - -.importance-callout { - background-color: #cccccc; -} - -#page-content #content-header H4, .page-description { - text-align : left; - margin-right : 10px; - float : none; - clear : both; -} - -#page-content #top-left > *, -#page-content #top-right > *, -#page-content #bottom-left > *, -#page-content #bottom-right > * { - display: block; -} - -#page-content * > a { - vertical-align : middle; -} - -#page-content * a img { - height : 57px; - width : 57px; - vertical-align : middle; -} - -#page-content * a .link-label { - display : block; - /* - width : 300px; - */ - position : relative; - top : -50px; - left : 60px; -} - -#page-content * a > .link-label { left: 65px; } - -#page-content * a p .text { - display : block; - /* - width : 300px; - */ - position : relative; - top : -45px; - left : 53px; -} - -#page-content * a p > .text { left: 58px; } - -/* Special case for Mozilla, because the links are displayed - in 1 vertical column instead of 2 centered columns */ -#page-content * > a { width : 700px; } -#page-content * a > .link-label { width : 700px; } -#page-content * a p > .text { width : 700px; } - -#page-content * a:hover { border-right : 5px; }
\ No newline at end of file diff --git a/org.eclipse.ui.intro/themes/purpleMesh/html/standby.css b/org.eclipse.ui.intro/themes/purpleMesh/html/standby.css deleted file mode 100644 index 5aa519b2a..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/html/standby.css +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Set up general font colours, sizes, etc. Some of these will override - * settings from the shared CSS - */ -.intro-header H1 { - font-size : 15pt; -} - -#page-links a .link-label, #action-links a .link-label { - font-size : 10pt; - font-weight : 600; - color : #E5E5E5; -} - -#page-links a p .text, #action-links a p .text { - font-size : 10pt; - font-weight : 500; - color : #E5E5E5; -} - -/* - * Set up the content for the standby page. - */ -body { - min-width : 230px; - /* since IE doesn't support min-width, use expression */ - width:expression(document.body.clientWidth < 230? "230px": "auto" ); - background-image : url(../graphics/root/background.jpg); - background-repeat : no-repeat; - background-position : top left; - background-color : #7169D1; -} - -.page { - background-image : url(../graphics/root/brandmark.gif); - background-repeat : no-repeat; - background-position : bottom left; - min-width : 230px; - /* since IE doesn't support min-width, use expression */ - width:expression(document.body.clientWidth < 230? "230px": "auto" ); - min-height : 610px; - height : 100%; - height : expression(document.body.clientHeight < 450? "450px": "100%" ); -} - -/* - * Set up the navigation bar. It should be centered in the middle - * of the page - */ - -#links-background { - width : 100%; - margin-top : 10%; - margin-bottom : auto; - text-align : center; -} - -#page-links a { - display : block; - width : 220px; - text-align : left; - margin-left : auto; - margin-right : auto; - margin-top : 0px; - vertical-align : top; -} -#page-links a span, #page-links a p { - display : block; - width : 160px; - margin : 0px; - padding : 0px; -} - -#page-links a .link-label { - position : relative; - left : 60px; - top : -50px; -} - -#page-links a p .text { - position : relative; - left : 60px; - top : -50px; - -} - -#page-links a .content-img { - visibility: hidden; -} - -#page-links a img { - height : 52px; - width : 52px; - vertical-align : middle; -} - -#page-links a:hover, -#page-links a:focus, -#page-links a:active { border : 0px; } - -#page-links a:hover p, -#page-links a:focus p, -#page-links a:active p { margin : 0px; padding : 0px; } - -#action-links a { visibility: hidden; } - -/* properties for each of the page-links */ -a#overview img { background-image : url(../graphics/icons/etool/overview48.gif); } -a#overview:hover img, -a#overview:focus img, -a#overview:active img { background-image : url(../graphics/icons/ctool/overview48.gif); } - -a#tutorials img { background-image : url(../graphics/icons/etool/tutorials48.gif); } -a#tutorials:hover img, -a#tutorials:focus img, -a#tutorials:active img { background-image : url(../graphics/icons/ctool/tutorials48.gif); } - -a#samples img { background-image : url(../graphics/icons/etool/samples48.gif); } -a#samples:hover img, -a#samples:focus img, -a#samples:active img { background-image : url(../graphics/icons/ctool/samples48.gif); } - -a#whatsnew img { background-image : url(../graphics/icons/etool/whatsnew48.gif); } -a#whatsnew:hover img, -a#whatsnew:focus img, -a#whatsnew:active img { background-image : url(../graphics/icons/ctool/whatsnew48.gif); } - -a#workbench img { background-image : url(../graphics/icons/etool/wb48.gif); } -a#workbench:hover img, -a#workbench:focus img, -a#workbench:active img { background-image : url(../graphics/icons/ctool/wb48.gif); } - diff --git a/org.eclipse.ui.intro/themes/purpleMesh/html/tutorials.css b/org.eclipse.ui.intro/themes/purpleMesh/html/tutorials.css deleted file mode 100644 index cdef051d1..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/html/tutorials.css +++ /dev/null @@ -1,92 +0,0 @@ -body { - background-image : url(../graphics/contentpage/tutorials_wtr.jpg); -} - -/* show the "selected" image for this page */ -#navigation-links a#tutorials img, #navigation-links a#tutorials:hover img { background-image : url(../graphics/icons/ctool/tutorials48sel.gif); } - -/* - * Set up the content of the tutorials page into two - * columns that are centered in the page - */ - - -/* a group of tutorial links */ -.tutorials-group { - /* To center in Moz (have to use text-align for IE) */ - margin-left : auto; - margin-right : auto; - /* - width : 750px; - */ - margin-bottom : 30px; - float : none; - clear : both; - text-align : left; -} - -#top-left > .tutorials-group *, -#top-right > .tutorials-group *, -#bottom-left > .tutorials-group *, -#bottom-right > .tutorials-group * { - display: block; -} - -.tutorials-link { -/* - width : 360px; - */ - text-align : left; - margin-left : 5px; - margin-right : 5px; - margin-top : 10px; - margin-bottom : -20px; - vertical-align : top; -} - -.tutorials-group > .tutorials-link { - float : left; - height : 150px; - vertical-align : middle; -} - - -.tutorials-link img { - height : 57px; - width : 57px; - vertical-align : middle; -} - -.tutorials-group h4 { - float : none; - clear : both; -} - -p #group-description { - padding-bottom : 10px; - float : none; - clear : both; -} - -.tutorials-link .link-label { - display : block; - /* - width : 300px; - */ - position : relative; - top : -50px; - left : 60px; -} - - -.tutorials-link p .text { - display : block; - /* - width : 300px; - */ - position : relative; - top : -45px; - left : 53px; -} - -.tutorials-link:hover { border-right : 0px; } diff --git a/org.eclipse.ui.intro/themes/purpleMesh/html/whatsnew.css b/org.eclipse.ui.intro/themes/purpleMesh/html/whatsnew.css deleted file mode 100644 index ffec63c4c..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/html/whatsnew.css +++ /dev/null @@ -1,123 +0,0 @@ -body { - background-image : url(../graphics/contentpage/whatsnew_wtr.jpg); -} - -/* show the "selected" image for this page */ -#navigation-links a#news img, #navigation-links a#news:hover img { background-image : url(../graphics/icons/ctool/whatsnew48sel.gif); } - -/* - * Set up the content of the Whats New page to be displayed in - * two columns that are centered in the middle of the page. - */ - -#noteworthy-links { - text-align : left; - width : 760px; - /* To center in Moz (have to use text-align for IE) */ - margin: 0px auto; -} - -#noteworthy-links a { - width : 370px; - text-align : left; - margin-left : 5px; - margin-right : 5px; - margin-top : 5px; - margin-bottom : -20px; - vertical-align : top; -} - -#noteworthy-links > a { vertical-align : middle; } - -#noteworthy-links a img { - height : 57px; - width : 57px; - vertical-align : middle; -} - -#noteworthy-links a .link-label { - display : block; - width : 300px; - position : relative; - top : -50px; - left : 60px; -} - -#noteworthy-links a > .link-label { left: 65px; } - -#noteworthy-links a p .text { - display : block; - width : 300px; - position : relative; - top : -45px; - left : 53px; -} - -#noteworthy-links a p > .text { left: 58px; } - -/* Special case for Mozilla, because the links are displayed - in 1 vertical column instead of 2 centered columns */ -#noteworthy-links > a { width : 700px; } -#noteworthy-links a > .link-label { width : 700px; } -#noteworthy-links a p > .text { width : 700px; } - -#noteworthy-links a:hover { border-right : 5px; } - -#noteworthy-links a img { background-image : url(../graphics/icons/obj48/new_obj.gif); } -#noteworthy-links a:hover img { background-image : url(../graphics/icons/obj48/newhov_obj.gif); } - - -#news-links { - text-align : left; - width : 760px; - /* To center in Moz (have to use text-align for IE) */ - margin: 0px auto; -} - -#news-links a { - width : 370px; - text-align : left; - margin-left : 5px; - margin-right : 5px; - margin-top : 5px; - margin-bottom : -20px; - vertical-align : top; -} - -#news-links > a { vertical-align : middle; } - -#news-links a img { - height : 57px; - width : 57px; - vertical-align : middle; -} - -#news-links a .link-label { - display : block; - width : 300px; - position : relative; - top : -50px; - left : 60px; -} - -#news-links a > .link-label { left: 65px; } - -#news-links a p .text { - display : block; - width : 300px; - position : relative; - top : -45px; - left : 53px; -} - -#news-links a p > .text { left: 58px; } - -/* Special case for Mozilla, because the links are displayed - in 1 vertical column instead of 2 centered columns */ -#news-links > a { width : 700px; } -#news-links a > .link-label { width : 700px; } -#news-links a p > .text { width : 700px; } - -#news-links a:hover { border-right : 5px; } - - diff --git a/org.eclipse.ui.intro/themes/purpleMesh/preview.png b/org.eclipse.ui.intro/themes/purpleMesh/preview.png Binary files differdeleted file mode 100644 index 8316502a4..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/preview.png +++ /dev/null diff --git a/org.eclipse.ui.intro/themes/purpleMesh/swt/firststeps.properties b/org.eclipse.ui.intro/themes/purpleMesh/swt/firststeps.properties deleted file mode 100644 index cc62a3453..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/swt/firststeps.properties +++ /dev/null @@ -1,3 +0,0 @@ -firststeps.page-content.layout.ncolumns = 2 -firststeps.page-content.bottom.layout.colspan = 2 -firstseps.subtitle-id = firststeps/page-content/page-title diff --git a/org.eclipse.ui.intro/themes/purpleMesh/swt/migrate.properties b/org.eclipse.ui.intro/themes/purpleMesh/swt/migrate.properties deleted file mode 100644 index a45e8d993..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/swt/migrate.properties +++ /dev/null @@ -1,3 +0,0 @@ -migrate.page-content.layout.ncolumns = 2 -migrate.page-content.bottom.layout.colspan = 2 -migrate.subtitle-id = migrate/page-content/page-title diff --git a/org.eclipse.ui.intro/themes/purpleMesh/swt/overview.properties b/org.eclipse.ui.intro/themes/purpleMesh/swt/overview.properties deleted file mode 100644 index 89a574dc8..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/swt/overview.properties +++ /dev/null @@ -1,6 +0,0 @@ - -overview.page-content.layout.ncolumns = 2 -overview.page-content.bottom.layout.colspan = 2 - -overview.subtitle-id = overview/page-content/page-title -overview.description-id = overview/page-content/page-description
\ No newline at end of file diff --git a/org.eclipse.ui.intro/themes/purpleMesh/swt/root.properties b/org.eclipse.ui.intro/themes/purpleMesh/swt/root.properties deleted file mode 100644 index 49243e5d7..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/swt/root.properties +++ /dev/null @@ -1,29 +0,0 @@ -theme=true -root.links-background.page-links.overview.link-icon = ../graphics/icons/etool/overview72.gif -root.links-background.page-links.tutorials.link-icon = ../graphics/icons/etool/tutorials72.gif -root.links-background.page-links.samples.link-icon= ../graphics/icons/etool/samples72.gif -root.links-background.page-links.whatsnew.link-icon = ../graphics/icons/etool/whatsnew72.gif -root.action-links.workbench.link-icon = ../graphics/icons/etool/wb48.gif - -root.links-background.page-links.overview.hover-icon = ../graphics/icons/ctool/overview72.gif -root.links-background.page-links.tutorials.hover-icon = ../graphics/icons/ctool/tutorials72.gif -root.links-background.page-links.samples.hover-icon = ../graphics/icons/ctool/samples72.gif -root.links-background.page-links.whatsnew.hover-icon = ../graphics/icons/ctool/whatsnew72.gif -root.action-links.workbench.hover-icon = ../graphics/icons/ctool/wb48.gif - - -root.links-background.page-links.overview.small-link-icon = ../graphics/icons/etool/overview48.gif -root.links-background.page-links.tutorials.small-link-icon = ../graphics/icons/etool/tutorials48.gif -root.links-background.page-links.samples.small-link-icon = ../graphics/icons/etool/samples48.gif -root.links-background.page-links.whatsnew.small-link-icon = ../graphics/icons/etool/whatsnew48.gif -root.action-links.workbench.small-link-icon = ../graphics/icons/etool/wb48.gif - -root.links-background.page-links.overview.small-hover-icon = ../graphics/icons/ctool/overview48.gif -root.links-background.page-links.tutorials.small-hover-icon = ../graphics/icons/ctool/tutorials48.gif -root.links-background.page-links.samples.small-hover-icon = ../graphics/icons/ctool/samples48.gif -root.links-background.page-links.whatsnew.small-hover-icon = ../graphics/icons/ctool/whatsnew48.gif -root.action-links.workbench.small-hover-icon = ../graphics/icons/ctool/wb48.gif - -root.layout.ncolumns = 1 -root.links-background.page-links.layout.hspacing = 40 -root.layout.vspacing = 35 diff --git a/org.eclipse.ui.intro/themes/purpleMesh/swt/samples.properties b/org.eclipse.ui.intro/themes/purpleMesh/swt/samples.properties deleted file mode 100644 index fbbe9c49b..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/swt/samples.properties +++ /dev/null @@ -1,8 +0,0 @@ - -samples.page-content.layout.vspacing = 40 -samples.page-content.layout.ncolumns = 2 -samples.page-content.bottom.layout.colspan = 2 - -description-style-id = group-description -samples.subtitle-id = samples/page-content/page-title -samples.description-id = samples/page-content/page-description
\ No newline at end of file diff --git a/org.eclipse.ui.intro/themes/purpleMesh/swt/standby.properties b/org.eclipse.ui.intro/themes/purpleMesh/swt/standby.properties deleted file mode 100644 index 940b189fa..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/swt/standby.properties +++ /dev/null @@ -1,17 +0,0 @@ -theme=true -standby.links-background.page-links.overview.link-icon = ../graphics/icons/etool/overview72.gif -standby.links-background.page-links.tutorials.link-icon = ../graphics/icons/etool/tutorials72.gif -standby.links-background.page-links.samples.link-icon= ../graphics/icons/etool/samples72.gif -standby.links-background.page-links.news.link-icon = ../graphics/icons/etool/whatsnew72.gif - - -standby.links-background.page-links.overview.hover-icon = ../graphics/icons/ctool/overview72.gif -standby.links-background.page-links.tutorials.hover-icon = ../graphics/icons/ctool/tutorials72.gif -standby.links-background.page-links.samples.hover-icon = ../graphics/icons/ctool/samples72.gif -standby.links-background.page-links.news.hover-icon = ../graphics/icons/ctool/whatsnew72.gif - - -standby.links-background.page-links.layout.vspacing = 30 -standby.layout.vspacing = 35 -standby.show-link-description = false -standby.show-home-page-navigation = false
\ No newline at end of file diff --git a/org.eclipse.ui.intro/themes/purpleMesh/swt/tutorials.properties b/org.eclipse.ui.intro/themes/purpleMesh/swt/tutorials.properties deleted file mode 100644 index de1d07215..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/swt/tutorials.properties +++ /dev/null @@ -1,7 +0,0 @@ - -tutorials.page-content.layout.vspacing = 40 -tutorials.page-content.layout.ncolumns = 2 -tutorials.page-content.bottom.layout.colspan = 2 - -tutorials.subtitle-id = tutorials/page-content/page-title -tutorials.description-id = tutorials/page-content/page-description
\ No newline at end of file diff --git a/org.eclipse.ui.intro/themes/purpleMesh/swt/webresources.properties b/org.eclipse.ui.intro/themes/purpleMesh/swt/webresources.properties deleted file mode 100644 index 2d8589fec..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/swt/webresources.properties +++ /dev/null @@ -1,6 +0,0 @@ - -webresources.page-content.layout.vspacing = 40 -webresources.page-content.layout.ncolumns = 2 -webresources.page-content.bottom.layout.colspan = 2 - -webresources.subtitle-id = news/page-content/page-title diff --git a/org.eclipse.ui.intro/themes/purpleMesh/swt/whatsnew.properties b/org.eclipse.ui.intro/themes/purpleMesh/swt/whatsnew.properties deleted file mode 100644 index 2a732e2f9..000000000 --- a/org.eclipse.ui.intro/themes/purpleMesh/swt/whatsnew.properties +++ /dev/null @@ -1,9 +0,0 @@ -theme = true -whatsnew.page-content.layout.vspacing = 40 -whatsnew.page-content.layout.ncolumns = 2 -whatsnew.page-content.bottom.layout.colspan = 2 - -whatsnew.link-icon = ../graphics/icons/obj48/new_obj.gif -whatsnew.hover-icon = ../graphics/icons/obj48/newhov_obj.gif - -whatsnew.subtitle-id = whatsnew/page-content/page-title diff --git a/org.eclipse.ui.intro/universal/introContent.xml b/org.eclipse.ui.intro/universal/introContent.xml deleted file mode 100644 index 7dada35ee..000000000 --- a/org.eclipse.ui.intro/universal/introContent.xml +++ /dev/null @@ -1,255 +0,0 @@ -<?xml version="1.0" encoding="utf-8" ?> -<!-- - A content file for the Universal Welcome ---> -<introContent> - <!-- Root page --> - <page id="root" alt-style="$theme$/swt/root.properties" style="$theme$/html/root.css" style-id="page"> - <title style-id="intro-header">$introTitle$</title> - <group id="links-background"> - <group id="page-links" computed="true"/> - </group> - <group id="action-links"> - <link url="http://org.eclipse.ui.intro/switchToLaunchBar" label="Workbench" id="workbench"> - <img id="workbench_img" style-id="content-img" alt="Go to the workbench"> - </img> - <text>Go to the workbench</text> - </link> - </group> - <group id="branding" style-id="branding" bgImage="$introBrandingImage$"> - </group> - <!-- General purpose groups for adding additional content --> - <group id="extra-group1" filteredFrom="swt"><anchor id="anchor"/></group> - <group id="extra-group2" filteredFrom="swt"><anchor id="anchor"/></group> - <group id="extra-group3" filteredFrom="swt"><anchor id="anchor"/></group> - <group id="extra-group4" filteredFrom="swt"><anchor id="anchor"/></group> - <group id="extra-group5" filteredFrom="swt"><anchor id="anchor"/></group> - </page> - - <!-- Standby page --> - <page id="standby" alt-style="$theme$/swt/standby.properties" style="$theme$/html/standby.css" style-id="page"> - <title style-id="intro-header">$introTitle$</title> - <group id="links-background"> - <group id="page-links" computed="true"> - </group> - </group> - <group id="action-links"> - <link url="http://org.eclipse.ui.intro/switchToLaunchBar" label="Workbench" id="workbench"> - <img id="workbench_img" style-id="content-img" alt="Go to the workbench"> - </img> - <text>Go to the workbench</text> - </link> - </group> - <group id="branding" style-id="branding" bgImage="$introBrandingImage$"> - </group> - <group id="extra-group1" filteredFrom="swt"><anchor id="anchor"/></group> - <group id="extra-group2" filteredFrom="swt"><anchor id="anchor"/></group> - <group id="extra-group3" filteredFrom="swt"><anchor id="anchor"/></group> - </page> - - <!-- Overview page --> - <page id="overview" style="$theme$/html/overview.css" alt-style="$theme$/swt/overview.properties" style-id="page"> - <title style-id="intro-header">$introTitle$</title> - <group id="extra-group1" filteredFrom="swt"/> - <group id="navigation-links" filteredFrom="swt"> - <group id="page-links" computed="true"> - </group> - <group id="action-links"> - <group id="customize" computed="true"/> - <link url="http://org.eclipse.ui.intro/switchToLaunchBar" label="Workbench" id="workbench"> - <text>Go to the workbench</text> - </link> - </group> - </group> - <group id="page-content"> - <group id="content-header" label="OVERVIEW" filteredFrom="swt"> - </group> - <text style-id="page-title" id="page-title" filteredFrom="html">OVERVIEW</text> - <text style-id="page-description" id="page-description">Eclipse is a kind of universal tool platform - an open extensible IDE for anything and nothing in particular. It provides a feature-rich development environment that allows the developer to efficiently create tools that integrate seamlessly into the Eclipse Platform.</text> - <group id="top-left" computed="true"/> - <group id="top-right" computed="true"/> - <group id="content-divider"/> - <group id="bottom-left" computed="true"/> - <group id="bottom-right" computed="true"/> - </group> - <group id="extra-group2" filteredFrom="swt"><anchor id="anchor"/></group> - <group id="extra-group3" filteredFrom="swt"><anchor id="anchor"/></group> - <group id="extra-group4" filteredFrom="swt"><anchor id="anchor"/></group> - </page> - - <!-- Tutorials page --> - <page id="tutorials" style="$theme$/html/tutorials.css" alt-style="$theme$/swt/tutorials.properties" style-id="page"> - <title style-id="intro-header">$introTitle$</title> - <group id="extra-group1" filteredFrom="swt"/> - <group id="navigation-links" filteredFrom="swt"> - <group id="page-links" computed="true"> - </group> - <group id="action-links"> - <group id="customize" computed="true"/> - <link url="http://org.eclipse.ui.intro/switchToLaunchBar" label="Workbench" id="workbench"> - <text>Go to the workbench</text> - </link> - </group> - </group> - <group id="page-content"> - <group id="content-header" label="TUTORIALS" filteredFrom="swt"> - </group> - <text style-id="page-title" id="page-title" filteredFrom="html">TUTORIALS</text> - <text style-id="page-description" id="page-description">Learn how to be productive using Eclipse by completing end-to-end tutorials that will guide you along the way.</text> - <group id="top-left" computed="true"/> - <group id="top-right" computed="true"/> - <group id="content-divider"/> - <group id="bottom-left" computed="true"/> - <group id="bottom-right" computed="true"/> - </group> - <group id="extra-group2" filteredFrom="swt"><anchor id="anchor"/></group> - <group id="extra-group3" filteredFrom="swt"><anchor id="anchor"/></group> - <group id="extra-group4" filteredFrom="swt"><anchor id="anchor"/></group> - </page> - - <!-- Samples page --> - <page id="samples" style="$theme$/html/samples/samples.css" alt-style="$theme$/swt/samples.properties" style-id="page"> - <title style-id="intro-header">$introTitle$</title> - <group id="extra-group1" filteredFrom="swt"/> - <group id="navigation-links" filteredFrom="swt"> - <group id="page-links" computed="true"> - </group> - <group id="action-links"> - <group id="customize" computed="true"/> - <link url="http://org.eclipse.ui.intro/switchToLaunchBar" label="Workbench" id="workbench"> - <text>Go to the workbench</text> - </link> - </group> - </group> - <group id="page-content"> - <group id="content-header" label="SAMPLES" filteredFrom="swt"> - </group> - <text style-id="page-title" id="page-title" filteredFrom="html">SAMPLES</text> - <text style-id="page-description" id="page-description">Explore Eclipse by installing prefabricated samples (may require Internet connection).</text> - <group id="top-left" computed="true"/> - <group id="top-right" computed="true"/> - <group id="content-divider"/> - <group id="bottom-left" computed="true"/> - <group id="bottom-right" computed="true"/> - </group> - <group id="extra-group2" filteredFrom="swt"><anchor id="anchor"/></group> - <group id="extra-group3" filteredFrom="swt"><anchor id="anchor"/></group> - <group id="extra-group4" filteredFrom="swt"><anchor id="anchor"/></group> - </page> - - <!-- What's New page --> - <page id="whatsnew" style="$theme$/html/whatsnew.css" alt-style="$theme$/swt/whatsnew.properties" style-id="page"> - <title style-id="intro-header">$introTitle$</title> - <group id="extra-group1" filteredFrom="swt"/> - <group id="navigation-links" filteredFrom="swt"> - <group id="page-links" computed="true"> - </group> - <group id="action-links"> - <group id="customize" computed="true"/> - <link url="http://org.eclipse.ui.intro/switchToLaunchBar" label="Workbench" id="workbench"> - <text>Go to the workbench</text> - </link> - </group> - </group> - <group id="page-content"> - <group id="content-header" label="WHAT'S NEW" filteredFrom="swt"> - </group> - <text style-id="page-title" id="page-title" filteredFrom="html">WHAT'S NEW</text> - <group id="top-left" computed="true"/> - <group id="top-right" computed="true"/> - <group id="content-divider"/> - <group id="bottom-left" computed="true"/> - <group id="bottom-right" computed="true"/> - </group> - <group id="extra-group2" filteredFrom="swt"><anchor id="anchor"/></group> - <group id="extra-group3" filteredFrom="swt"><anchor id="anchor"/></group> - <group id="extra-group4" filteredFrom="swt"><anchor id="anchor"/></group> - </page> - - <!-- First Steps page --> - <page id="firststeps" style="$theme$/html/firststeps.css" alt-style="$theme$/swt/firststeps.properties" style-id="page"> - <title style-id="intro-header">$introTitle$</title> - <group id="extra-group1" filteredFrom="swt"/> - <group id="navigation-links" filteredFrom="swt"> - <group id="page-links" computed="true"> - </group> - <group id="action-links"> - <group id="customize" computed="true"/> - <link url="http://org.eclipse.ui.intro/switchToLaunchBar" label="Workbench" id="workbench"> - <text>Go to the workbench</text> - </link> - </group> - </group> - <group id="page-content"> - <group id="content-header" label="FIRST STEPS" filteredFrom="swt"> - </group> - <text style-id="page-title" id="page-title" filteredFrom="html">FIRST STEPS</text> - <group id="top-left" computed="true"/> - <group id="top-right" computed="true"/> - <group id="content-divider"/> - <group id="bottom-left" computed="true"/> - <group id="bottom-right" computed="true"/> - </group> - <group id="extra-group2" filteredFrom="swt"><anchor id="anchor"/></group> - <group id="extra-group3" filteredFrom="swt"><anchor id="anchor"/></group> - <group id="extra-group4" filteredFrom="swt"><anchor id="anchor"/></group> - </page> - - <!-- Web resources page --> - <page id="webresources" style="$theme$/html/webresources.css" alt-style="$theme$/swt/webresources.properties" style-id="page"> - <title style-id="intro-header">$introTitle$</title> - <group id="navigation-links" filteredFrom="swt"> - <group id="page-links" computed="true"> - </group> - <group id="action-links"> - <group id="customize" computed="true"/> - <link url="http://org.eclipse.ui.intro/switchToLaunchBar" label="Workbench" id="workbench"> - <text>Go to the workbench</text> - </link> - </group> - </group> - <group id="page-content"> - <group id="content-header" label="WEB RESOURCES" filteredFrom="swt"> - </group> - <text style-id="page-title" id="page-title" filteredFrom="html">WEB RESOURCE</text> - <group id="top-left" computed="true"/> - <group id="top-right" computed="true"/> - <group id="content-divider"/> - <group id="bottom-left" computed="true"/> - <group id="bottom-right" computed="true"/> - </group> - <group id="extra-group2" filteredFrom="swt"><anchor id="anchor"/></group> - <group id="extra-group3" filteredFrom="swt"><anchor id="anchor"/></group> - <group id="extra-group4" filteredFrom="swt"><anchor id="anchor"/></group> - </page> - - - <!-- Migrate page --> - <page id="migrate" style="$theme$/html/migrate.css" alt-style="$theme$/swt/migrate.properties" style-id="page"> - <title style-id="intro-header">$introTitle$</title> - <group id="extra-group1" filteredFrom="swt"/> - <group id="navigation-links" filteredFrom="swt"> - <group id="page-links" computed="true"> - </group> - <group id="action-links"> - <group id="customize" computed="true"/> - <link url="http://org.eclipse.ui.intro/switchToLaunchBar" label="Workbench" id="workbench"> - <text>Go to the workbench</text> - </link> - </group> - </group> - <group id="page-content"> - <group id="content-header" label="MIGRATE" filteredFrom="swt"> - </group> - <text style-id="page-title" id="page-title" filteredFrom="html">MIGRATE</text> - <group id="top-left" computed="true"/> - <group id="top-right" computed="true"/> - <group id="content-divider"/> - <group id="bottom-left" computed="true"/> - <group id="bottom-right" computed="true"/> - </group> - <group id="extra-group2" filteredFrom="swt"><anchor id="anchor"/></group> - <group id="extra-group3" filteredFrom="swt"><anchor id="anchor"/></group> - <group id="extra-group4" filteredFrom="swt"><anchor id="anchor"/></group> - </page> -</introContent> |