Java Doc for UiPlugin.java in  » GIS » udig-1.1 » net » refractions » udig » internal » 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.internal.ui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


net.refractions.udig.internal.ui.UiPlugin

UiPlugin
public class UiPlugin extends AbstractUIPlugin (Code)
The main plugin class to be used in the desktop.


Field Summary
final public static  StringDROP_ACTIONS_ID
    
final public static  StringDROP_TRANSFERS_ID
    
final public static  StringICONS_PATH
    
final public static  StringID
    
final public static  StringMAPPINGS_FILENAME
    

Constructor Summary
public  UiPlugin()
     The constructor.

Method Summary
synchronized  ImageDescriptorcreate(String id)
     Creates an image descriptor for later use.
public static  UiPlugingetDefault()
     Returns the shared instance.
public  ImagesgetImages()
     Images instance for use with ImageConstants.
public  MenuBuildergetMenuFactory()
    
public  OperationMenuFactorygetOperationMenuFactory()
    
public static  PreferencesgetUserPreferences()
     Gets preferences that are user specific.
public  StringgetVersion()
    
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  voidlog(String message2, Throwable e)
     Writes an info log in the plugin's log.
public static  ObjectlookupConfigurationObject(Class interfaceClass, IPreferenceStore store, String pluginID, String prefConstant, String xpid, String idField, String classField)
     Looks a configuration object using the preference store and extension points to locate the class and instantiate it.
public  voidstart(BundleContext context)
    
public  voidstop(BundleContext context)
    
public static  voidtrace(String traceID, Class caller, String message, Throwable e)
     Messages that only engage if getDefault().isDebugging() and the trace option traceID is true. Available trace options can be found in the Trace class.
public static  voidtrace(Class caller, String message, Throwable e)
     Adds the name of the caller class to the message.

Field Detail
DROP_ACTIONS_ID
final public static String DROP_ACTIONS_ID(Code)



DROP_TRANSFERS_ID
final public static String DROP_TRANSFERS_ID(Code)



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



ID
final public static String ID(Code)



MAPPINGS_FILENAME
final public static String MAPPINGS_FILENAME(Code)




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




Method Detail
create
synchronized ImageDescriptor create(String id)(Code)
Creates an image descriptor for later use.



getDefault
public static UiPlugin getDefault()(Code)
Returns the shared instance.



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



getMenuFactory
public MenuBuilder getMenuFactory()(Code)
Get the MenuFactory which will create the menus for this plugin The MenuFactory singleton



getOperationMenuFactory
public OperationMenuFactory getOperationMenuFactory()(Code)



getUserPreferences
public static Preferences getUserPreferences()(Code)
Gets preferences that are user specific. You don't have to worry about the preferences changes interfering with preferences of another user's workspace. preferences that are user specific
throws:
  CoreException -
throws:
  IOException -



getVersion
public String getVersion()(Code)



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



log
public static void log(String message2, Throwable e)(Code)
Writes an info log in the plugin's log.

This should be used for user level messages.




lookupConfigurationObject
public static Object lookupConfigurationObject(Class interfaceClass, IPreferenceStore store, String pluginID, String prefConstant, String xpid, String idField, String classField)(Code)
Looks a configuration object using the preference store and extension points to locate the class and instantiate it. If there is a problem, null is returned and the caller is expect to supply a default value of their own. Exceptions are not thrown, but messages will be logged. These configuration objects are typically defined in plugin_customization.ini files, and these values are loaded into the preference store. The parameter prefConstant is used to look up this value, and should be the key (prefixed by the plug-in name, net.refractions.udig.ui) used in the ini file. The returned object will either be an instances of interfaceClass or null. The parameter xpid is the extension point ID that the value specified in the ini file should point to. This extension point must contain an attribute used for an id, and an attribute used for the class which is an implementation of interfaceClass. idField indicates the name of the attribute for id, and classField indicates the name of the attribute for the class. Example: plugin_customization.ini
 net.refractions.udig.ui/workbenchConfiguration=net.refractions.udig.internal.ui.UDIGWorkbenchConfiguration
 
store: net.refractions.udig.internal.ui.UiPlugin.getPreferenceStore() (this corresponds to the first part of the key) pluginID: "net.refractions.udig.ui" prefConstant: "workbenchConfiguration"
 
 
 
 
xpid: "net.refractions.udig.ui.workbenchConfigurations" idField: "id" classField: "class" This will return an instance of net.refractions.udig.ui.WorkbenchConfiguration, or null if it cannot find one (in which case, check the logs!). Make sure to be a good developer and use constants. Also make sure to use a default implementation if this returns null! The code should not explode! TODO It would be nice to simplify this API call.
Parameters:
  interfaceClass - instance of the interface that will be instantiated and returned
Parameters:
  store - the preference store used to lookup prefConstant
Parameters:
  pluginID - the ID of the plug-in that the preference store lives
Parameters:
  prefConstant - key used in plugin_customization.ini
Parameters:
  xpid - extension point id key
Parameters:
  idField - id attribute key used in extension point
Parameters:
  classField - class attribute key used in extension point



start
public void start(BundleContext context) throws Exception(Code)
This method is called upon plug-in activation
Parameters:
  context -
throws:
  Exception -



stop
public void stop(BundleContext context) throws Exception(Code)



trace
public static void trace(String traceID, Class caller, String message, Throwable e)(Code)
Messages that only engage if getDefault().isDebugging() and the trace option traceID is true. Available trace options can be found in the Trace class. (They must also be part of the .options file)



trace
public static void trace(Class caller, String message, Throwable e)(Code)
Adds the name of the caller class to the message.
Parameters:
  caller - class of the object doing the trace.
Parameters:
  message - tracing message, may be null.
Parameters:
  e - exception, may be null.



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