Java Doc for TcPlugin.java in  » Net » Terracotta » org » terracotta » dso » 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 » Net » Terracotta » org.terracotta.dso 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.terracotta.dso.TcPlugin

TcPlugin
public class TcPlugin extends AbstractUIPlugin implements QualifiedNames,IJavaLaunchConfigurationConstants,TcPluginStatusConstants(Code)
The Terracotta plugin. The whole enchilada centers around this singleton. The primary duties of this class are to manage the configuration information associated with a Terracotta Eclipse project. Configuration information is stored as session properties in the project, which are not persistent across sessions. The config information is made up of: 1) the config file XML document 2) the parsed form of the XML document, aka the config object 3) the line length information of the config document 3) a configuration helper, used by various actions.
See Also:    loadConfiguration(IProject) When there are errors instantiating the config document, those XmlErrors are turned
See Also:   into SAXMarkers on the document, which appear as error indicators in the config document editor.
See Also:    handleXmlErrors(IFile, LineLengths, Iterator) At times, it is necessary to inspect a module to determine where
See Also:   to add annotations denoting configuration-related Java elements, such as a particular method being locked.
See Also:    inspect(ICompilationUnit). Another responsibility of this class is to launch the server using the config
See Also:   information, additional boot jar, etc.
See Also:    launchServer(IJavaProject, String, String, String) Finally, this class provides methods for updating the
See Also:   annotations used to indicate various states related to the config information, such as a field being a root.
See Also:    updateDecorators()
See Also:   org.eclipse.ui.plugin.AbstractUIPlugin
See Also:   com.terracottatech.config.TCConfigDocument
See Also:   com.terracottatech.config.TCConfigDocument.TCConfig

Inner Class :class TCNatureRemover implements IRunnableWithProgress
Inner Class :class ResourceListener implements IResourceChangeListener
Inner Class :static class DecoratorUpdateAction implements Runnable

Field Summary
final public static  TcConfigBAD_CONFIG
    
final public static  booleanDEFAULT_AUTO_START_SERVER_OPTION
    
final public static  StringDEFAULT_CONFIG_FILENAME
    
final public static  booleanDEFAULT_QUERY_RESTART_OPTION
    
final public static  StringDEFAULT_SERVER_OPTIONS
    
final public static  booleanDEFAULT_WARN_CONFIG_PROBLEMS_OPTION
    
final public static  StringPLUGIN_ID
    

Constructor Summary
public  TcPlugin()
    

Method Summary
public  voidaddConfigurationListener(IConfigurationListener listener)
    
public  voidaddTerracottaNature(IJavaProject currentProject)
    
public  voidclearConfigProblemMarkers(IProject project)
    
public  voidclearConfigProblemMarkersOfType(IProject project, String markerType)
    
public synchronized  voidclearConfigurationSessionProperties(IProject project)
    
public  voidclearSAXMarkers(IResource res)
    
public  voidcloseConfigurationEditor(IProject project)
    
public  StringconfigDocumentAsString(TcConfigDocument configDoc)
    
public  booleancontinueWithConfigProblems(IProject project)
    
public static  ImagecreateImage(String path)
    
public static  TcConfigDocumentcreateTemplateConfigDoc()
    
public  ConfigurationEditorensureConfigurationEditor(IProject project)
    
public  IFolderensureRuntimeDirectory(IProject project, IProgressMonitor monitor)
    
public  voidfileMoved(IFile file, IPath movedFromPath)
    
public  voidfileRemoved(IFile file)
    
public  voidfireAutolockChanged(IProject project, int index)
    
public  voidfireAutolocksChanged(IProject project)
    
public  voidfireBootClassChanged(IProject project, int index)
    
public  voidfireBootClassesChanged(IProject project)
    
public  voidfireClientChanged(IProject project)
    
public  voidfireConfigurationChange(IProject project)
    
public  voidfireDistributedMethodChanged(IProject project, int index)
    
public  voidfireDistributedMethodsChanged(IProject project)
    
