Java Doc for CatalogUIPlugin.java in  » GIS » udig-1.1 » net » refractions » udig » catalog » ui » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » udig 1.1 » net.refractions.udig.catalog.ui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


net.refractions.udig.catalog.ui.CatalogUIPlugin

CatalogUIPlugin
public class CatalogUIPlugin extends AbstractUIPlugin (Code)
Lifecycle & Resource management for RegistryUI.

The CatalogUIPlugin provides access for shared images descriptors.

Example use of a shared image descriptor:

 ImageRegistry images = CatalogUIPlugin.getDefault().getImageRegistry();
 ImageDescriptor image = images.getDescriptor(ISharedImages.IMG_DATASTORE_OBJ);
 

Implementation Note

The CatalogUIPlugin delegates the following resource management tasks:
  • ResourceBundle: Policy
  • ImageDescriptors: Images
These resources are intended for use by classes within this plugin.


author:
   Jody Garnett, Refractions Research, Inc


Field Summary
final public static  StringICONS_PATH
    
final public static  StringID
    
final public static  StringPREF_OPEN_DIALOG_DIRECTORY
    

Constructor Summary
public  CatalogUIPlugin()
     The constructor.

Method Summary
public static  MutablePicoContainergetContainer()
     Gets the container for catalog ui.
public static  MutablePicoContainergetContainer(IResolve handle)
     Gets a container associated with this handle.
public static  CatalogUIPlugingetDefault()
     Returns the shared instance.
public  ImageRegistrygetImageRegistry()
    
public  ISharedImagesgetImages()
     Images instance for use with ImageConstants.
public static  booleanhasCachedTitle(IResolve resolve)
     Returns true if the title to the resolve was cached during a previous run.
public static  ImageDescriptoricon(IResolve resolve)
    
public static  ImageDescriptoricon(IResolve resolve, IProgressMonitor monitor)
    
public static  Imageimage(IResolve resolve)
     Quick and dirty image generated based on ID, this image is shared and should not be disposed.

This method does not block and can be safely used to by a LabelProvider.

public static  booleanisDebugging(String trace)
     Performs the Platform.getDebugOption true check on the provided trace

Note: ProjectUIPlugin.getDefault().isDebugging() must also be on.

public static  Stringlabel(IResolve resource)
     Quick and dirty label generation based on ID.

This method does not block and can be safely used to by a LabelProvider.

public static  voidlog(String message2, Throwable t)
     Logs the Throwable in the plugin's log.
public  voidstart(BundleContext context)
     Set up shared images.
public  voidstop(BundleContext context)
     Cleanup after shared images.
public static  voidstoreLabel(IResolve element, String text)
    
public static  Stringtitle(IResolve resource, IProgressMonitor monitor)
     Retrieve title, this is based on associated metadata (aka LayerPointInfo object).
public static  Stringtitle(IResolve resource)
     Retrive title, this is based on associated metadata (aka LayerPointInfo object).
public static  voidtrace(String message, Throwable e)
    
public static  voidtrace(String message)
    

Field Detail
ICONS_PATH
final public static String ICONS_PATH(Code)
Icons path (value "icons/")



ID
final public static String ID(Code)
The id of the plug-in



PREF_OPEN_DIALOG_DIRECTORY
final public static String PREF_OPEN_DIALOG_DIRECTORY(Code)
Preference store for the last directory open by the file selection dialog




Constructor Detail
CatalogUIPlugin
public CatalogUIPlugin()(Code)
The constructor.




Method Detail
getContainer
public static MutablePicoContainer getContainer()(Code)
Gets the container for catalog ui.

This is used by the IResourceLabel decorator to pass titles, and images between threads.

Container assocaited with the catalog ui



getContainer
public static MutablePicoContainer getContainer(IResolve handle)(Code)
Gets a container associated with this handle.

As with any container, the contents should not be assumned, etc...


Parameters:
  handle - Container associated with display of resolve



getDefault
public static CatalogUIPlugin getDefault()(Code)
Returns the shared instance. CatalogUIPlugin singleton



getImageRegistry
public ImageRegistry getImageRegistry()(Code)



getImages
public ISharedImages getImages()(Code)
Images instance for use with ImageConstants. Images for use with ImageConstants.



hasCachedTitle
public static boolean hasCachedTitle(IResolve resolve)(Code)
Returns true if the title to the resolve was cached during a previous run. In this case CatalogUIPlugin.label(IResolve) will have returned the cached title.
Parameters:
  resolve - the resolve to check for a title. true if the title to the resolve was cached during a previous run.



icon
public static ImageDescriptor icon(IResolve resolve) throws IOException(Code)



icon
public static ImageDescriptor icon(IResolve resolve, IProgressMonitor monitor) throws IOException(Code)
Create icon for provided resource, this will block!
Parameters:
  resource - ImageDescriptor for resource.
throws:
  IOException -



image
public static Image image(IResolve resolve)(Code)
Quick and dirty image generated based on ID, this image is shared and should not be disposed.

This method does not block and can be safely used to by a LabelProvider. This method does not make use of any information available via an info object (because that would require blocking and be unsafe).


See Also:   glyph
Parameters:
  resource - Image representing provided resource



isDebugging
public static boolean isDebugging(String trace)(Code)
Performs the Platform.getDebugOption true check on the provided trace

Note: ProjectUIPlugin.getDefault().isDebugging() must also be on.

  • Trace.RENDER - trace rendering progress


Parameters:
  trace - currently only RENDER is defined true if -debug is on for this plugin



label
public static String label(IResolve resource)(Code)
Quick and dirty label generation based on ID.

This method does not block and can be safely used to by a LabelProvider. This method does not make use of any title information available via an info object (because that would require blocking and be unsafe).


See Also:   title Label for provided resource



log
public static void log(String message2, Throwable t)(Code)
Logs the Throwable in the plugin's log.

This will be a user visable ERROR iff:

  • t is an Exception we are assuming it is human readable or if a message is provided


Parameters:
  message -
Parameters:
  t -



start
public void start(BundleContext context) throws Exception(Code)
Set up shared images.
See Also:   org.eclipse.ui.plugin.AbstractUIPlugin.start(org.osgi.framework.BundleContext)
Parameters:
  context -
throws:
  Exception -



stop
public void stop(BundleContext context) throws Exception(Code)
Cleanup after shared images.
See Also:   org.eclipse.ui.plugin.AbstractUIPlugin.stop(org.osgi.framework.BundleContext)
Parameters:
  context -
throws:
  Exception -



storeLabel
public static void storeLabel(IResolve element, String text) throws IOException(Code)



title
public static String title(IResolve resource, IProgressMonitor monitor) throws IOException(Code)
Retrieve title, this is based on associated metadata (aka LayerPointInfo object).

This method is *not* suitable for use with a LabelProvider, only a LabelDecorator that works in its own thread.

title, or null if not found (consider use of label( resource )



title
public static String title(IResolve resource) throws IOException(Code)
Retrive title, this is based on associated metadata (aka LayerPointInfo object).

This method is *not* suitable for use with a LabelProvider, only a LabelDecorator that works in its own thread.

title, or null if not found (consider use of label( resource )



trace
public static void trace(String message, Throwable e)(Code)
Messages that only engage if getDefault().isDebugging()

It is much prefered to do this:


 private static final String RENDERING = "net.refractions.udig.project/render/trace";
 if (ProjectUIPlugin.getDefault().isDebugging() && "true".equalsIgnoreCase(RENDERING)) {
 System.out.println("your message here");
 }
 


Parameters:
  message -
Parameters:
  e -



trace
public static void trace(String message)(Code)



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.