krysalis-version/src/java/org/krysalis/version/eclipse/plugin VersionPlugin.java,1.2,1.3

[email protected]
Newsgroups gmane.comp.krysalis.sandbox
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/krysalis-version/src/java/org/krysalis/version/eclipse/plugin
In directory sc8-pr-cvs1:/tmp/cvs-serv18457/src/java/org/krysalis/version/eclipse/plugin

Modified Files:
	VersionPlugin.java 
Log Message:


Index: VersionPlugin.java
===================================================================
RCS file: /cvsroot/metamorphosis/krysalis-version/src/java/org/krysalis/version/eclipse/plugin/VersionPlugin.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** VersionPlugin.java	18 Feb 2003 18:24:44 -0000	1.2
--- VersionPlugin.java	24 Feb 2003 22:48:34 -0000	1.3
***************
*** 15,31 ****
  import org.eclipse.ui.plugin.AbstractUIPlugin;
  
- 
  /**
   * @author Anou Manavalan
   *  main  plugin class to be used in the desktop.
   */
! public class VersionPlugin extends AbstractUIPlugin {
  	//The shared instance.
  	private static VersionPlugin plugin;
! 	
  	/**
  	 * The constructor.
  	 */
! 	public VersionPlugin(IPluginDescriptor descriptor) {
  		super(descriptor);
  		plugin = this;
--- 15,32 ----
  import org.eclipse.ui.plugin.AbstractUIPlugin;
  
  /**
   * @author Anou Manavalan
   *  main  plugin class to be used in the desktop.
   */
! public class VersionPlugin extends AbstractUIPlugin
! {
  	//The shared instance.
  	private static VersionPlugin plugin;
! 
  	/**
  	 * The constructor.
  	 */
! 	public VersionPlugin(IPluginDescriptor descriptor)
! 	{
  		super(descriptor);
  		plugin = this;
***************
*** 35,39 ****
  	 * Returns the shared instance.
  	 */
! 	public static VersionPlugin getDefault() {
  		return plugin;
  	}
--- 36,41 ----
  	 * Returns the shared instance.
  	 */
! 	public static VersionPlugin getDefault()
! 	{
  		return plugin;
  	}
***************
*** 42,62 ****
  	 * Returns the workspace instance.
  	 */
! 	public static IWorkspace getWorkspace() {
  		return ResourcesPlugin.getWorkspace();
  	}
! 	
  	/** Call this method to retrieve the currently active Workbench page.
  	  *
  	  * @return the active workbench page.
  	  */
! 	public static IWorkbenchPage getActivePage() {
  		IWorkbenchWindow window = getDefault().getWorkbench().getActiveWorkbenchWindow();
! 		if (window == null) {
  			return null;
! 		} else {
  			return window.getActivePage();
  		}
  	}
! 	
  }
  /*
--- 44,69 ----
  	 * Returns the workspace instance.
  	 */
! 	public static IWorkspace getWorkspace()
! 	{
  		return ResourcesPlugin.getWorkspace();
  	}
! 
  	/** Call this method to retrieve the currently active Workbench page.
  	  *
  	  * @return the active workbench page.
  	  */
! 	public static IWorkbenchPage getActivePage()
! 	{
  		IWorkbenchWindow window = getDefault().getWorkbench().getActiveWorkbenchWindow();
! 		if (window == null)
! 		{
  			return null;
! 		}
! 		else
! 		{
  			return window.getActivePage();
  		}
  	}
! 
  }
  /*




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.