public  voidfireExcludeRuleChanged(IProject project, int index)
    
public  voidfireExcludeRulesChanged(IProject project)
    
public  voidfireIncludeRuleChanged(IProject project, int index)
    
public  voidfireIncludeRulesChanged(IProject project)
    
public  voidfireInstrumentationRulesChanged(IProject project)
    
public  voidfireModuleChanged(IProject project, int index)
    
public  voidfireModuleRepoChanged(IProject project, int index)
    
public  voidfireModuleReposChanged(IProject project)
    
public  voidfireModulesChanged(IProject project)
    
public  voidfireNamedLockChanged(IProject project, int index)
    
public  voidfireNamedLocksChanged(IProject project)
    
public  voidfireRootChanged(IProject project, int index)
    
public  voidfireRootsChanged(IProject project)
    
public  voidfireServerChanged(IProject project, int index)
    
public  voidfireServersChanged(IProject project)
    
public  voidfireTransientFieldChanged(IProject project, int index)
    
public  voidfireTransientFieldsChanged(IProject project)
    
public  StringgetAnyServerName(IProject project)
    
public  booleangetAutoStartServerOption(IProject project)
    
public  BootClassHelpergetBootClassHelper()
    
public synchronized  TcConfiggetConfiguration(IProject project)
    
public  ConfigurationEditorgetConfigurationEditor(IProject project)
    
 ConfigurationEditor[]getConfigurationEditors(IProject project)
    
public  IFilegetConfigurationFile(IProject project)
    
public  StringgetConfigurationFilePath(IProject project)
    
public  ConfigurationHelpergetConfigurationHelper(IProject project)
    
public  LineLengthsgetConfigurationLineLengths(IProject project)
     Return the config document's line length information, which might not exist.
public static  TcPlugingetDefault()
    
public static  ImageDescriptorgetImageDescriptor(String path)
    
public  intgetJmxPort(IProject project, String name)
    
public  IPathgetLibDirPath()
    
public  IPathgetLocation()
    
public  ModulesConfigurationgetModulesConfiguration(IProject project)
    
public  StringgetPersistentProperty(IResource resource, QualifiedName name)
    
public static  StringgetPluginId()
    
public  booleangetQueryRestartOption(IProject project)
    
public  StringgetServerOptions(IProject project)
    
public  ObjectgetSessionProperty(IResource res, QualifiedName name)
    
public static  DisplaygetStandardDisplay()
    
public  booleangetWarnConfigProblemsOption(IProject project)
    
public  XmlOptionsgetXmlOptions()
    
public  voidhandleXmlErrors(IFile configFile, LineLengths lineLengths, Iterator errors)
    
public  voidhandleXmlException(IFile configFile, LineLengths lineLengths, XmlException e)
    
public  booleanhasProblemMarkers(IResource res)
    
public  booleanhasSAXMarkers(IResource res)
    
public  booleanhasTerracottaNature(IJavaElement element)
    
public  booleanhasTerracottaNature(IProject project)
    
public  voidignoreNextConfigChange()
    
public  voidinspect(ICompilationUnit cu)
    
public  booleanisBootClass(ICompilationUnit module)
    
public  booleanisBootClass(IClassFile classFile)
    
public  booleanisBootClass(IType type)
    
public  booleanisBootClass(String name)
    
public  booleanisConfigurationFileDirty(IProject project)
    
public  ILaunchlaunchServer(IJavaProject javaProject, String projectName, String serverName, IProgressMonitor monitor)
    
public  voidnotifyProjectActions(IProject project)
    
public  ConfigurationEditoropenConfigurationEditor(IProject project)
    
public  voidopenError(String msg, Throwable t)
    
public  voidopenError(String msg)
    
public  voidregisterProjectAction(IProjectAction action)
    
public  voidreloadConfiguration(IProject project)
    
public  voidremoveConfigurationListener(IConfigurationListener listener)
    
public  voidremoveTerracottaNature(IJavaProject javaProject)
    
public  voidreplaceConfigText(IProject project, String oldText, String newText)
    
