Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 29136 Details for
Bug 113166
Provide mechanisms for adding and launching new statistical agents
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
new Extension point
perfmon-patch.txt (text/plain), 31.76 KB, created by
Erik Putrycz
on 2005-11-01 19:17:45 EST
(
hide
)
Description:
new Extension point
Filename:
MIME Type:
Creator:
Erik Putrycz
Created:
2005-11-01 19:17:45 EST
Size:
31.76 KB
patch
obsolete
>Index: plugin.xml >=================================================================== >RCS file: /home/tptp/monitoring/org.eclipse.hyades.perfmon/plugin.xml,v >retrieving revision 1.12 >diff -u -r1.12 plugin.xml >--- plugin.xml 20 Oct 2005 15:15:31 -0000 1.12 >+++ plugin.xml 2 Nov 2005 00:14:07 -0000 >@@ -24,6 +24,7 @@ > <import plugin="org.eclipse.hyades.trace.ui"/> > <import plugin="org.eclipse.hyades.statistical.ui"/> > </requires> >+ <extension-point id="statAgentInterfaceExtensions" name="Statistical Agents Interface Extensions" schema="schema/statAgentInterfaceExtensions.exsd"/> > > > <extension point="org.eclipse.debug.core.launchConfigurationTypes"> >@@ -95,7 +96,60 @@ > </view> > </perspectiveExtension> > </extension> >- >+ <extension >+ point="org.eclipse.hyades.perfmon.statAgentInterfaceExtensions"> >+ <statAgentInterfaceContribution >+ class="org.eclipse.hyades.perfmon.apache.internal.launchconfig.ApacheTabInterface" >+ extension="org.eclipse.hyades.perfmon.apache.internal.launchconfig.ApacheTabInterface" >+ id="org.eclipse.hyades.perfmon.apache.internal.launchconfig.ApacheTabInterface" >+ name="%APACHE_UI_AGENT_NAME" >+ icon="icons/full/obj16/server_obj.gif"/> >+ </extension> >+ <extension >+ point="org.eclipse.hyades.perfmon.statAgentInterfaceExtensions"> >+ <statAgentInterfaceContribution >+ class="org.eclipse.hyades.perfmon.jboss.internal.launchconfig.JBossTabInterface" >+ extension="org.eclipse.hyades.perfmon.jboss.internal.launchconfig.JBossTabInterface" >+ id="org.eclipse.hyades.perfmon.jboss.internal.launchconfig.JBossTabInterface" >+ name="%JBOSS_UI_AGENT_NAME" >+ icon="icons/full/obj16/server_obj.gif"/> >+ </extension> >+ <extension >+ point="org.eclipse.hyades.perfmon.statAgentInterfaceExtensions"> >+ <statAgentInterfaceContribution >+ class="org.eclipse.hyades.perfmon.jonas.internal.launchconfig.JonasTabInterface" >+ extension="org.eclipse.hyades.perfmon.jonas.internal.launchconfig.JonasTabInterface" >+ id="org.eclipse.hyades.perfmon.jonas.internal.launchconfig.JonasTabInterface" >+ name="%JONAS_UI_AGENT_NAME" >+ icon="icons/full/obj16/server_obj.gif"/> >+ </extension> >+ <extension >+ point="org.eclipse.hyades.perfmon.statAgentInterfaceExtensions"> >+ <statAgentInterfaceContribution >+ class="org.eclipse.hyades.perfmon.linux.internal.launchconfig.LinuxTabInterface" >+ extension="org.eclipse.hyades.perfmon.linux.internal.launchconfig.LinuxTabInterface" >+ id="org.eclipse.hyades.perfmon.linux.internal.launchconfig.LinuxTabInterface" >+ name="%LINUX_UI_AGENT_NAME" >+ icon="icons/full/obj16/host_obj.gif"/> >+ </extension> >+ <extension >+ point="org.eclipse.hyades.perfmon.statAgentInterfaceExtensions"> >+ <statAgentInterfaceContribution >+ class="org.eclipse.hyades.perfmon.mysql.internal.launchconfig.MySQLTabInterface" >+ extension="org.eclipse.hyades.perfmon.mysql.internal.launchconfig.MySQLTabInterface" >+ id="org.eclipse.hyades.perfmon.mysql.internal.launchconfig.MySQLTabInterface" >+ name="%MYSQL_UI_AGENT_NAME" >+ icon="icons/full/obj16/server_obj.gif"/> >+ </extension> >+ <extension >+ point="org.eclipse.hyades.perfmon.statAgentInterfaceExtensions"> >+ <statAgentInterfaceContribution >+ class="org.eclipse.hyades.perfmon.perfmon.internal.launchconfig.PerfmonTabInterface" >+ extension="org.eclipse.hyades.perfmon.perfmon.internal.launchconfig.PerfmonTabInterface" >+ id="org.eclipse.hyades.perfmon.perfmon.internal.launchconfig.PerfmonTabInterface" >+ name="%PERFMON_UI_AGENT_NAME" >+ icon="icons/full/obj16/host_obj.gif"/> >+ </extension> > > </plugin> > >Index: src/org/eclipse/hyades/perfmon/ImageManager.java >=================================================================== >RCS file: /home/tptp/monitoring/org.eclipse.hyades.perfmon/src/org/eclipse/hyades/perfmon/ImageManager.java,v >retrieving revision 1.4 >diff -u -r1.4 ImageManager.java >--- src/org/eclipse/hyades/perfmon/ImageManager.java 13 Jun 2005 17:11:25 -0000 1.4 >+++ src/org/eclipse/hyades/perfmon/ImageManager.java 2 Nov 2005 00:14:07 -0000 >@@ -12,7 +12,13 @@ > > package org.eclipse.hyades.perfmon; > >+import java.net.MalformedURLException; >+import java.net.URL; >+ > import org.eclipse.hyades.perfmon.utils.internal.BaseImageManager; >+import org.eclipse.hyades.ui.HyadesUIPlugin; >+import org.eclipse.jface.resource.ImageDescriptor; >+import org.osgi.framework.Bundle; > > public class ImageManager extends BaseImageManager > { >@@ -53,5 +59,40 @@ > add(FOLDER_PERFMON,IMG_AGENT); > add(FOLDER_PERFMON,IMG_FOLDER); > add(FOLDER_PERFMON,IMG_OPTIONS); >+ } >+ >+ /** >+ * Returns an ImageDescriptor whose path relative to the plugin described >+ * by <code>pluginDescriptor</code> is <code>subdirectoryAndFilename</code>. >+ * Returns <code>null</code>if no image could be found. >+ * >+ * <p>This method is convenience and only intended for use by the workbench >+ * because it explicitly uses the workbench's registry for caching/retrieving >+ * images from other extensions -- other plugins must user their own registry. >+ * This convenience method is subject to removal. >+ * >+ * <p>Note: subdirectoryAndFilename must not have any leading "." or path >+ * separators / or \ ISV's should use icons/mysample.gif and not >+ * ./icons/mysample.gif. >+ * >+ * <p>Note: This consults the plugin for extension and obtains its installation >+ * location. All requested images are assumed to be in a directory below and >+ * relative to that plugins installation directory. >+ */ >+ public static ImageDescriptor getImageDescriptorFromPlugin(Bundle pluginBundle, String subdirectoryAndFilename) >+ { >+ URL path = pluginBundle.getEntry("/"); >+ URL fullPathString = null; >+ try >+ { >+ fullPathString = new URL(path,subdirectoryAndFilename); >+ return ImageDescriptor.createFromURL(fullPathString); >+ } >+ catch (MalformedURLException e) >+ { >+ HyadesUIPlugin.logError(e); >+ } >+ >+ return null; > } > } >\ No newline at end of file >Index: src/org/eclipse/hyades/perfmon/PerfmonPlugin.java >=================================================================== >RCS file: /home/tptp/monitoring/org.eclipse.hyades.perfmon/src/org/eclipse/hyades/perfmon/PerfmonPlugin.java,v >retrieving revision 1.8 >diff -u -r1.8 PerfmonPlugin.java >--- src/org/eclipse/hyades/perfmon/PerfmonPlugin.java 30 Aug 2005 14:22:22 -0000 1.8 >+++ src/org/eclipse/hyades/perfmon/PerfmonPlugin.java 2 Nov 2005 00:14:07 -0000 >@@ -17,7 +17,9 @@ > import java.util.ResourceBundle; > > import org.eclipse.core.runtime.Platform; >+import org.eclipse.core.runtime.Status; > import org.eclipse.hyades.perfmon.utils.internal.Debugger; >+import org.eclipse.hyades.ui.HyadesUIPlugin; > import org.eclipse.ui.IWorkbench; > import org.eclipse.ui.IWorkbenchPage; > import org.eclipse.ui.PlatformUI; >@@ -29,16 +31,22 @@ > public class PerfmonPlugin extends AbstractUIPlugin > { > public static String DATACOLLECTION_NODE_ID = "org.eclipse.hyades.perfmon.datacollection"; >+ >+ public static final String PLUGIN_ID = "org.eclipse.hyades.perfmon"; //$NON-NLS-1$ >+ > public static Debugger DBG = new Debugger("org.eclipse.hyades.perfmon"); > >+ public static String EP_STATISTICAL_AGENTS_GUI = "statAgentInterfaceExtensions"; >+ > //The shared instance. > private static PerfmonPlugin plugin; > //Resource bundle. > private static ResourceBundle resourceBundle; > > public static ImageManager img = new ImageManager(); >- >+ > String infopops_id = null; >+ > > public String getInfopopsId() > { >@@ -171,6 +179,45 @@ > } > return resourceBundle; > } >+ >+ >+ /** >+ * Returns the instance of this class created by the eclipse framework. >+ * @return PermonPlugin >+ */ >+ public static PerfmonPlugin getInstance() >+ { >+ return plugin; >+ } >+ >+ /** >+ * Logs an error described by a throwable. >+ * >+ * <p>This method should be used whenever a class in this plugin >+ * has to log an error since it adheres to the global logging >+ * strategy. >+ * >+ * @param throwable >+ */ >+ public static void logError(Throwable throwable) >+ { >+ Status status = new Status(1, getID(), 0, throwable.toString(), throwable); >+ getInstance().getLog().log(status); >+ } >+ >+ /** >+ * Logs an error described by a text. >+ * >+ * <p>This method should be whenever a class in this plugin >+ * has to log an error since it adheres to the global logging >+ * strategy. >+ * >+ * @param text >+ */ >+ public static void logError(String text) >+ { >+ logError(new Throwable(text)); >+ } > > /** > * Returns the string value associate to a given key. The key is passed to >@@ -203,4 +250,13 @@ > return key; > } > } >+ >+ /** >+ * Returns this plugin's id. >+ * @return String >+ */ >+ public static String getID() >+ { >+ return PLUGIN_ID; >+ } > } >Index: src/org/eclipse/hyades/perfmon/apache/internal/launchconfig/ApacheTabInterface.java >=================================================================== >RCS file: /home/tptp/monitoring/org.eclipse.hyades.perfmon/src/org/eclipse/hyades/perfmon/apache/internal/launchconfig/ApacheTabInterface.java,v >retrieving revision 1.1 >diff -u -r1.1 ApacheTabInterface.java >--- src/org/eclipse/hyades/perfmon/apache/internal/launchconfig/ApacheTabInterface.java 2 May 2005 15:12:17 -0000 1.1 >+++ src/org/eclipse/hyades/perfmon/apache/internal/launchconfig/ApacheTabInterface.java 2 Nov 2005 00:14:07 -0000 >@@ -30,16 +30,6 @@ > String errorMessage = null; > > AgentVariable urlVar = new AgentVariable(PerfmonPlugin.getString("APACHE_UI_URL_NAME"),PerfmonPlugin.getString("APACHE_UI_URL_DESCRIPTION"),PerfmonPlugin.getString("APACHE_UI_URL_DEFAULT")); >- >- public String getUIAgentName() >- { >- return PerfmonPlugin.getString("APACHE_UI_AGENT_NAME"); >- } >- >- public Image getUIAgentImage() >- { >- return PerfmonPlugin.img.getImage(ImageManager.IMG_PERFMON_SERVER); >- } > > public String getACAgentName() > { >Index: src/org/eclipse/hyades/perfmon/common/internal/launch/AgentInterface.java >=================================================================== >RCS file: /home/tptp/monitoring/org.eclipse.hyades.perfmon/src/org/eclipse/hyades/perfmon/common/internal/launch/AgentInterface.java,v >retrieving revision 1.3 >diff -u -r1.3 AgentInterface.java >--- src/org/eclipse/hyades/perfmon/common/internal/launch/AgentInterface.java 13 Apr 2005 09:38:45 -0000 1.3 >+++ src/org/eclipse/hyades/perfmon/common/internal/launch/AgentInterface.java 2 Nov 2005 00:14:07 -0000 >@@ -14,12 +14,9 @@ > > import org.eclipse.debug.core.ILaunchConfiguration; > import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy; >-import org.eclipse.swt.graphics.Image; > > public interface AgentInterface > { >- public String getUIAgentName(); >- public Image getUIAgentImage(); > public String getACAgentName(); > public void setDefaults(ILaunchConfigurationWorkingCopy configuration); > public void initializeFrom(ILaunchConfiguration configuration); >Index: src/org/eclipse/hyades/perfmon/common/internal/launch/AgentsTab.java >=================================================================== >RCS file: /home/tptp/monitoring/org.eclipse.hyades.perfmon/src/org/eclipse/hyades/perfmon/common/internal/launch/AgentsTab.java,v >retrieving revision 1.2 >diff -u -r1.2 AgentsTab.java >--- src/org/eclipse/hyades/perfmon/common/internal/launch/AgentsTab.java 30 Mar 2005 15:46:26 -0000 1.2 >+++ src/org/eclipse/hyades/perfmon/common/internal/launch/AgentsTab.java 2 Nov 2005 00:14:07 -0000 >@@ -12,8 +12,6 @@ > > package org.eclipse.hyades.perfmon.common.internal.launch; > >-import java.util.ArrayList; >- > import org.eclipse.core.runtime.CoreException; > import org.eclipse.debug.core.ILaunchConfiguration; > import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy; >@@ -41,12 +39,13 @@ > Table agentTable; > > public static final String AGENT_NAME = "ATTR_AGENT_NAME"; >+ >+ private StatisticalAgentTabGroup group; > >- ArrayList agentList = new ArrayList(); >- >- public AgentsTab() >+ public AgentsTab(StatisticalAgentTabGroup group) > { > super(); >+ this.group = group; > HostAgentUpdater.INSTANCE.addListener(this); > this.setMessage(null); > } >@@ -59,17 +58,18 @@ > > public Image getImage() > { >+ > return PerfmonPlugin.img.getImage(ImageManager.IMG_AGENT); > } > >- private void addAgents() >+ public void addAgents() > { >- for (int i=0; i<agentList.size();i++) >+ for (int i=0; i<group.getAgents().length;i++) > { >- AgentInterface agent = (AgentInterface) agentList.get(i); >+ AgentInterface agent = group.getAgents()[i]; > TableItem item = new TableItem(agentTable, SWT.NONE); >- item.setText(agent.getUIAgentName()); >- item.setImage(agent.getUIAgentImage()); >+ item.setText(group.getAgentNames()[i]); >+ item.setImage(group.getAgentImage(i)); > item.setData(agent); > } > } >@@ -155,17 +155,7 @@ > { > return PerfmonPlugin.getString("LAUNCH_CONFIG_AGENT_TAB"); > } >- >- public void addAgent(AgentInterface agent) >- { >- agentList.add(agent); >- } >- >- public void clearAgentList() >- { >- agentList.clear(); >- } >- >+ > public void widgetSelected(SelectionEvent event) > { > TableItem item = (TableItem) event.item; >Index: src/org/eclipse/hyades/perfmon/common/internal/launch/StatisticalAgentTabGroup.java >=================================================================== >RCS file: /home/tptp/monitoring/org.eclipse.hyades.perfmon/src/org/eclipse/hyades/perfmon/common/internal/launch/StatisticalAgentTabGroup.java,v >retrieving revision 1.4 >diff -u -r1.4 StatisticalAgentTabGroup.java >--- src/org/eclipse/hyades/perfmon/common/internal/launch/StatisticalAgentTabGroup.java 2 May 2005 15:12:17 -0000 1.4 >+++ src/org/eclipse/hyades/perfmon/common/internal/launch/StatisticalAgentTabGroup.java 2 Nov 2005 00:14:07 -0000 >@@ -13,42 +13,94 @@ > package org.eclipse.hyades.perfmon.common.internal.launch; > > import java.util.ArrayList; >+import java.util.List; > >+import org.eclipse.core.runtime.IConfigurationElement; >+import org.eclipse.core.runtime.IExtension; >+import org.eclipse.core.runtime.Platform; > import org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup; > import org.eclipse.debug.ui.CommonTab; > import org.eclipse.debug.ui.ILaunchConfigurationDialog; > import org.eclipse.debug.ui.ILaunchConfigurationTab; >-import org.eclipse.hyades.perfmon.apache.internal.launchconfig.ApacheTabInterface; >-import org.eclipse.hyades.perfmon.jboss.internal.launchconfig.JBossTabInterface; >-import org.eclipse.hyades.perfmon.jonas.internal.launchconfig.JonasTabInterface; >-import org.eclipse.hyades.perfmon.linux.internal.launchconfig.LinuxTabInterface; >-import org.eclipse.hyades.perfmon.mysql.internal.launchconfig.MySQLTabInterface; >-import org.eclipse.hyades.perfmon.perfmon.internal.launchconfig.PerfmonTabInterface; >+import org.eclipse.hyades.perfmon.ImageManager; >+import org.eclipse.hyades.perfmon.PerfmonPlugin; >+import org.eclipse.hyades.ui.internal.util.UIUtil; >+import org.eclipse.jface.resource.ImageDescriptor; >+import org.eclipse.jface.resource.ImageRegistry; >+import org.eclipse.swt.graphics.Image; > > public class StatisticalAgentTabGroup extends AbstractLaunchConfigurationTabGroup > { >- public static ArrayList agentTabList = new ArrayList(); >- >- static >- { >- agentTabList.add(new PerfmonTabInterface()); >- agentTabList.add(new LinuxTabInterface()); >- agentTabList.add(new JBossTabInterface()); >- agentTabList.add(new JonasTabInterface()); >- agentTabList.add(new ApacheTabInterface()); >- agentTabList.add(new MySQLTabInterface()); >- } >- >+ >+ public StatisticalAgentTabGroup() { >+ super(); >+ loadStatAgentInterfaceList(); >+ } >+ > public static AgentInterface getInterface(String UIName) > { >- for (int i=0; i<agentTabList.size(); i++) >+ for (int i=0; i<agents.length; i++) > { >- AgentInterface inter = (AgentInterface) agentTabList.get(i); >- if (inter.getUIAgentName().equals(UIName)) >+ AgentInterface inter = agents[i]; >+ if (agentNames[i].equals(UIName)) > return inter; > } > return null; > } >+ >+ private static AgentInterface[] agents = null; >+ private static String[] agentNames = null; >+ private static Image[] agentImages = null; >+ >+ public void loadStatAgentInterfaceList() { >+ IExtension[] exts = Platform.getExtensionRegistry().getExtensionPoint(PerfmonPlugin.getID(), PerfmonPlugin.EP_STATISTICAL_AGENTS_GUI).getExtensions(); >+ List agentList = new ArrayList(); >+ List agentNamesList = new ArrayList(); >+ List agentIconsList = new ArrayList(); >+ ImageRegistry reg = PerfmonPlugin.getInstance().getImageRegistry(); >+ for (int i=0;i<exts.length;++i) { >+ IConfigurationElement[] elements = exts[i].getConfigurationElements(); >+ for (int j=0;j<elements.length;++j) { >+ if ("statAgentInterfaceContribution".equals(elements[j].getName())) { >+ //String id = elements[j].getAttribute("id"); >+ try { >+ String className = elements[j].getAttribute("class"); >+ String name = elements[j].getAttribute("name"); >+ String iconKey = elements[j].getAttribute("icon"); >+ Class classObj = Platform.getBundle(exts[i].getNamespace()).loadClass(className); >+ agentList.add(classObj.newInstance()); >+ agentNamesList.add(name); >+ Image icon = null; >+ if (iconKey == null) >+ icon = PerfmonPlugin.img.getImage(ImageManager.IMG_PERFMON_SERVER); >+ else { >+ icon = reg.get(iconKey); >+ if (icon == null){ >+ ImageDescriptor imageDescriptor = ImageManager.getImageDescriptorFromPlugin(Platform.getBundle(elements[j].getDeclaringExtension().getNamespace()), iconKey); >+ if(imageDescriptor != null) >+ reg.put(iconKey, imageDescriptor); >+ icon = reg.get(iconKey); >+ >+ } >+ } >+ >+ agentIconsList.add(icon); >+ } >+ catch (Exception e) { >+ PerfmonPlugin.logError(e); >+ } >+ >+ } >+ } >+ } >+ agents = new AgentInterface[agentList.size()]; >+ agentList.toArray(agents); >+ agentNames = new String[agentList.size()]; >+ agentNamesList.toArray(agentNames); >+ agentImages = new Image[agentList.size()]; >+ agentIconsList.toArray(agentImages); >+ } >+ > > public void createTabs(ILaunchConfigurationDialog dialog, String mode) > { >@@ -56,12 +108,8 @@ > > tabs.add(new HostTab()); > >- AgentsTab agentstab = new AgentsTab(); >+ AgentsTab agentstab = new AgentsTab(this); > AgentInfoTab agentInfoTab = new AgentInfoTab(); >- for (int i=0; i<agentTabList.size(); i++) >- { >- agentstab.addAgent((AgentInterface) agentTabList.get(i)); >- } > > tabs.add(agentstab); > tabs.add(agentInfoTab); >@@ -77,4 +125,20 @@ > public void dispose() > { > } >+ >+ >+ public String[] getAgentNames() { >+ return agentNames; >+ } >+ >+ >+ public AgentInterface[] getAgents() { >+ if (agents == null) loadStatAgentInterfaceList(); >+ return agents; >+ } >+ >+ >+ public Image getAgentImage(int i) { >+ return agentImages[i]; >+ } > } >Index: src/org/eclipse/hyades/perfmon/jboss/internal/launchconfig/JBossTabInterface.java >=================================================================== >RCS file: /home/tptp/monitoring/org.eclipse.hyades.perfmon/src/org/eclipse/hyades/perfmon/jboss/internal/launchconfig/JBossTabInterface.java,v >retrieving revision 1.5 >diff -u -r1.5 JBossTabInterface.java >--- src/org/eclipse/hyades/perfmon/jboss/internal/launchconfig/JBossTabInterface.java 14 Jun 2005 16:30:09 -0000 1.5 >+++ src/org/eclipse/hyades/perfmon/jboss/internal/launchconfig/JBossTabInterface.java 2 Nov 2005 00:14:07 -0000 >@@ -32,16 +32,6 @@ > > AgentVariable hostVar = new AgentVariable(PerfmonPlugin.getString("JBOSS_UI_HOST_NAME"),PerfmonPlugin.getString("JBOSS_UI_HOST_DESCRIPTION"),PerfmonPlugin.getString("JBOSS_UI_HOST_DEFAULT")); > AgentVariable portVar = new AgentVariable(PerfmonPlugin.getString("JBOSS_UI_PORT_NAME"),PerfmonPlugin.getString("JBOSS_UI_PORT_DESCRIPTION"),new Integer(PerfmonPlugin.getString("JBOSS_UI_PORT_DEFAULT"))); >- >- public String getUIAgentName() >- { >- return PerfmonPlugin.getString("JBOSS_UI_AGENT_NAME"); >- } >- >- public Image getUIAgentImage() >- { >- return PerfmonPlugin.img.getImage(ImageManager.IMG_PERFMON_SERVER); >- } > > public String getACAgentName() > { >Index: src/org/eclipse/hyades/perfmon/jonas/internal/launchconfig/JonasTabInterface.java >=================================================================== >RCS file: /home/tptp/monitoring/org.eclipse.hyades.perfmon/src/org/eclipse/hyades/perfmon/jonas/internal/launchconfig/JonasTabInterface.java,v >retrieving revision 1.5 >diff -u -r1.5 JonasTabInterface.java >--- src/org/eclipse/hyades/perfmon/jonas/internal/launchconfig/JonasTabInterface.java 14 Jun 2005 16:30:09 -0000 1.5 >+++ src/org/eclipse/hyades/perfmon/jonas/internal/launchconfig/JonasTabInterface.java 2 Nov 2005 00:14:07 -0000 >@@ -34,16 +34,6 @@ > AgentVariable portVar = new AgentVariable(PerfmonPlugin.getString("JONAS_UI_PORT_NAME"),PerfmonPlugin.getString("JONAS_UI_PORT_DESCRIPTION"),new Integer(PerfmonPlugin.getString("JONAS_UI_PORT_DEFAULT"))); > > String errorMessage; >- >- public String getUIAgentName() >- { >- return PerfmonPlugin.getString("JONAS_UI_AGENT_NAME"); >- } >- >- public Image getUIAgentImage() >- { >- return PerfmonPlugin.img.getImage(ImageManager.IMG_PERFMON_SERVER); >- } > > public String getACAgentName() > { >Index: src/org/eclipse/hyades/perfmon/linux/internal/launchconfig/LinuxTabInterface.java >=================================================================== >RCS file: /home/tptp/monitoring/org.eclipse.hyades.perfmon/src/org/eclipse/hyades/perfmon/linux/internal/launchconfig/LinuxTabInterface.java,v >retrieving revision 1.5 >diff -u -r1.5 LinuxTabInterface.java >--- src/org/eclipse/hyades/perfmon/linux/internal/launchconfig/LinuxTabInterface.java 3 May 2005 10:30:20 -0000 1.5 >+++ src/org/eclipse/hyades/perfmon/linux/internal/launchconfig/LinuxTabInterface.java 2 Nov 2005 00:14:07 -0000 >@@ -24,16 +24,6 @@ > > public class LinuxTabInterface implements AgentInterface > { >- public String getUIAgentName() >- { >- return PerfmonPlugin.getString("LINUX_UI_AGENT_NAME"); >- } >- >- public Image getUIAgentImage() >- { >- return PerfmonPlugin.img.getImage(ImageManager.IMG_PERFMON_HOST); >- } >- > public String getACAgentName() > { > return LinuxConstants.RAC_AGENT_PREFIX; >Index: src/org/eclipse/hyades/perfmon/mysql/internal/launchconfig/MySQLTabInterface.java >=================================================================== >RCS file: /home/tptp/monitoring/org.eclipse.hyades.perfmon/src/org/eclipse/hyades/perfmon/mysql/internal/launchconfig/MySQLTabInterface.java,v >retrieving revision 1.2 >diff -u -r1.2 MySQLTabInterface.java >--- src/org/eclipse/hyades/perfmon/mysql/internal/launchconfig/MySQLTabInterface.java 30 Aug 2005 14:22:22 -0000 1.2 >+++ src/org/eclipse/hyades/perfmon/mysql/internal/launchconfig/MySQLTabInterface.java 2 Nov 2005 00:14:07 -0000 >@@ -39,16 +39,6 @@ > AgentVariable usernameVar = new AgentVariable(PerfmonPlugin.getString("MYSQL_UI_USERNAME_NAME"),PerfmonPlugin.getString("MYSQL_UI_USERNAME_DESCRIPTION"),PerfmonPlugin.getString("MYSQL_UI_USERNAME_DEFAULT")); > AgentVariable passwordVar = new AgentVariable(PerfmonPlugin.getString("MYSQL_UI_PASSWORD_NAME"),PerfmonPlugin.getString("MYSQL_UI_PASSWORD_DESCRIPTION"),PerfmonPlugin.getString("MYSQL_UI_PASSWORD_DEFAULT"),true); > AgentVariable jdbcVar = new AgentVariable(PerfmonPlugin.getString("MYSQL_UI_JDBC_NAME"),PerfmonPlugin.getString("MYSQL_UI_JDBC_DESCRIPTION"),PerfmonPlugin.getString("MYSQL_UI_JDBC_DEFAULT")); >- >- public String getUIAgentName() >- { >- return PerfmonPlugin.getString("MYSQL_UI_AGENT_NAME"); >- } >- >- public Image getUIAgentImage() >- { >- return PerfmonPlugin.img.getImage(ImageManager.IMG_PERFMON_SERVER); >- } > > public String getACAgentName() > { >Index: src/org/eclipse/hyades/perfmon/perfmon/internal/launchconfig/PerfmonTabInterface.java >=================================================================== >RCS file: /home/tptp/monitoring/org.eclipse.hyades.perfmon/src/org/eclipse/hyades/perfmon/perfmon/internal/launchconfig/PerfmonTabInterface.java,v >retrieving revision 1.4 >diff -u -r1.4 PerfmonTabInterface.java >--- src/org/eclipse/hyades/perfmon/perfmon/internal/launchconfig/PerfmonTabInterface.java 2 May 2005 15:12:17 -0000 1.4 >+++ src/org/eclipse/hyades/perfmon/perfmon/internal/launchconfig/PerfmonTabInterface.java 2 Nov 2005 00:14:07 -0000 >@@ -30,16 +30,6 @@ > private String errorMessage; > > AgentVariable remoteHostVar = new AgentVariable(PerfmonPlugin.getString("PERFMON_REMOTE_HOST_LABEL"),PerfmonPlugin.getString("PERFMON_REMOTE_HOST_DESCRIPTION"),PerfmonPlugin.getString("PERFMON_REMOTE_HOST_DEFAULT")); >- >- public String getUIAgentName() >- { >- return PerfmonPlugin.getString("PERFMON_UI_AGENT_NAME"); >- } >- >- public Image getUIAgentImage() >- { >- return PerfmonPlugin.img.getImage(ImageManager.IMG_PERFMON_HOST); >- } > > public String getACAgentName() > { >Index: schema/statAgentInterfaceExtensions.exsd >=================================================================== >RCS file: schema/statAgentInterfaceExtensions.exsd >diff -N schema/statAgentInterfaceExtensions.exsd >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ schema/statAgentInterfaceExtensions.exsd 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,148 @@ >+<?xml version='1.0' encoding='UTF-8'?> >+<!-- Schema file written by PDE --> >+<schema targetNamespace="org.eclipse.hyades.ui"> >+<annotation> >+ <appInfo> >+ <meta.schema plugin="org.eclipse.hyades.ui" id="analyzerExtensions" name="Hyades Analyzer Extensions"/> >+ </appInfo> >+ <documentation> >+ This extension point is used to register TPTP Statistical Agent User Interface extensions. >+ </documentation> >+ </annotation> >+ >+ <element name="extension"> >+ <complexType> >+ <sequence> >+ <element ref="statAgentInterfaceContribution" minOccurs="0" maxOccurs="unbounded"/> >+ </sequence> >+ <attribute name="point" type="string" use="required"> >+ <annotation> >+ <documentation> >+ a fully qualified identifier of the target extension point >+ </documentation> >+ </annotation> >+ </attribute> >+ <attribute name="name" type="string"> >+ <annotation> >+ <documentation> >+ an optional name of the extension instance >+ </documentation> >+ </annotation> >+ </attribute> >+ <attribute name="id" type="string"> >+ <annotation> >+ <documentation> >+ an optional identifier of the extension instance >+ </documentation> >+ </annotation> >+ </attribute> >+ </complexType> >+ </element> >+ >+ <element name="statAgentInterfaceContribution"> >+ <annotation> >+ <appInfo> >+ <meta.element labelAttribute="name"/> >+ </appInfo> >+ </annotation> >+ <complexType> >+ <attribute name="id" type="string" use="required"> >+ <annotation> >+ <documentation> >+ a unique name that will be used to identify this TPTP Statistical Agent User Interface extension >+ </documentation> >+ </annotation> >+ </attribute> >+ <attribute name="name" type="string" use="required"> >+ <annotation> >+ <documentation> >+ a translatable name that will be used in the UI for this Hyades analyzer extension >+ </documentation> >+ </annotation> >+ </attribute> >+ <attribute name="class" type="string" use="required"> >+ <annotation> >+ <documentation> >+ a name of the class that implements <samp>org.eclipse.hyades.perfmon.common.internal.launch.AgentInterface</samp>. >+ </documentation> >+ <appInfo> >+ <meta.attribute kind="java" basedOn="org.eclipse.hyades.perfmon.common.internal.launch.AgentInterface"/> >+ </appInfo> >+ </annotation> >+ </attribute> >+ <attribute name="extension" type="string" use="required"> >+ <annotation> >+ <documentation> >+ identifies the category of objects that this extension point is associated with. A good example would be the one of the supported Hyades types, such as trace or test. >+ </documentation> >+ </annotation> >+ </attribute> >+ <attribute name="icon" type="string"> >+ <annotation> >+ <documentation> >+ a relative name of the icon that will be used to describe this TPTP Statistical Agent User Interface extension. >+ </documentation> >+ <appInfo> >+ <meta.attribute kind="resource"/> >+ </appInfo> >+ </annotation> >+ </attribute> >+ </complexType> >+ </element> >+ >+ <annotation> >+ <appInfo> >+ <meta.section type="since"/> >+ </appInfo> >+ <documentation> >+ 0.0.1 >+ </documentation> >+ </annotation> >+ >+ <annotation> >+ <appInfo> >+ <meta.section type="examples"/> >+ </appInfo> >+ <documentation> >+ <pre> >+ <extension >+ point="org.eclipse.hyades.perfmon.statAgentInterfaceExtensions"> >+ <statAgentInterfaceContribution >+class="org.eclipse.hyades.perfmon.linux.internal.launchconfig.LinuxTabInterface" extension="org.eclipse.hyades.perfmon.linux.internal.launchconfig.LinuxTabInterface" >+id="org.eclipse.hyades.perfmon.linux.internal.launchconfig.LinuxTabInterface" >+name="%LINUX_UI_AGENT_NAME" >+icon="icons/full/obj16/host_obj.gif"/> >+ </extension> >+</pre> >+ </documentation> >+ </annotation> >+ >+ <annotation> >+ <appInfo> >+ <meta.section type="apiInfo"/> >+ </appInfo> >+ <documentation> >+ All TPTP Statistical Agent User Interface' classes are instances of <samp>org.eclipse.hyades.perfmon.common.internal.launch.AgentInterface</samp>. >+ </documentation> >+ </annotation> >+ >+ <annotation> >+ <appInfo> >+ <meta.section type="implementation"/> >+ </appInfo> >+ <documentation> >+ The TPTP framework itself has a number of pre-defined analyzer extensions. Particular product installs may include additional analyzer extensions as required. >+ </documentation> >+ </annotation> >+ >+ <annotation> >+ <appInfo> >+ <meta.section type="copyright"/> >+ </appInfo> >+ <documentation> >+ Copyright (c) 2003, 2005 IBM Corporation and others. >+All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a> >+ </documentation> >+ </annotation> >+ >+</schema>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 113166
: 29136