KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > intro > IntroContentDetector


1 /*******************************************************************************
2  * Copyright (c) 2007 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  ******************************************************************************/

11
12 package org.eclipse.ui.intro;
13
14 /**
15  * An intro content detector is used when starting the Workbench to determine if
16  * new intro content is available. Since calling this method is part of the
17  * Workbench start sequence, subclasses should be implemented with care as not
18  * to introduce noticeable delay at startup. If an intro content detector
19  * reports new available content, the view part showing the content will be
20  * opened again even if the user had closed it in a previous session. Because of
21  * this, the intro view part should draw the user's attention to the new content
22  * to avoid confusion about why the intro view part was opened again without the
23  * user requesting it.
24  *
25  * @since 3.3
26  *
27  */

28 public abstract class IntroContentDetector {
29
30     /**
31      * Returns <code>true</code> if new intro content is available.
32      *
33      * @return <code>true</code> if new intro content is available
34      */

35     public abstract boolean isNewContentAvailable();
36
37 }
38
Popular Tags