public  voidsaveConfiguration(IProject project)
    
public  voidsaveConfigurationQuietly(IProject project)
    
public  voidsetAutoStartServerOption(IProject project, boolean autoStartServer)
    
public  voidsetConfigurationFileDirty(IProject project, Boolean dirty)
    
public  voidsetConfigurationFilePath(IProject project, String path)
    
public  voidsetConfigurationFromString(IProject project, String xmlText)
     Sets the new config information from the passed-in text.
public  voidsetPersistentProperty(IResource resource, QualifiedName name, String value)
    
public  voidsetQueryRestartOption(IProject project, boolean queryRestart)
    
public  voidsetServerOptions(IProject project, String opts)
    
public  voidsetSessionProperty(IResource res, QualifiedName name, Object value)
    
public  voidsetWarnConfigProblemsOption(IProject project, boolean warnConfigProblems)
    
public  voidsetup(IProject project, String configFilePath)
    
public  voidsetup(IProject project, String configFilePath, String serverOpts)
    
public  voidsetup(IFile configFile)
    
public  voidstaleProjectAdded(IProject project)
     Called when a new project is created and it has a leftover Terracotta nature.
public  voidstart(BundleContext context)
    
public  voidstop(BundleContext context)
    
public  voidupdateDecorator(String id)
    
public  voidupdateDecorators(String[] ids)
    
public  voidupdateDecorators()
    

Field Detail
BAD_CONFIG
final public static TcConfig BAD_CONFIG(Code)



DEFAULT_AUTO_START_SERVER_OPTION
final public static boolean DEFAULT_AUTO_START_SERVER_OPTION(Code)



DEFAULT_CONFIG_FILENAME
final public static String DEFAULT_CONFIG_FILENAME(Code)



DEFAULT_QUERY_RESTART_OPTION
final public static boolean DEFAULT_QUERY_RESTART_OPTION(Code)



DEFAULT_SERVER_OPTIONS
final public static String DEFAULT_SERVER_OPTIONS(Code)



DEFAULT_WARN_CONFIG_PROBLEMS_OPTION
final public static boolean DEFAULT_WARN_CONFIG_PROBLEMS_OPTION(Code)



PLUGIN_ID
final public static String PLUGIN_ID(Code)




Constructor Detail
TcPlugin
public TcPlugin()(Code)




Method Detail
addConfigurationListener
public void addConfigurationListener(IConfigurationListener listener)(Code)



addTerracottaNature
public void addTerracottaNature(IJavaProject currentProject)(Code)



clearConfigProblemMarkers
public void clearConfigProblemMarkers(IProject project)(Code)



clearConfigProblemMarkersOfType
public void clearConfigProblemMarkersOfType(IProject project, String markerType)(Code)



clearConfigurationSessionProperties
public synchronized void clearConfigurationSessionProperties(IProject project)(Code)



clearSAXMarkers
public void clearSAXMarkers(IResource res)(Code)



closeConfigurationEditor
public void closeConfigurationEditor(IProject project)(Code)



configDocumentAsString
public String configDocumentAsString(TcConfigDocument configDoc)(Code)



continueWithConfigProblems
public boolean continueWithConfigProblems(IProject project) throws CoreException(Code)



createImage
public static Image createImage(String path)(Code)



createTemplateConfigDoc
public static TcConfigDocument createTemplateConfigDoc()(Code)



ensureConfigurationEditor
public ConfigurationEditor ensureConfigurationEditor(IProject project)(Code)



ensureRuntimeDirectory
public IFolder ensureRuntimeDirectory(IProject project, IProgressMonitor monitor) throws CoreException(Code)



fileMoved
public void fileMoved(IFile file, IPath movedFromPath)(Code)



fileRemoved
public void fileRemoved(IFile file)(Code)



fireAutolockChanged
public void fireAutolockChanged(IProject project, int index)(Code)



fireAutolocksChanged
public void fireAutolocksChanged(IProject project)(Code)



fireBootClassChanged
public void fireBootClassChanged(IProject project, int index)(Code)



fireBootClassesChanged
public void fireBootClassesChanged(IProject project)(Code)



fireClientChanged
public void fireClientChanged(IProject project)(Code)



fireConfigurationChange
public void fireConfigurationChange(IProject project)(Code)



fireDistributedMethodChanged
public void fireDistributedMethodChanged(IProject project, int index)(Code)



fireDistributedMethodsChanged
public void fireDistributedMethodsChanged(IProject project)(Code)



fireExcludeRuleChanged
public void fireExcludeRuleChanged(IProject project, int index)(Code)



fireExcludeRulesChanged
public void fireExcludeRulesChanged(IProject project)(Code)



fireIncludeRuleChanged
public void fireIncludeRuleChanged(IProject project, int index)(Code)



fireIncludeRulesChanged
public void fireIncludeRulesChanged(IProject project)(Code)



fireInstrumentationRulesChanged
public void fireInstrumentationRulesChanged(IProject project)(Code)



fireModuleChanged
public void fireModuleChanged(IProject project, int index)(Code)



fireModuleRepoChanged
public void fireModuleRepoChanged(IProject project, int index)(Code)



fireModuleReposChanged
public void fireModuleReposChanged(IProject project)(Code)



fireModulesChanged
public void fireModulesChanged(IProject project)(Code)



fireNamedLockChanged
public void fireNamedLockChanged(IProject project, int index)(Code)



fireNamedLocksChanged
public void fireNamedLocksChanged(IProject project)(Code)



fireRootChanged
public void fireRootChanged(IProject project, int index)(Code)



fireRootsChanged
public void fireRootsChanged(IProject project)(Code)



fireServerChanged
public void fireServerChanged(IProject project, int index)(Code)



fireServersChanged
public void fireServersChanged(IProject project)(Code)



fireTransientFieldChanged
public void fireTransientFieldChanged(IProject project, int index)(Code)



fireTransientFieldsChanged
public void fireTransientFieldsChanged(IProject project)(Code)



getAnyServerName
public String getAnyServerName(IProject project)(Code)



getAutoStartServerOption
public boolean getAutoStartServerOption(IProject project)(Code)



getBootClassHelper
public BootClassHelper getBootClassHelper()(Code)



getConfiguration
public synchronized TcConfig getConfiguration(IProject project)(Code)



getConfigurationEditor
public ConfigurationEditor getConfigurationEditor(IProject project)(Code)



getConfigurationEditors
ConfigurationEditor[] getConfigurationEditors(IProject project)(Code)



getConfigurationFile
public IFile getConfigurationFile(IProject project)(Code)



getConfigurationFilePath
public String getConfigurationFilePath(IProject project)(Code)



getConfigurationHelper
public ConfigurationHelper getConfigurationHelper(IProject project)(Code)



getConfigurationLineLengths
public LineLengths getConfigurationLineLengths(IProject project)(Code)
Return the config document's line length information, which might not exist.



getDefault
public static TcPlugin getDefault()(Code)



getImageDescriptor
public static ImageDescriptor getImageDescriptor(String path)(Code)



getJmxPort
public int getJmxPort(IProject project, String name)(Code)



getLibDirPath
public IPath getLibDirPath()(Code)



getLocation
public IPath getLocation()(Code)



getModulesConfiguration
public ModulesConfiguration getModulesConfiguration(IProject project)(Code)



getPersistentProperty
public String getPersistentProperty(IResource resource, QualifiedName name)(Code)



getPluginId
public static String getPluginId()(Code)



getQueryRestartOption
public boolean getQueryRestartOption(IProject project)(Code)



getServerOptions
public String getServerOptions(IProject project)(Code)



getSessionProperty
public Object getSessionProperty(IResource res, QualifiedName name)(Code)



getStandardDisplay
public static Display getStandardDisplay()(Code)



getWarnConfigProblemsOption
public boolean getWarnConfigProblemsOption(IProject project)(Code)



getXmlOptions
public XmlOptions getXmlOptions()(Code)



handleXmlErrors
public void handleXmlErrors(IFile configFile, LineLengths lineLengths, Iterator errors)(Code)



handleXmlException
public void handleXmlException(IFile configFile, LineLengths lineLengths, XmlException e)(Code)



hasProblemMarkers
public boolean hasProblemMarkers(IResource res) throws CoreException(Code)



hasSAXMarkers
public boolean hasSAXMarkers(IResource res) throws CoreException(Code)



hasTerracottaNature
public boolean hasTerracottaNature(IJavaElement element)(Code)



hasTerracottaNature
public boolean hasTerracottaNature(IProject project)(Code)



ignoreNextConfigChange
public void ignoreNextConfigChange()(Code)



inspect
public void inspect(ICompilationUnit cu)(Code)



isBootClass
public boolean isBootClass(ICompilationUnit module)(Code)



isBootClass
public boolean isBootClass(IClassFile classFile)(Code)



isBootClass
public boolean isBootClass(IType type)(Code)



isBootClass
public boolean isBootClass(String name)(Code)



isConfigurationFileDirty
public boolean isConfigurationFileDirty(IProject project)(Code)



launchServer
public ILaunch launchServer(IJavaProject javaProject, String projectName, String serverName, IProgressMonitor monitor) throws CoreException(Code)



notifyProjectActions
public void notifyProjectActions(IProject project)(Code)



openConfigurationEditor
public ConfigurationEditor openConfigurationEditor(IProject project) throws PartInitException(Code)



openError
public void openError(String msg, Throwable t)(Code)



openError
public void openError(String msg)(Code)



registerProjectAction
public void registerProjectAction(IProjectAction action)(Code)



reloadConfiguration
public void reloadConfiguration(IProject project)(Code)



removeConfigurationListener
public void removeConfigurationListener(IConfigurationListener listener)(Code)



removeTerracottaNature
public void removeTerracottaNature(IJavaProject javaProject)(Code)



replaceConfigText
public void replaceConfigText(IProject project, String oldText, String newText)(Code)



saveConfiguration
public void saveConfiguration(IProject project)(Code)



saveConfigurationQuietly
public void saveConfigurationQuietly(IProject project)(Code)



setAutoStartServerOption
public void setAutoStartServerOption(IProject project, boolean autoStartServer)(Code)



setConfigurationFileDirty
public void setConfigurationFileDirty(IProject project, Boolean dirty)(Code)



setConfigurationFilePath
public void setConfigurationFilePath(IProject project, String path)(Code)



setConfigurationFromString
public void setConfigurationFromString(IProject project, String xmlText) throws IOException(Code)
Sets the new config information from the passed-in text. This is invoked by the ConfigurationEditor after the user modifies its contents manually.



setPersistentProperty
public void setPersistentProperty(IResource resource, QualifiedName name, String value)(Code)



setQueryRestartOption
public void setQueryRestartOption(IProject project, boolean queryRestart)(Code)



setServerOptions
public void setServerOptions(IProject project, String opts)(Code)



setSessionProperty
public void setSessionProperty(IResource res, QualifiedName name, Object value)(Code)



setWarnConfigProblemsOption
public void setWarnConfigProblemsOption(IProject project, boolean warnConfigProblems)(Code)



setup
public void setup(IProject project, String configFilePath)(Code)



setup
public void setup(IProject project, String configFilePath, String serverOpts)(Code)



setup
public void setup(IFile configFile)(Code)



staleProjectAdded
public void staleProjectAdded(IProject project)(Code)
Called when a new project is created and it has a leftover Terracotta nature. This can happen because it doesn't appear to be possible to do anything useful with IResourceChangeEvent.PRE_DELETE because the workspace is locked then... and after, the project doesn't exists anymore.



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



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



updateDecorator
public void updateDecorator(String id)(Code)



updateDecorators
public void updateDecorators(String[] ids)(Code)



updateDecorators
public void updateDecorators()(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.