jbossadmingui-cvs Mailing List for JBossAdminGui
Status: Planning
Brought to you by:
joa23
You can subscribe to this list here.
2003 |
Jan
|
Feb
(9) |
Mar
(9) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
---|
From: <ha...@us...> - 2003-03-02 15:25:00
|
Update of /cvsroot/jbossadmingui/org.jboss.jmx.gui/src/org/jboss/jmx/gui/wizard In directory sc8-pr-cvs1:/tmp/cvs-serv21496/src/org/jboss/jmx/gui/wizard Modified Files: NewNodeWizard.java Log Message: XP session Index: NewNodeWizard.java =================================================================== RCS file: /cvsroot/jbossadmingui/org.jboss.jmx.gui/src/org/jboss/jmx/gui/wizard/NewNodeWizard.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** NewNodeWizard.java 30 Jan 2003 23:33:25 -0000 1.7 --- NewNodeWizard.java 2 Mar 2003 15:24:56 -0000 1.8 *************** *** 11,16 **** import org.eclipse.ui.PartInitException; import org.eclipse.ui.PlatformUI; ! import org.jboss.jmx.gui.model.AllNodes; ! import org.jboss.jmx.gui.model.Node; /** --- 11,17 ---- import org.eclipse.ui.PartInitException; import org.eclipse.ui.PlatformUI; ! import org.jboss.jmx.gui.JmxGuiPlugin; ! import org.jboss.jmx.gui.model.Server; ! import org.jboss.jmx.gui.model.ServerManager; /** *************** *** 64,76 **** monitor.beginTask("Connecting", 5); monitor.worked(1); ! Node node = ! new Node( nodeConnectionPage.hostName.getText(), nodeConnectionPage.hostUrl.getText(), Integer.parseInt(nodeConnectionPage.rmiPort.getText())); monitor.worked(2); ! AllNodes allNodes = new AllNodes(); monitor.worked(3); ! allNodes.addChild(node); monitor.worked(4); --- 65,77 ---- monitor.beginTask("Connecting", 5); monitor.worked(1); ! Server node = ! new Server( nodeConnectionPage.hostName.getText(), nodeConnectionPage.hostUrl.getText(), Integer.parseInt(nodeConnectionPage.rmiPort.getText())); monitor.worked(2); ! ServerManager serverManager = JmxGuiPlugin.getDefault().getServerManager(); monitor.worked(3); ! serverManager.addServer(node); monitor.worked(4); |
From: <ha...@us...> - 2003-03-02 15:24:59
|
Update of /cvsroot/jbossadmingui/org.jboss.jmx.gui/src/org/jboss/jmx/gui In directory sc8-pr-cvs1:/tmp/cvs-serv21496/src/org/jboss/jmx/gui Added Files: JmxGuiPlugin.java Removed Files: GuiPlugin.java Log Message: XP session --- NEW FILE: JmxGuiPlugin.java --- package org.jboss.jmx.gui; import java.net.MalformedURLException; import java.net.URL; import java.util.MissingResourceException; import java.util.ResourceBundle; import org.eclipse.core.resources.IWorkspace; import org.eclipse.core.resources.ResourcesPlugin; import org.eclipse.core.runtime.IPluginDescriptor; import org.eclipse.jface.resource.ImageDescriptor; import org.eclipse.ui.plugin.AbstractUIPlugin; import org.jboss.jmx.gui.model.ServerManager; /** * The main plugin class to be used in the desktop. */ public class JmxGuiPlugin extends AbstractUIPlugin { //The shared instance. private static JmxGuiPlugin plugin; private ServerManager fServerManager = null; //Resource bundle. private ResourceBundle resourceBundle; /** * The constructor. */ public JmxGuiPlugin(IPluginDescriptor descriptor) { super(descriptor); plugin = this; try { resourceBundle = ResourceBundle.getBundle( "org.jboss.jmx.gui.GuiPluginResources"); } catch (MissingResourceException x) { resourceBundle = null; } } /** * Returns the shared instance. */ public static JmxGuiPlugin getDefault() { return plugin; } /** * Returns the workspace instance. */ public static IWorkspace getWorkspace() { return ResourcesPlugin.getWorkspace(); } /** * Returns the string from the plugin's resource bundle, * or 'key' if not found. */ public static String getResourceString(String key) { ResourceBundle bundle = JmxGuiPlugin.getDefault().getResourceBundle(); try { return bundle.getString(key); } catch (MissingResourceException e) { return key; } } /** * Returns the plugin's resource bundle, */ public ResourceBundle getResourceBundle() { return resourceBundle; } /** * Method getImageDescriptor. * @param name * @return ImageDescriptor */ public static ImageDescriptor getImageDescriptor(String name) { String iconPath = "icons/"; try { URL installPath = getDefault().getDescriptor().getInstallURL(); URL path = new URL(installPath, iconPath + name); return ImageDescriptor.createFromURL(path); } catch (MalformedURLException e) { return ImageDescriptor.getMissingImageDescriptor(); } } /** * @return Object */ public ServerManager getServerManager() { if (fServerManager == null) fServerManager = new ServerManager(); return fServerManager; } } --- GuiPlugin.java DELETED --- |
From: <ha...@us...> - 2003-03-02 15:24:59
|
Update of /cvsroot/jbossadmingui/org.jboss.jmx.gui/src/org/jboss/jmx/gui/model In directory sc8-pr-cvs1:/tmp/cvs-serv21496/src/org/jboss/jmx/gui/model Modified Files: Operation.java Attribute.java MBean.java Added Files: GraphModel.java ServerEvent.java Server.java IServerListener.java ServerManager.java Removed Files: AllNodes.java Node.java Log Message: XP session --- NEW FILE: GraphModel.java --- /** * JBoss, the OpenSource EJB server * * Distributable under LGPL license Version 2.1, February 1999. * See terms of license at gnu.org. */ package org.jboss.jmx.gui.model; /** * @author Hans Dockter * * */ public class GraphModel { } --- NEW FILE: ServerEvent.java --- /** * JBoss, the OpenSource EJB server * * Distributable under LGPL license Version 2.1, February 1999. * See terms of license at gnu.org. */ package org.jboss.jmx.gui.model; import java.util.EventObject; /** * @author Hans Dockter * * */ public class ServerEvent extends EventObject { private Server fServer; /** * @param source */ public ServerEvent(Object source, Server server) { super(source); fServer = server; } /** * @return Server */ public Server getServer() { return fServer; } /** * Sets the server. * @param server The server to set */ public void setServer(Server server) { fServer = server; } } --- NEW FILE: Server.java --- package org.jboss.jmx.gui.model; import java.util.HashMap; import java.util.Iterator; import java.util.Set; import javax.management.MBeanInfo; import javax.management.ObjectInstance; import javax.management.ObjectName; import org.eclipse.core.runtime.IAdaptable; import org.eclipse.jface.util.ListenerList; import org.eclipse.ui.views.properties.IPropertyDescriptor; import org.eclipse.ui.views.properties.IPropertySource; import org.eclipse.ui.views.properties.PropertyDescriptor; import org.eclipse.ui.views.properties.TextPropertyDescriptor; import org.jboss.jmx.connector.rmi.RMIConnectorImpl; import org.jboss.jmx.gui.JmxGuiPlugin; ; /** * jboss node doamain model * * @author Stefan Groschupf(sg...@me...) * @version $Revision: 1.1 $($Author: hans_d $ / $Date: 2003/03/02 15:24:55 $) * */ public class Server implements IPropertySource { private Connection nodeConnection; private MBean[] mBeans; private HashMap connectionValuesCache; private HashMap connectionValues; private ListenerList listenerList; public Server(String name, String host, int port) { connectionValues = new HashMap(); connectionValues.put("name", name); connectionValues.put("host", host); connectionValues.put("port", "" + port); createConnection(); } private void setConnection(Connection connection) { this.nodeConnection = connection; } private Connection getConnection() { return this.nodeConnection; } public MBean getMBean(ObjectName name) throws Exception { MBeanInfo info = nodeConnection.getServer().getMBeanInfo(name); MBean bean = new MBean(info, name, this); return bean; } private String getName() { return this.nodeConnection.getName(); } public void connect() throws Exception { nodeConnection = getConnection(); nodeConnection.start(); // refreshMBeanNames(); refreshMBeans(); } public boolean isConnected() { return nodeConnection.isAlive(); } public void disconnect() { if (nodeConnection != null) { nodeConnection.stop(); } } private void refreshMBeans() { try { RMIConnectorImpl connectorImpl = nodeConnection.getServer(); // Set s = // nodeConnection.getServer().queryMBeans(new ObjectName(connectorImpl.getDefaultDomain() + ":*"), null); Set s = nodeConnection.getServer().queryMBeans( new ObjectName("*:*"), null); Iterator it = s.iterator(); mBeans = new MBean[s.size()]; int i = 0; while (it.hasNext()) { ObjectInstance instance = (ObjectInstance) it.next(); ObjectName objectName = instance.getObjectName(); MBeanInfo info = connectorImpl.getMBeanInfo(objectName); MBean bean2 = new MBean(info, objectName, this); mBeans[i++] = bean2; } } catch (Exception e) { mBeans = new MBean[0]; } } public int countMBeans() { return mBeans.length; } public MBean getMBeanByInd(int i) throws Exception { Set names = nodeConnection.getServer().queryNames( new ObjectName( nodeConnection.getServer().getDefaultDomain() + ":*"), null); ObjectName name = (ObjectName) names.toArray()[i - 1]; return getMBean(name); } public MBean[] getMBeans() { return this.mBeans; } public String toString() { return getName(); } public void createConnection() { disconnect(); String name = (String) connectionValues.get("name"); String host = (String) connectionValues.get("host"); int port = Integer.parseInt((String) connectionValues.get("port")); Connection connection = new Connection(name, host, port); setConnection(connection); try { connect(); } catch (Exception e) { System.err.println("cant connect server" + e); } fireChange(); } private void fireChange() { JmxGuiPlugin.getDefault().getServerManager().notifyAllServerListeners( new ServerEvent(this, this)); } // property editor stuff.... public Object getEditableValue() { return "nothing"; } public IPropertyDescriptor[] getPropertyDescriptors() { PropertyDescriptor[] props = new PropertyDescriptor[3]; TextPropertyDescriptor name = new TextPropertyDescriptor("name", "NodeName"); name.setCategory("info"); TextPropertyDescriptor host = new TextPropertyDescriptor("host", "NodeHost"); host.setCategory("info"); TextPropertyDescriptor port = new TextPropertyDescriptor("port", "NodePort"); port.setCategory("info"); props[0] = name; props[1] = host; props[2] = port; return props; } public Object getPropertyValue(Object id) { if (id == "name") return this.getConnection().getName(); if (id == "host") return this.getConnection().getHost(); if (id == "port") return "" + this.getConnection().getPort(); else return null; } public boolean isPropertySet(Object id) { return connectionValues.get((String) id) != connectionValuesCache.get((String) id); } public void resetPropertyValue(Object id) { connectionValues = (HashMap) connectionValuesCache.clone(); createConnection(); } public void setPropertyValue(Object id, Object value) { connectionValuesCache = (HashMap) connectionValues.clone(); connectionValues.remove((String) id); connectionValues.put((String) id, value); createConnection(); } /** * Method getServer. */ public RMIConnectorImpl getServer() { return getConnection().getServer(); } } --- NEW FILE: IServerListener.java --- /** * JBoss, the OpenSource EJB server * * Distributable under LGPL license Version 2.1, February 1999. * See terms of license at gnu.org. */ package org.jboss.jmx.gui.model; import java.util.EventObject; /** * @author Hans Dockter * * */ public interface IServerListener { public void serverChanged(EventObject e); } --- NEW FILE: ServerManager.java --- /** * JBoss, the OpenSource EJB server * * Distributable under LGPL license Version 2.1, February 1999. * See terms of license at gnu.org. */ package org.jboss.jmx.gui.model; import java.util.ArrayList; import org.eclipse.jface.util.ListenerList; /** * @author Hans Dockter * * */ public class ServerManager { private ArrayList servers = new ArrayList(); private ListenerList listenerList = new ListenerList(); /** * Method addChild. * add a node. * * @param child */ public void addServer(Server server) { servers.add(server); notifyAllServerListeners(new ServerEvent(this, null)); } /** * Method getChildren. * return all setuped nodes... * @return Node[] */ public Server[] getServers() { return (Server[]) servers.toArray(new Server[servers.size()]); } /** * Method removeListener. * @param viewContentProvider */ public void removeServerListener(IServerListener serverListener) { listenerList.remove(serverListener); } /** * Method addListener. * @param viewContentProvider */ public void addServerListener(IServerListener serverListener) { listenerList.add(serverListener); } public void notifyAllServerListeners(ServerEvent e) { Object[] listeners = listenerList.getListeners(); if (listeners != null) { for (int i = 0; i < listeners.length; i++) { IServerListener listener = (IServerListener) listeners[i]; listener.serverChanged(e); } } } /** * Method removeChild. * remove a node... * @param child */ public void removeServer(Server server) { server.disconnect(); servers.remove(server); notifyAllServerListeners(new ServerEvent(this, null)); } /** * Method hasChildren. * are nodes available? * @return boolean */ public boolean hasServer() { return servers.size() > 0; } } Index: Operation.java =================================================================== RCS file: /cvsroot/jbossadmingui/org.jboss.jmx.gui/src/org/jboss/jmx/gui/model/Operation.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** Operation.java 26 Jan 2003 23:08:48 -0000 1.7 --- Operation.java 2 Mar 2003 15:24:55 -0000 1.8 *************** *** 1,6 **** package org.jboss.jmx.gui.model; - import java.util.HashSet; - import java.util.Iterator; import java.util.Vector; --- 1,4 ---- *************** *** 14,18 **** import org.eclipse.ui.views.properties.IPropertySource; import org.eclipse.ui.views.properties.PropertyDescriptor; ! import org.jboss.jmx.gui.views.ViewContentProvider; /** --- 12,16 ---- import org.eclipse.ui.views.properties.IPropertySource; import org.eclipse.ui.views.properties.PropertyDescriptor; ! import org.jboss.jmx.gui.JmxGuiPlugin; /** *************** *** 25,29 **** public class Operation implements IPropertySource { private MBeanOperationInfo OperationInfo; - private HashSet listener; private Vector descriptors; private MBean mBean; --- 23,26 ---- *************** *** 35,48 **** public Operation(MBeanOperationInfo mBeanOperationInfo, MBean bean) { setOperationInfo(mBeanOperationInfo); ! setMbean(bean); createPropertyDescriptor(); } ! /** ! * Method setMbean. ! * @param bean ! */ ! private void setMbean(MBean bean) { ! this.mBean = bean; ! } public MBeanParameterInfo[] getParameterInfo() { --- 32,40 ---- public Operation(MBeanOperationInfo mBeanOperationInfo, MBean bean) { setOperationInfo(mBeanOperationInfo); ! setMBean(bean); createPropertyDescriptor(); } ! ! public MBeanParameterInfo[] getParameterInfo() { *************** *** 100,125 **** } - public void removeListener(Object viewContentProvider) { - if (listener != null) - listener.remove((ViewContentProvider) viewContentProvider); - - } - - public void addListener(Object viewContentProvider) { - if (listener == null) - listener = new HashSet(); - listener.add((ViewContentProvider) viewContentProvider); - - } - - protected void fireChange() { - if (listener != null) { - for (Iterator iterator = listener.iterator(); iterator.hasNext();) { - ViewContentProvider contentProvider = (ViewContentProvider) iterator.next(); - contentProvider.fireChange(this); - } - } - } - public String getName() { --- 92,95 ---- *************** *** 217,220 **** --- 187,212 ---- */ public void setPropertyValue(Object id, Object value) { + } + + private void fireChange() { + JmxGuiPlugin.getDefault().getServerManager().notifyAllServerListeners( + new ServerEvent(this, mBean.getParent())); + } + + + + /** + * @return MBean + */ + public MBean getMBean() { + return mBean; + } + + /** + * Sets the mBean. + * @param mBean The mBean to set + */ + public void setMBean(MBean mBean) { + this.mBean = mBean; } Index: Attribute.java =================================================================== RCS file: /cvsroot/jbossadmingui/org.jboss.jmx.gui/src/org/jboss/jmx/gui/model/Attribute.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** Attribute.java 2 Feb 2003 00:36:39 -0000 1.11 --- Attribute.java 2 Mar 2003 15:24:56 -0000 1.12 *************** *** 1,6 **** package org.jboss.jmx.gui.model; - import java.util.HashSet; - import java.util.Iterator; import java.util.Vector; --- 1,4 ---- *************** *** 15,19 **** import org.eclipse.ui.views.properties.PropertyDescriptor; import org.eclipse.ui.views.properties.TextPropertyDescriptor; ! import org.jboss.jmx.gui.views.ViewContentProvider; /** --- 13,17 ---- import org.eclipse.ui.views.properties.PropertyDescriptor; import org.eclipse.ui.views.properties.TextPropertyDescriptor; ! import org.jboss.jmx.gui.JmxGuiPlugin; /** *************** *** 27,30 **** --- 25,30 ---- private MBeanAttributeInfo attributeInfo; private String cache; + private MBean bean; + private Vector descriptors; public Attribute(MBeanAttributeInfo mBeanAttributeInfo, MBean bean) { *************** *** 60,64 **** value = new TextPropertyDescriptor("Value", "Value"); else if (getTyp().equals("boolean")) { ! value = new ComboBoxPropertyDescriptor("Value", "Value", new String[] { "false", "true" }); value.setLabelProvider(new BooleanLabelProvider()); } else if (getTyp().equals("javax.management.ObjectName")) { --- 60,68 ---- value = new TextPropertyDescriptor("Value", "Value"); else if (getTyp().equals("boolean")) { ! value = ! new ComboBoxPropertyDescriptor( ! "Value", ! "Value", ! new String[] { "false", "true" }); value.setLabelProvider(new BooleanLabelProvider()); } else if (getTyp().equals("javax.management.ObjectName")) { *************** *** 69,73 **** ((PropertyDescriptor) value).setCategory("info"); ! PropertyDescriptor description = new PropertyDescriptor("description ", "description "); description.setCategory("info"); --- 73,78 ---- ((PropertyDescriptor) value).setCategory("info"); ! PropertyDescriptor description = ! new PropertyDescriptor("description ", "description "); description.setCategory("info"); *************** *** 94,101 **** } - private MBean bean; - private HashSet listener; - private Vector descriptors; - public Attribute() { super(); --- 99,102 ---- *************** *** 107,111 **** public MBean getMBean() { ! return getParent(); } --- 108,112 ---- public MBean getMBean() { ! return bean; } *************** *** 125,158 **** return bean.getAttrbuteValue(name); } ! /** ! * Method getParent. ! */ ! private MBean getParent() { ! return this.bean; ! } public String toString() { return "(" + attributeInfo.getType() + ") " + attributeInfo.getName(); } ! public void removeListener(Object viewContentProvider) { ! if (listener != null) ! listener.remove((ViewContentProvider) viewContentProvider); ! ! } ! ! public void addListener(Object viewContentProvider) { ! if (listener == null) ! listener = new HashSet(); ! listener.add((ViewContentProvider) viewContentProvider); ! ! } ! ! protected void fireChange() { ! if (listener != null) { ! for (Iterator iterator = listener.iterator(); iterator.hasNext();) { ! ViewContentProvider contentProvider = (ViewContentProvider) iterator.next(); ! contentProvider.fireChange(this); ! } ! } } --- 126,137 ---- return bean.getAttrbuteValue(name); } ! public String toString() { return "(" + attributeInfo.getType() + ") " + attributeInfo.getName(); } ! private void fireChange() { ! JmxGuiPlugin.getDefault().getServerManager().notifyAllServerListeners( ! new ServerEvent(this, bean.getParent())); } *************** *** 169,173 **** public IPropertyDescriptor[] getPropertyDescriptors() { ! return (IPropertyDescriptor[]) getDescriptors().toArray(new IPropertyDescriptor[getDescriptors().size()]); // return null; } --- 148,153 ---- public IPropertyDescriptor[] getPropertyDescriptors() { ! return (IPropertyDescriptor[]) getDescriptors().toArray( ! new IPropertyDescriptor[getDescriptors().size()]); // return null; } *************** *** 255,259 **** } else if (getTyp().equals("javax.management.ObjectName")) { - try { ObjectName name = new ObjectName(((String) value)); --- 235,238 ---- Index: MBean.java =================================================================== RCS file: /cvsroot/jbossadmingui/org.jboss.jmx.gui/src/org/jboss/jmx/gui/model/MBean.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** MBean.java 26 Jan 2003 23:08:48 -0000 1.11 --- MBean.java 2 Mar 2003 15:24:56 -0000 1.12 *************** *** 3,8 **** import java.util.Collection; import java.util.HashMap; - import java.util.HashSet; - import java.util.Iterator; import java.util.Vector; --- 3,6 ---- *************** *** 21,25 **** import org.eclipse.ui.views.properties.PropertyDescriptor; import org.jboss.jmx.connector.rmi.RMIConnectorImpl; ! import org.jboss.jmx.gui.views.ViewContentProvider; /** --- 19,23 ---- import org.eclipse.ui.views.properties.PropertyDescriptor; import org.jboss.jmx.connector.rmi.RMIConnectorImpl; ! import org.jboss.jmx.gui.JmxGuiPlugin; /** *************** *** 37,42 **** private ObjectName mBeanName; private MBeanInfo mBeanInfo; ! private Node parentNode; ! private HashSet listener; private Vector descriptors; --- 35,39 ---- private ObjectName mBeanName; private MBeanInfo mBeanInfo; ! private Server parentNode; private Vector descriptors; *************** *** 44,48 **** * Constructor for MBean. */ ! public MBean(MBeanInfo beanInfo, ObjectName name, Node parent) { setMBeanInfo(beanInfo); setName(name); --- 41,45 ---- * Constructor for MBean. */ ! public MBean(MBeanInfo beanInfo, ObjectName name, Server parent) { setMBeanInfo(beanInfo); setName(name); *************** *** 54,58 **** * @param parentNode */ ! private void setNode(Node parent) { this.parentNode = parent; } --- 51,55 ---- * @param parentNode */ ! private void setNode(Server parent) { this.parentNode = parent; } *************** *** 71,75 **** Collection collection = this.getMBeanAttributes().values(); ! return (Attribute[]) collection.toArray(new Attribute[collection.size()]); } --- 68,73 ---- Collection collection = this.getMBeanAttributes().values(); ! return (Attribute[]) collection.toArray( ! new Attribute[collection.size()]); } *************** *** 79,83 **** public Operation[] getOperations() { Collection collection = getMBeanOperations().values(); ! return (Operation[]) collection.toArray(new Operation[collection.size()]); } --- 77,82 ---- public Operation[] getOperations() { Collection collection = getMBeanOperations().values(); ! return (Operation[]) collection.toArray( ! new Operation[collection.size()]); } *************** *** 130,142 **** descriptors = new Vector(); ! PropertyDescriptor mbeanDescriptor = new PropertyDescriptor("name", "name"); mbeanDescriptor.setCategory("info"); descriptors.addElement(mbeanDescriptor); ! PropertyDescriptor mbeanDomainDescriptor = new PropertyDescriptor("domain", "domain"); mbeanDomainDescriptor.setCategory("info"); descriptors.addElement(mbeanDomainDescriptor); ! PropertyDescriptor mbeanClassDescriptor = new PropertyDescriptor("class", "class"); mbeanClassDescriptor.setCategory("info"); descriptors.addElement(mbeanClassDescriptor); --- 129,144 ---- descriptors = new Vector(); ! PropertyDescriptor mbeanDescriptor = ! new PropertyDescriptor("name", "name"); mbeanDescriptor.setCategory("info"); descriptors.addElement(mbeanDescriptor); ! PropertyDescriptor mbeanDomainDescriptor = ! new PropertyDescriptor("domain", "domain"); mbeanDomainDescriptor.setCategory("info"); descriptors.addElement(mbeanDomainDescriptor); ! PropertyDescriptor mbeanClassDescriptor = ! new PropertyDescriptor("class", "class"); mbeanClassDescriptor.setCategory("info"); descriptors.addElement(mbeanClassDescriptor); *************** *** 149,153 **** PropertyDescriptor attributeDescriptor = ! new PropertyDescriptor("a_" + attribute.getName(), attribute.getName()); attributeDescriptor.setCategory("Attributes"); descriptors.addElement(attributeDescriptor); --- 151,157 ---- PropertyDescriptor attributeDescriptor = ! new PropertyDescriptor( ! "a_" + attribute.getName(), ! attribute.getName()); attributeDescriptor.setCategory("Attributes"); descriptors.addElement(attributeDescriptor); *************** *** 158,162 **** Operation operation = operations[j]; PropertyDescriptor operationDescriptior = ! new PropertyDescriptor("o_" + operation.toString(), operation.toString()); operationDescriptior.setCategory("Operations"); descriptors.addElement(operationDescriptior); --- 162,168 ---- Operation operation = operations[j]; PropertyDescriptor operationDescriptior = ! new PropertyDescriptor( ! "o_" + operation.toString(), ! operation.toString()); operationDescriptior.setCategory("Operations"); descriptors.addElement(operationDescriptior); *************** *** 169,173 **** * @return Object */ ! public Node getParent() { return this.parentNode; } --- 175,179 ---- * @return Object */ ! public Server getParent() { return this.parentNode; } *************** *** 188,240 **** } ! /** ! * Method removeListener. ! * @param viewContentProvider ! */ ! public void removeListener(Object viewContentProvider) { ! if (listener != null) ! listener.remove((ViewContentProvider) viewContentProvider); ! Attribute[] attributes = getAttributes(); ! for (int i = 0; i < attributes.length; i++) { ! Attribute attribute = attributes[i]; ! attribute.removeListener(viewContentProvider); ! } ! ! Operation[] operations = getOperations(); ! for (int j = 0; j < operations.length; j++) { ! Operation operation = operations[j]; ! operation.removeListener(viewContentProvider); ! } ! } ! /** ! * Method addListener. ! * @param viewContentProvider ! */ ! public void addListener(Object viewContentProvider) { ! if (listener == null) ! listener = new HashSet(); ! listener.add((ViewContentProvider) viewContentProvider); ! ! Attribute[] attributes = getAttributes(); ! for (int i = 0; i < attributes.length; i++) { ! Attribute attribute = attributes[i]; ! attribute.addListener(viewContentProvider); ! } ! ! Operation[] operations = getOperations(); ! for (int j = 0; j < operations.length; j++) { ! Operation operation = operations[j]; ! operation.addListener(viewContentProvider); ! } ! ! } ! ! protected void fireChange() { ! if (listener != null) { ! for (Iterator iterator = listener.iterator(); iterator.hasNext();) { ! ViewContentProvider contentProvider = (ViewContentProvider) iterator.next(); ! contentProvider.fireChange(this); ! } ! } } --- 194,200 ---- } ! private void fireChange() { ! JmxGuiPlugin.getDefault().getServerManager().notifyAllServerListeners( ! new ServerEvent(this, getParent())); } *************** *** 267,271 **** */ public IPropertyDescriptor[] getPropertyDescriptors() { ! return (IPropertyDescriptor[]) getDescriptors().toArray(new IPropertyDescriptor[getDescriptors().size()]); } --- 227,232 ---- */ public IPropertyDescriptor[] getPropertyDescriptors() { ! return (IPropertyDescriptor[]) getDescriptors().toArray( ! new IPropertyDescriptor[getDescriptors().size()]); } *************** *** 286,295 **** if (idStr.startsWith("o_")) { String operationId = idStr.substring(2, idStr.length()); ! Operation operation = (Operation) getMBeanOperations().get(operationId); return operation; } else if (idStr.startsWith("a_")) { String attributeId = idStr.substring(2, idStr.length()); ! Attribute attribute = (Attribute) getMBeanAttributes().get(attributeId); return attribute; --- 247,258 ---- if (idStr.startsWith("o_")) { String operationId = idStr.substring(2, idStr.length()); ! Operation operation = ! (Operation) getMBeanOperations().get(operationId); return operation; } else if (idStr.startsWith("a_")) { String attributeId = idStr.substring(2, idStr.length()); ! Attribute attribute = ! (Attribute) getMBeanAttributes().get(attributeId); return attribute; *************** *** 333,337 **** RMIConnectorImpl server = getParent().getServer(); ObjectName objectName = getObjectName(); ! value = (String) "" + server.getAttribute(objectName, attributeName); } catch (AttributeNotFoundException e) { } catch (InstanceNotFoundException e) { --- 296,301 ---- RMIConnectorImpl server = getParent().getServer(); ObjectName objectName = getObjectName(); ! value = ! (String) "" + server.getAttribute(objectName, attributeName); } catch (AttributeNotFoundException e) { } catch (InstanceNotFoundException e) { *************** *** 345,370 **** public void setAttrbuteValue(String attributeName, Object value) { ! ! ! RMIConnectorImpl server = getParent().getServer(); ! ObjectName objectName = getObjectName(); ! javax.management.Attribute attribute = new javax.management.Attribute(attributeName, value); ! try { ! server.setAttribute(objectName, attribute); ! } catch (InstanceNotFoundException e) { ! System.err.println("InstanceNotFoundException "+e); ! } catch (AttributeNotFoundException e) { ! System.err.println("AttributeNotFoundException " +e); ! } catch (InvalidAttributeValueException e) { ! System.err.println("InvalidAttributeValueException " + e); ! } catch (MBeanException e) { ! System.err.println("MBeanException" + e); ! } catch (ReflectionException e) { ! System.err.println("ReflectionException" +e); ! } ! } - } --- 309,331 ---- public void setAttrbuteValue(String attributeName, Object value) { ! RMIConnectorImpl server = getParent().getServer(); ! ObjectName objectName = getObjectName(); ! javax.management.Attribute attribute = ! new javax.management.Attribute(attributeName, value); ! try { ! server.setAttribute(objectName, attribute); ! } catch (InstanceNotFoundException e) { ! System.err.println("InstanceNotFoundException " + e); ! } catch (AttributeNotFoundException e) { ! System.err.println("AttributeNotFoundException " + e); ! } catch (InvalidAttributeValueException e) { ! System.err.println("InvalidAttributeValueException " + e); ! } catch (MBeanException e) { ! System.err.println("MBeanException" + e); ! } catch (ReflectionException e) { ! System.err.println("ReflectionException" + e); ! } } } --- AllNodes.java DELETED --- --- Node.java DELETED --- |
From: <ha...@us...> - 2003-03-02 15:24:59
|
Update of /cvsroot/jbossadmingui/org.jboss.jmx.gui/src/org/jboss/jmx/gui/preferences In directory sc8-pr-cvs1:/tmp/cvs-serv21496/src/org/jboss/jmx/gui/preferences Modified Files: JMXPreferencePage.java Log Message: XP session Index: JMXPreferencePage.java =================================================================== RCS file: /cvsroot/jbossadmingui/org.jboss.jmx.gui/src/org/jboss/jmx/gui/preferences/JMXPreferencePage.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** JMXPreferencePage.java 31 Dec 2002 02:10:43 -0000 1.3 --- JMXPreferencePage.java 2 Mar 2003 15:24:56 -0000 1.4 *************** *** 6,10 **** import org.eclipse.ui.IWorkbench; import org.eclipse.ui.IWorkbenchPreferencePage; ! import org.jboss.jmx.gui.GuiPlugin; --- 6,10 ---- import org.eclipse.ui.IWorkbench; import org.eclipse.ui.IWorkbenchPreferencePage; ! import org.jboss.jmx.gui.JmxGuiPlugin; *************** *** 26,30 **** public JMXPreferencePage() { super(GRID); ! setPreferenceStore(GuiPlugin.getDefault().getPreferenceStore()); setDescription("Setup the Refresh Interval. Add your JBoss Server nodes in the Browser."); initializeDefaults(); --- 26,30 ---- public JMXPreferencePage() { super(GRID); ! setPreferenceStore(JmxGuiPlugin.getDefault().getPreferenceStore()); setDescription("Setup the Refresh Interval. Add your JBoss Server nodes in the Browser."); initializeDefaults(); |
Update of /cvsroot/jbossadmingui/org.jboss.jmx.gui/src/org/jboss/jmx/gui/views In directory sc8-pr-cvs1:/tmp/cvs-serv21496/src/org/jboss/jmx/gui/views Modified Files: JmxView.java Added Files: JmxTreeContentProvider.java Removed Files: TreeObject.java ViewContentProvider.java Log Message: XP session --- NEW FILE: JmxTreeContentProvider.java --- package org.jboss.jmx.gui.views; import java.util.EventObject; import org.eclipse.jface.viewers.IStructuredContentProvider; import org.eclipse.jface.viewers.ITreeContentProvider; import org.eclipse.jface.viewers.TreeViewer; import org.eclipse.jface.viewers.Viewer; import org.jboss.jmx.gui.JmxGuiPlugin; import org.jboss.jmx.gui.model.Attribute; import org.jboss.jmx.gui.model.IServerListener; import org.jboss.jmx.gui.model.MBean; import org.jboss.jmx.gui.model.Operation; import org.jboss.jmx.gui.model.Server; import org.jboss.jmx.gui.model.ServerManager; /** * the content provider * * @author Stefan Groschupf(sg...@me...) * @version $Revision: 1.1 $($Author: hans_d $ / $Date: 2003/03/02 15:24:56 $) * */ public class JmxTreeContentProvider implements IStructuredContentProvider, ITreeContentProvider, IServerListener { private TreeViewer viewer; public JmxTreeContentProvider() { } /** * fire if something changed. * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object) */ public void inputChanged(Viewer v, Object oldInput, Object newInput) { this.viewer = (TreeViewer) v; if (oldInput != null) { ((ServerManager) oldInput).removeServerListener(this); } if (newInput != null) { ((ServerManager) newInput).addServerListener(this); } } /** * dispose the connections * @see org.eclipse.jface.viewers.IContentProvider#dispose() */ public void dispose() { JmxGuiPlugin.getDefault().getServerManager().removeServerListener(this); } /** * get the children of AllNodes, * if no root is avaible a instance of AllNodes will be created. * @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java.lang.Object) */ public Object[] getElements(Object parent) { return JmxGuiPlugin.getDefault().getServerManager().getServers(); } /** * return th einstanze of AllNodes since that is the parent of a Node. * @see org.eclipse.jface.viewers.ITreeContentProvider#getParent(java.lang.Object) */ public Object getParent(Object child) { if (child instanceof MBean) { return ((MBean) child).getParent(); } else if (child instanceof Attribute) { return ((Attribute) child).getMBean(); } else if (child instanceof Operation) { return ((Operation) child).getMBean(); } return null; } /** * return all nodes from AllNodes * @see org.eclipse.jface.viewers.ITreeContentProvider#getChildren(java.lang.Object) */ public Object[] getChildren(Object parent) { if (parent instanceof Server) { return ((Server) parent).getMBeans(); } else if (parent instanceof MBean) { return concat( ((MBean) parent).getAttributes(), ((MBean) parent).getOperations()); } return new Object[0]; } protected Object[] concat(Object[] object, Object[] object2) { Object[] all = new Object[object.length + object2.length]; System.arraycopy(object, 0, all, 0, object.length); System.arraycopy(object2, 0, all, object.length, object2.length); return all; } /** * has allNodes some node? * @see org.eclipse.jface.viewers.ITreeContentProvider#hasChildren(java.lang.Object) */ public boolean hasChildren(Object parent) { if (parent instanceof Server) { return ((Server) parent).countMBeans() > 0; } else if (parent instanceof MBean) { return ((MBean) parent).countAttributes() > 0; } return false; } public TreeViewer getView() { return this.viewer; } /* (non-Javadoc) * @see org.jboss.jmx.gui.model.IServerListener#serverChanged(java.util.EventObject) */ public void serverChanged(EventObject e) { if (viewer != null) viewer.refresh(true); } } Index: JmxView.java =================================================================== RCS file: /cvsroot/jbossadmingui/org.jboss.jmx.gui/src/org/jboss/jmx/gui/views/JmxView.java,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** JmxView.java 26 Jan 2003 23:08:46 -0000 1.13 --- JmxView.java 2 Mar 2003 15:24:56 -0000 1.14 *************** *** 4,8 **** import java.util.Iterator; - import org.eclipse.core.resources.ResourcesPlugin; import org.eclipse.jface.action.Action; import org.eclipse.jface.action.IMenuListener; --- 4,7 ---- *************** *** 29,46 **** import org.eclipse.swt.widgets.Shell; import org.eclipse.ui.IActionBars; import org.eclipse.ui.PartInitException; import org.eclipse.ui.PlatformUI; import org.eclipse.ui.part.DrillDownAdapter; import org.eclipse.ui.part.ViewPart; ! import org.jboss.jmx.gui.GuiPlugin; import org.jboss.jmx.gui.actions.AddNode; import org.jboss.jmx.gui.actions.DeleteNode; import org.jboss.jmx.gui.actions.ReconnectServer; import org.jboss.jmx.gui.actions.ShowProperies; - import org.jboss.jmx.gui.model.AllNodes; import org.jboss.jmx.gui.model.Attribute; import org.jboss.jmx.gui.model.MBean; - import org.jboss.jmx.gui.model.Node; import org.jboss.jmx.gui.model.Operation; import org.jboss.jmx.gui.wizard.OperationInvokationWizard; --- 28,45 ---- import org.eclipse.swt.widgets.Shell; import org.eclipse.ui.IActionBars; + import org.eclipse.ui.IViewSite; import org.eclipse.ui.PartInitException; import org.eclipse.ui.PlatformUI; import org.eclipse.ui.part.DrillDownAdapter; import org.eclipse.ui.part.ViewPart; ! import org.jboss.jmx.gui.JmxGuiPlugin; import org.jboss.jmx.gui.actions.AddNode; import org.jboss.jmx.gui.actions.DeleteNode; import org.jboss.jmx.gui.actions.ReconnectServer; import org.jboss.jmx.gui.actions.ShowProperies; import org.jboss.jmx.gui.model.Attribute; import org.jboss.jmx.gui.model.MBean; import org.jboss.jmx.gui.model.Operation; + import org.jboss.jmx.gui.model.Server; import org.jboss.jmx.gui.wizard.OperationInvokationWizard; *************** *** 72,89 **** ImageDescriptor iconDescriptor = null; ! if (obj instanceof AllNodes) { ! iconDescriptor = GuiPlugin.getImageDescriptor("server.gif"); ! } else if (obj instanceof Node) { ! if (((Node) obj).isConnected()) ! iconDescriptor = GuiPlugin.getImageDescriptor("server.gif"); else ! iconDescriptor = GuiPlugin.getImageDescriptor("server_error.gif"); } else if (obj instanceof MBean) { ! iconDescriptor = GuiPlugin.getImageDescriptor("mBean.gif"); } else if (obj instanceof Attribute) { ! iconDescriptor = GuiPlugin.getImageDescriptor("attribute.gif"); } else if (obj instanceof Operation) { ! iconDescriptor = GuiPlugin.getImageDescriptor("operation.gif"); } // cache the images --- 71,88 ---- ImageDescriptor iconDescriptor = null; ! if (obj instanceof Server) { ! iconDescriptor = JmxGuiPlugin.getImageDescriptor("server.gif"); ! } else if (obj instanceof Server) { ! if (((Server) obj).isConnected()) ! iconDescriptor = JmxGuiPlugin.getImageDescriptor("server.gif"); else ! iconDescriptor = JmxGuiPlugin.getImageDescriptor("server_error.gif"); } else if (obj instanceof MBean) { ! iconDescriptor = JmxGuiPlugin.getImageDescriptor("mBean.gif"); } else if (obj instanceof Attribute) { ! iconDescriptor = JmxGuiPlugin.getImageDescriptor("attribute.gif"); } else if (obj instanceof Operation) { ! iconDescriptor = JmxGuiPlugin.getImageDescriptor("operation.gif"); } // cache the images *************** *** 136,144 **** viewer = new TreeViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL); drillDownAdapter = new DrillDownAdapter(viewer); ! viewer.setContentProvider(new ViewContentProvider()); viewer.setLabelProvider(new ViewLabelProvider()); viewer.setSorter(new NameSorter()); ! viewer.setInput(ResourcesPlugin.getWorkspace()); ! getSite().setSelectionProvider(viewer); makeActions(); --- 135,142 ---- viewer = new TreeViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL); drillDownAdapter = new DrillDownAdapter(viewer); ! viewer.setContentProvider(new JmxTreeContentProvider()); viewer.setLabelProvider(new ViewLabelProvider()); viewer.setSorter(new NameSorter()); ! viewer.setInput(JmxGuiPlugin.getDefault().getServerManager()); makeActions(); *************** *** 272,278 **** */ private void hookDoubleClickAction() { - viewer.addDoubleClickListener(new IDoubleClickListener() { - public void doubleClick(DoubleClickEvent event) { doubleClickAction.run(); --- 270,274 ---- *************** *** 289,295 **** IStructuredSelection selection = (IStructuredSelection) event.getSelection(); ! if (selection.getFirstElement() instanceof Node) { action2.setEnabled(true); ! if (!((Node) selection.getFirstElement()).isConnected()) { action4.setEnabled(true); } else { --- 285,291 ---- IStructuredSelection selection = (IStructuredSelection) event.getSelection(); ! if (selection.getFirstElement() instanceof Server) { action2.setEnabled(true); ! if (!((Server) selection.getFirstElement()).isConnected()) { action4.setEnabled(true); } else { *************** *** 319,322 **** --- 315,327 ---- viewer.getControl().setFocus(); } + + /* (non-Javadoc) + * @see org.eclipse.ui.part.ViewPart#init(org.eclipse.ui.IViewSite) + */ + public void init(IViewSite site) throws PartInitException { + super.init(site); + site.setSelectionProvider(viewer); + } + } --- TreeObject.java DELETED --- --- ViewContentProvider.java DELETED --- |
From: <ha...@us...> - 2003-03-02 15:24:58
|
Update of /cvsroot/jbossadmingui/org.jboss.jmx.gui In directory sc8-pr-cvs1:/tmp/cvs-serv21496 Modified Files: .project Log Message: XP session Index: .project =================================================================== RCS file: /cvsroot/jbossadmingui/org.jboss.jmx.gui/.project,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** .project 10 Dec 2002 00:09:36 -0000 1.1 --- .project 2 Mar 2003 15:24:55 -0000 1.2 *************** *** 4,7 **** --- 4,12 ---- <comment></comment> <projects> + <project>org.eclipse.core.boot</project> + <project>org.eclipse.core.resources</project> + <project>org.eclipse.core.runtime</project> + <project>org.eclipse.swt</project> + <project>org.eclipse.ui</project> </projects> <buildSpec> |
From: <ha...@us...> - 2003-03-02 15:24:58
|
Update of /cvsroot/jbossadmingui/org.jboss.jmx.gui/src/org/jboss/jmx/gui/graph In directory sc8-pr-cvs1:/tmp/cvs-serv21496/src/org/jboss/jmx/gui/graph Added Files: ChartFigure.java Graph.java Test.java GraphTest.java Log Message: XP session --- NEW FILE: Graph.java --- /** * JBoss, the OpenSource EJB server * * Distributable under LGPL license Version 2.1, February 1999. * See terms of license at gnu.org. */ package org.jboss.jmx.gui.graph; import org.eclipse.draw2d.Graphics; import org.eclipse.draw2d.geometry.Rectangle; import org.jboss.jmx.gui.model.GraphModel; /** * @author Hans Dockter * * */ public class Graph { /** * @param rectangle */ public Graph(Rectangle area) { fArea = area; } Rectangle fArea; public Graphics paintGraphic( Graphics g, Rectangle area, GraphModel model) { setArea(area); // g.setBackgroundColor(ColorConstants.blue); // g.fillRectangle(area.getTranslated(4, 4)); // g.setBackgroundColor(ColorConstants.red); // g.fillRectangle(area); // g.drawText("" + 10, area.x, area.y); return g; } private void paintBackground(Graphics g) { // Rectangle workArea = } /** * @return Rectangle */ public Rectangle getArea() { return fArea; } /** * Sets the area. * @param area The area to set */ public void setArea(Rectangle area) { this.fArea = area; } } --- NEW FILE: Test.java --- /** * JBoss, the OpenSource EJB server * * Distributable under LGPL license Version 2.1, February 1999. * See terms of license at gnu.org. */ package org.jboss.jmx.gui.graph; import java.io.FileNotFoundException; import org.eclipse.draw2d.geometry.Rectangle; import org.jboss.mx.logging.file.FileLogger; /** * @author Hans Dockter * * */ public class Test { public static void main(String[] args) throws FileNotFoundException { FileLogger logger = new FileLogger("test"); Rectangle rectangle = new Rectangle(); } } --- NEW FILE: GraphTest.java --- /** * JBoss, the OpenSource EJB server * * Distributable under LGPL license Version 2.1, February 1999. * See terms of license at gnu.org. */ package org.jboss.jmx.gui.graph; import junit.framework.TestCase; import org.eclipse.draw2d.geometry.Rectangle; /** * @author Hans Dockter * * */ public class GraphTest extends TestCase { /** * Constructor for GraphTest. * @param arg0 */ public GraphTest(String arg0) { super(arg0); } public static void main(String[] args) { junit.textui.TestRunner.run(GraphTest.class); } public void testGraph() { Rectangle rectangle = new Rectangle(); Graph graph = new Graph(rectangle); assertSame(rectangle, graph.getArea()); } } |
Update of /cvsroot/jbossadmingui/org.jboss.jmx.gui/src/org/jboss/jmx/gui/model_test In directory sc8-pr-cvs1:/tmp/cvs-serv21496/src/org/jboss/jmx/gui/model_test Modified Files: MBeanTest.java OperationTest.java NodeTest.java AttributeTest.java Log Message: XP session Index: MBeanTest.java =================================================================== RCS file: /cvsroot/jbossadmingui/org.jboss.jmx.gui/src/org/jboss/jmx/gui/model_test/MBeanTest.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** MBeanTest.java 2 Jan 2003 03:03:37 -0000 1.7 --- MBeanTest.java 2 Mar 2003 15:24:55 -0000 1.8 *************** *** 2,10 **** import javax.management.ObjectName; import junit.framework.TestCase; import org.jboss.jmx.gui.model.MBean; - import org.jboss.jmx.gui.model.Node; import org.jboss.jmx.gui.model.Operation; /** --- 2,11 ---- import javax.management.ObjectName; + import junit.framework.TestCase; import org.jboss.jmx.gui.model.MBean; import org.jboss.jmx.gui.model.Operation; + import org.jboss.jmx.gui.model.Server; /** *************** *** 26,30 **** public void testMBean() throws Exception { ! Node node = getNode(); MBean bean = node.getMBeanByInd((node.countMBeans() - 1)); --- 27,31 ---- public void testMBean() throws Exception { ! Server node = getNode(); MBean bean = node.getMBeanByInd((node.countMBeans() - 1)); *************** *** 59,63 **** public void testGetParent() { MBean bean = getMBean(); ! assertTrue(bean.getParent() instanceof Node); } --- 60,64 ---- public void testGetParent() { MBean bean = getMBean(); ! assertTrue(bean.getParent() instanceof Server); } *************** *** 76,80 **** private MBean getMBean() { ! Node node = getNode(); MBean bean = null; try { --- 77,81 ---- private MBean getMBean() { ! Server node = getNode(); MBean bean = null; try { *************** *** 85,93 **** return bean; } ! private Node getNode() { String name = new String("jbossTestServer"); String host = new String("localhost"); int port = 1099; ! Node node = new Node(name, host, port); return node; --- 86,94 ---- return bean; } ! private Server getNode() { String name = new String("jbossTestServer"); String host = new String("localhost"); int port = 1099; ! Server node = new Server(name, host, port); return node; Index: OperationTest.java =================================================================== RCS file: /cvsroot/jbossadmingui/org.jboss.jmx.gui/src/org/jboss/jmx/gui/model_test/OperationTest.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** OperationTest.java 31 Dec 2002 02:10:43 -0000 1.5 --- OperationTest.java 2 Mar 2003 15:24:55 -0000 1.6 *************** *** 4,9 **** import org.jboss.jmx.gui.model.MBean; - import org.jboss.jmx.gui.model.Node; import org.jboss.jmx.gui.model.Operation; /** --- 4,9 ---- import org.jboss.jmx.gui.model.MBean; import org.jboss.jmx.gui.model.Operation; + import org.jboss.jmx.gui.model.Server; /** *************** *** 42,46 **** } private MBean getMBean() { ! Node node = getNode(); MBean bean = null; try { --- 42,46 ---- } private MBean getMBean() { ! Server node = getNode(); MBean bean = null; try { *************** *** 51,59 **** return bean; } ! private Node getNode() { String name = new String("jbossTestServer"); String host = new String("localhost"); int port = 1099; ! Node node = new Node(name, host, port); return node; --- 51,59 ---- return bean; } ! private Server getNode() { String name = new String("jbossTestServer"); String host = new String("localhost"); int port = 1099; ! Server node = new Server(name, host, port); return node; Index: NodeTest.java =================================================================== RCS file: /cvsroot/jbossadmingui/org.jboss.jmx.gui/src/org/jboss/jmx/gui/model_test/NodeTest.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** NodeTest.java 30 Jan 2003 23:33:16 -0000 1.10 --- NodeTest.java 2 Mar 2003 15:24:55 -0000 1.11 *************** *** 2,10 **** import javax.management.ObjectName; import junit.framework.TestCase; ! import org.jboss.jmx.gui.model.AllNodes; import org.jboss.jmx.gui.model.MBean; ! import org.jboss.jmx.gui.model.Node; /** --- 2,12 ---- import javax.management.ObjectName; + import junit.framework.TestCase; ! import org.jboss.jmx.gui.JmxGuiPlugin; import org.jboss.jmx.gui.model.MBean; ! import org.jboss.jmx.gui.model.Server; ! import org.jboss.jmx.gui.model.ServerManager; /** *************** *** 29,33 **** public void testNode() { ! Node node =getNode(); assertNotNull(node); } --- 31,35 ---- public void testNode() { ! Server node =getNode(); assertNotNull(node); } *************** *** 39,43 **** ! Node node = new Node(name, host, port); String newName = node.toString(); assertEquals(name, newName); --- 41,45 ---- ! Server node = new Server(name, host, port); String newName = node.toString(); assertEquals(name, newName); *************** *** 46,50 **** public void testConnect() throws Exception { ! Node node = getNode(); node.connect(); assertTrue(node.isConnected()); --- 48,52 ---- public void testConnect() throws Exception { ! Server node = getNode(); node.connect(); assertTrue(node.isConnected()); *************** *** 55,59 **** public void testDisconnect() throws Exception { ! Node node = getNode(); node.connect(); assertTrue(node.isConnected()); --- 57,61 ---- public void testDisconnect() throws Exception { ! Server node = getNode(); node.connect(); assertTrue(node.isConnected()); *************** *** 63,67 **** public void testIsConnected() throws Exception { ! Node node = getNode(); node.connect(); assertTrue(node.isConnected()); --- 65,69 ---- public void testIsConnected() throws Exception { ! Server node = getNode(); node.connect(); assertTrue(node.isConnected()); *************** *** 71,75 **** public void testMBeansCount() throws Exception { ! Node node = getNode(); node.connect(); assertTrue(node.countMBeans() > 0); --- 73,77 ---- public void testMBeansCount() throws Exception { ! Server node = getNode(); node.connect(); assertTrue(node.countMBeans() > 0); *************** *** 77,81 **** public void testGetMBeanByInd() throws Exception { ! Node node = getNode(); node.connect(); int i = node.countMBeans(); --- 79,83 ---- public void testGetMBeanByInd() throws Exception { ! Server node = getNode(); node.connect(); int i = node.countMBeans(); *************** *** 86,90 **** public void testGetMBean() throws Exception { ! Node node = getNode(); MBean bean = node.getMBeanByInd(node.countMBeans()); ObjectName name = bean.getObjectName(); --- 88,92 ---- public void testGetMBean() throws Exception { ! Server node = getNode(); MBean bean = node.getMBeanByInd(node.countMBeans()); ObjectName name = bean.getObjectName(); *************** *** 94,103 **** public void testCountMBeans() { ! Node node = getNode(); assertTrue(node.countMBeans() > 0); } public void testGetMBeans() { ! Node node = getNode(); node.getMBeans() ; assertTrue(node.getMBeans().length>0); --- 96,105 ---- public void testCountMBeans() { ! Server node = getNode(); assertTrue(node.countMBeans() > 0); } public void testGetMBeans() { ! Server node = getNode(); node.getMBeans() ; assertTrue(node.getMBeans().length>0); *************** *** 105,110 **** public void testSetParent() { ! Node node = getNode(); ! AllNodes nodes = new AllNodes(); node.setParent(nodes); assertEquals(nodes, node.getParent()); --- 107,112 ---- public void testSetParent() { ! Server node = getNode(); ! ServerManager nodes = JmxGuiPlugin.getDefault().getServerManager(); node.setParent(nodes); assertEquals(nodes, node.getParent()); *************** *** 112,116 **** public void testGetAdapter() { ! Node node = getNode(); assertTrue(node.getAdapter(this.getClass()) == null); --- 114,118 ---- public void testGetAdapter() { ! Server node = getNode(); assertTrue(node.getAdapter(this.getClass()) == null); *************** *** 118,122 **** public void testGetParent() { ! Node node = getNode(); AllNodes nodes = new AllNodes(); node.setParent(nodes); --- 120,124 ---- public void testGetParent() { ! Server node = getNode(); AllNodes nodes = new AllNodes(); node.setParent(nodes); *************** *** 124,133 **** } ! private Node getNode() { String name = new String("jbossTestServer"); String host = new String("localhost"); int port = 1099; ! Node node = new Node(name, host, port); return node; } --- 126,135 ---- } ! private Server getNode() { String name = new String("jbossTestServer"); String host = new String("localhost"); int port = 1099; ! Server node = new Server(name, host, port); return node; } Index: AttributeTest.java =================================================================== RCS file: /cvsroot/jbossadmingui/org.jboss.jmx.gui/src/org/jboss/jmx/gui/model_test/AttributeTest.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** AttributeTest.java 3 Jan 2003 02:19:36 -0000 1.6 --- AttributeTest.java 2 Mar 2003 15:24:55 -0000 1.7 *************** *** 5,9 **** import org.jboss.jmx.gui.model.Attribute; import org.jboss.jmx.gui.model.MBean; ! import org.jboss.jmx.gui.model.Node; /** --- 5,9 ---- import org.jboss.jmx.gui.model.Attribute; import org.jboss.jmx.gui.model.MBean; ! import org.jboss.jmx.gui.model.Server; /** *************** *** 60,64 **** } private MBean getMBean() { ! Node node = getNode(); MBean bean = null; try { --- 60,64 ---- } private MBean getMBean() { ! Server node = getNode(); MBean bean = null; try { *************** *** 70,78 **** return bean; } ! private Node getNode() { String name = new String("jbossTestServer"); String host = new String("localhost"); int port = 1099; ! Node node = new Node(name, host, port); return node; --- 70,78 ---- return bean; } ! private Server getNode() { String name = new String("jbossTestServer"); String host = new String("localhost"); int port = 1099; ! Server node = new Server(name, host, port); return node; |
From: <ha...@us...> - 2003-03-02 15:24:58
|
Update of /cvsroot/jbossadmingui/org.jboss.jmx.gui/src/org/jboss/jmx/gui/actions In directory sc8-pr-cvs1:/tmp/cvs-serv21496/src/org/jboss/jmx/gui/actions Modified Files: AddNode.java ReconnectServer.java DeleteNode.java Log Message: XP session Index: AddNode.java =================================================================== RCS file: /cvsroot/jbossadmingui/org.jboss.jmx.gui/src/org/jboss/jmx/gui/actions/AddNode.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** AddNode.java 3 Jan 2003 02:19:35 -0000 1.2 --- AddNode.java 2 Mar 2003 15:24:55 -0000 1.3 *************** *** 4,8 **** import org.eclipse.jface.wizard.WizardDialog; import org.eclipse.swt.widgets.Shell; ! import org.jboss.jmx.gui.GuiPlugin; import org.jboss.jmx.gui.wizard.NewNodeWizard; --- 4,8 ---- import org.eclipse.jface.wizard.WizardDialog; import org.eclipse.swt.widgets.Shell; ! import org.jboss.jmx.gui.JmxGuiPlugin; import org.jboss.jmx.gui.wizard.NewNodeWizard; *************** *** 23,27 **** setText("add Node"); setToolTipText("add a new JBoss Node"); ! setImageDescriptor(GuiPlugin.getImageDescriptor("server_add.gif")); } --- 23,27 ---- setText("add Node"); setToolTipText("add a new JBoss Node"); ! setImageDescriptor(JmxGuiPlugin.getImageDescriptor("server_add.gif")); } Index: ReconnectServer.java =================================================================== RCS file: /cvsroot/jbossadmingui/org.jboss.jmx.gui/src/org/jboss/jmx/gui/actions/ReconnectServer.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ReconnectServer.java 30 Jan 2003 23:33:24 -0000 1.2 --- ReconnectServer.java 2 Mar 2003 15:24:55 -0000 1.3 *************** *** 9,15 **** import org.eclipse.jface.viewers.TreeViewer; import org.eclipse.swt.widgets.Shell; ! import org.jboss.jmx.gui.GuiPlugin; ! import org.jboss.jmx.gui.model.AllNodes; ! import org.jboss.jmx.gui.model.Node; /** --- 9,14 ---- import org.eclipse.jface.viewers.TreeViewer; import org.eclipse.swt.widgets.Shell; ! import org.jboss.jmx.gui.JmxGuiPlugin; ! import org.jboss.jmx.gui.model.Server; /** *************** *** 31,35 **** setText("reconnect"); setToolTipText("reconnect a server node"); ! setImageDescriptor(GuiPlugin.getImageDescriptor("refresh.gif")); } --- 30,34 ---- setText("reconnect"); setToolTipText("reconnect a server node"); ! setImageDescriptor(JmxGuiPlugin.getImageDescriptor("refresh.gif")); } *************** *** 46,59 **** ISelection selection = view.getSelection(); - AllNodes allNodes = new AllNodes(); - Iterator it = ((IStructuredSelection) selection).iterator(); while (it.hasNext()) { Object obj = (Object) it.next(); ! if (obj instanceof Node) { ! Node oneNode = (Node) obj; try { ! oneNode.createConnection(); } catch (Exception e) { System.err.println("can't connect to server " + e); --- 45,56 ---- ISelection selection = view.getSelection(); Iterator it = ((IStructuredSelection) selection).iterator(); while (it.hasNext()) { Object obj = (Object) it.next(); ! if (obj instanceof Server) { ! Server oneServer = (Server) obj; try { ! oneServer.createConnection(); } catch (Exception e) { System.err.println("can't connect to server " + e); Index: DeleteNode.java =================================================================== RCS file: /cvsroot/jbossadmingui/org.jboss.jmx.gui/src/org/jboss/jmx/gui/actions/DeleteNode.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** DeleteNode.java 30 Jan 2003 23:33:25 -0000 1.4 --- DeleteNode.java 2 Mar 2003 15:24:55 -0000 1.5 *************** *** 9,15 **** import org.eclipse.jface.viewers.TreeViewer; import org.eclipse.swt.widgets.Shell; ! import org.jboss.jmx.gui.GuiPlugin; ! import org.jboss.jmx.gui.model.AllNodes; ! import org.jboss.jmx.gui.model.Node; /** --- 9,15 ---- import org.eclipse.jface.viewers.TreeViewer; import org.eclipse.swt.widgets.Shell; ! import org.jboss.jmx.gui.JmxGuiPlugin; ! import org.jboss.jmx.gui.model.Server; ! import org.jboss.jmx.gui.model.ServerManager; /** *************** *** 31,35 **** setText("delete object"); setToolTipText("remove object from view"); ! setImageDescriptor(GuiPlugin.getImageDescriptor("server_delete.gif")); } --- 31,36 ---- setText("delete object"); setToolTipText("remove object from view"); ! setImageDescriptor( ! JmxGuiPlugin.getImageDescriptor("server_delete.gif")); } *************** *** 45,50 **** ISelection selection = view.getSelection(); ! ! AllNodes allNodes = new AllNodes(); Iterator it = ((IStructuredSelection) selection).iterator(); --- 46,51 ---- ISelection selection = view.getSelection(); ! ServerManager serverManager = ! JmxGuiPlugin.getDefault().getServerManager(); Iterator it = ((IStructuredSelection) selection).iterator(); *************** *** 52,59 **** while (it.hasNext()) { Object obj = (Object) it.next(); ! if (obj instanceof Node) { ! Node oneNode = (Node) obj; ! allNodes.removeChild(oneNode); ! } --- 53,59 ---- while (it.hasNext()) { Object obj = (Object) it.next(); ! if (obj instanceof Server) { ! Server oneServer = (Server) obj; ! serverManager.removeServer(oneServer); } |
From: <jo...@us...> - 2003-02-18 20:52:56
|
Update of /cvsroot/jbossadmingui/org.jboss.jmx.gui/src/org/jboss/jmx/gui/views In directory sc8-pr-cvs1:/tmp/cvs-serv31001/src/org/jboss/jmx/gui/views Modified Files: GraphView.java Log Message: draw2 has no properties, will continuie with GEF Graph.... Index: GraphView.java =================================================================== RCS file: /cvsroot/jbossadmingui/org.jboss.jmx.gui/src/org/jboss/jmx/gui/views/GraphView.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** GraphView.java 2 Feb 2003 00:36:39 -0000 1.1 --- GraphView.java 18 Feb 2003 20:52:53 -0000 1.2 *************** *** 1,10 **** package org.jboss.jmx.gui.views; - import org.eclipse.draw2d.ColorConstants; import org.eclipse.draw2d.FigureCanvas; import org.eclipse.swt.widgets.Composite; import org.eclipse.ui.part.ViewPart; - import org.jboss.jmx.gui.graph.ChartFigure; - import org.jboss.jmx.gui.graph.GraphMouseListener; /** --- 1,7 ---- *************** *** 27,33 **** public void createPartControl(Composite parent) { canvas = new FigureCanvas(parent); ! canvas.setContents(new ChartFigure()); ! canvas.setBackground(ColorConstants.white); ! canvas.addMouseListener(new GraphMouseListener()); } --- 24,28 ---- public void createPartControl(Composite parent) { canvas = new FigureCanvas(parent); ! } |
From: <jo...@us...> - 2003-02-18 20:52:56
|
Update of /cvsroot/jbossadmingui/org.jboss.jmx.gui In directory sc8-pr-cvs1:/tmp/cvs-serv31001 Modified Files: plugin.xml .classpath Log Message: draw2 has no properties, will continuie with GEF Graph.... Index: plugin.xml =================================================================== RCS file: /cvsroot/jbossadmingui/org.jboss.jmx.gui/plugin.xml,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** plugin.xml 15 Feb 2003 16:49:01 -0000 1.7 --- plugin.xml 18 Feb 2003 20:52:51 -0000 1.8 *************** *** 27,30 **** --- 27,31 ---- <import plugin="org.eclipse.core.resources"/> <import plugin="org.eclipse.ui"/> + <import plugin="org.eclipse.gef"/> <import plugin="org.eclipse.draw2d"/> </requires> Index: .classpath =================================================================== RCS file: /cvsroot/jbossadmingui/org.jboss.jmx.gui/.classpath,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** .classpath 15 Feb 2003 16:49:45 -0000 1.6 --- .classpath 18 Feb 2003 20:52:52 -0000 1.7 *************** *** 2,13 **** <classpath> <classpathentry kind="src" path="src/"/> ! <classpathentry kind="src" path="lib/"/> ! <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins/org.jboss.jmx.gui"/> ! <classpathentry kind="var" path="JRE_LIB" rootpath="JRE_SRCROOT" sourcepath="JRE_SRC"/> ! <classpathentry kind="lib" path="lib/jboss-connectors.jar"/> ! <classpathentry kind="lib" path="lib/jboss-j2ee.jar"/> ! <classpathentry kind="lib" path="lib/jboss-jmx.jar"/> ! <classpathentry kind="lib" path="lib/jnp-client.jar"/> ! <classpathentry kind="lib" path="C:/Programme/eclipse/plugins/org.junit_3.8.1/junit.jar"/> <classpathentry kind="output" path="bin"/> </classpath> --- 2,41 ---- <classpath> <classpathentry kind="src" path="src/"/> ! <classpathentry exported="true" kind="lib" path="lib/jboss-connectors.jar"/> ! <classpathentry exported="true" kind="lib" path="lib/jboss-j2ee.jar"/> ! <classpathentry exported="true" kind="lib" path="lib/jboss-jmx.jar"/> ! <classpathentry exported="true" kind="lib" path="lib/jnp-client.jar"/> ! <classpathentry kind="var" ! path="ECLIPSE_HOME/plugins/org.eclipse.core.resources_2.1.0/resources.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.core.resources_2.1.0/resourcessrc.zip"/> ! <classpathentry kind="var" ! path="ECLIPSE_HOME/plugins/org.eclipse.ui_2.1.0/ui.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.ui_2.1.0/uisrc.zip"/> ! <classpathentry kind="var" ! path="ECLIPSE_HOME/plugins/org.eclipse.swt.win32_2.1.0/ws/win32/swt.jar" sourcepath="ORG_ECLIPSE_PLATFORM_WIN32_SOURCE_SRC/org.eclipse.swt.win32_2.1.0/ws/win32/swtsrc.zip"/> ! <classpathentry kind="var" ! path="ECLIPSE_HOME/plugins/org.eclipse.text_2.1.0/text.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.text_2.1.0/textsrc.zip"/> ! <classpathentry kind="var" ! path="ECLIPSE_HOME/plugins/org.eclipse.jface_2.1.0/jface.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.jface_2.1.0/jfacesrc.zip"/> ! <classpathentry kind="var" ! path="ECLIPSE_HOME/plugins/org.eclipse.jface.text_2.1.0/jfacetext.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.jface.text_2.1.0/jfacetextsrc.zip"/> ! <classpathentry kind="var" ! path="ECLIPSE_HOME/plugins/org.eclipse.ui.views_2.1.0/views.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.ui.views_2.1.0/viewssrc.zip"/> ! <classpathentry kind="var" ! path="ECLIPSE_HOME/plugins/org.eclipse.ui.workbench_2.1.0/workbench.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.ui.workbench_2.1.0/workbenchsrc.zip"/> ! <classpathentry kind="var" ! path="ECLIPSE_HOME/plugins/org.eclipse.ui.win32_2.1.0/workbenchwin32.jar" sourcepath="ORG_ECLIPSE_PLATFORM_WIN32_SOURCE_SRC/org.eclipse.ui.win32_2.1.0/workbenchwin32src.zip"/> ! <classpathentry kind="var" ! path="ECLIPSE_HOME/plugins/org.eclipse.ui.workbench.texteditor_2.1.0/texteditor.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.ui.workbench.texteditor_2.1.0/texteditorsrc.zip"/> ! <classpathentry kind="var" ! path="ECLIPSE_HOME/plugins/org.eclipse.ui.editors_2.1.0/editors.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.ui.editors_2.1.0/editorssrc.zip"/> ! <classpathentry kind="var" ! path="ECLIPSE_HOME/plugins/org.eclipse.gef_2.0.1/runtime/gef.jar" sourcepath="ORG_ECLIPSE_GEF_SOURCE_SRC/org.eclipse.gef_2.0.1/runtime/gefsrc.zip"/> ! <classpathentry kind="var" ! path="ECLIPSE_HOME/plugins/org.eclipse.draw2d_2.0.1/runtime/draw2d.jar" sourcepath="ORG_ECLIPSE_GEF_SOURCE_SRC/org.eclipse.draw2d_2.0.1/runtime/draw2dsrc.zip"/> ! <classpathentry kind="var" ! path="ECLIPSE_HOME/plugins/org.eclipse.core.runtime_2.1.0/runtime.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.core.runtime_2.1.0/runtimesrc.zip"/> ! <classpathentry kind="var" ! path="ECLIPSE_HOME/plugins/org.eclipse.core.boot_2.1.0/boot.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.core.boot_2.1.0/bootsrc.zip"/> ! <classpathentry kind="var" path="JRE_LIB" sourcepath="JRE_SRC"/> ! <classpathentry kind="var" path="junit"/> <classpathentry kind="output" path="bin"/> </classpath> |
From: <jo...@us...> - 2003-02-18 20:52:56
|
Update of /cvsroot/jbossadmingui/org.jboss.jmx.gui/src/org/jboss/jmx/gui/graph In directory sc8-pr-cvs1:/tmp/cvs-serv31001/src/org/jboss/jmx/gui/graph Removed Files: ChartFigure.java GraphMouseListener.java Value.java Log Message: draw2 has no properties, will continuie with GEF Graph.... --- ChartFigure.java DELETED --- --- GraphMouseListener.java DELETED --- --- Value.java DELETED --- |
From: <jo...@us...> - 2003-02-15 16:49:47
|
Update of /cvsroot/jbossadmingui/org.jboss.jmx.gui In directory sc8-pr-cvs1:/tmp/cvs-serv6758 Modified Files: gui.jar .classpath Log Message: try find werners problem Index: gui.jar =================================================================== RCS file: /cvsroot/jbossadmingui/org.jboss.jmx.gui/gui.jar,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 Binary files /tmp/cvsJkItql and /tmp/cvsY6Cwqw differ Index: .classpath =================================================================== RCS file: /cvsroot/jbossadmingui/org.jboss.jmx.gui/.classpath,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** .classpath 15 Dec 2002 14:08:26 -0000 1.5 --- .classpath 15 Feb 2003 16:49:45 -0000 1.6 *************** *** 2,17 **** <classpath> <classpathentry kind="src" path="src/"/> <classpathentry kind="var" path="JRE_LIB" rootpath="JRE_SRCROOT" sourcepath="JRE_SRC"/> - <classpathentry kind="lib" path="C:/Programme/eclipse/plugins/org.eclipse.core.resources_2.1.0/resources.jar"/> - <classpathentry kind="lib" path="C:/Programme/eclipse/plugins/org.eclipse.core.runtime_2.1.0/runtime.jar"/> - <classpathentry kind="lib" path="C:/Programme/eclipse/plugins/org.eclipse.jface_2.1.0/jface.jar"/> - <classpathentry kind="lib" path="C:/Programme/eclipse/plugins/org.eclipse.ui_2.1.0/ui.jar"/> - <classpathentry kind="lib" path="C:/Programme/eclipse/plugins/org.eclipse.swt.win32_2.1.0/ws/win32/swt.jar"/> - <classpathentry kind="lib" path="C:/Programme/eclipse/plugins/org.eclipse.ui.workbench_2.1.0/workbench.jar"/> - <classpathentry kind="lib" path="C:/Programme/eclipse/plugins/org.junit_3.8.1/junit.jar"/> - <classpathentry kind="lib" path="lib/jboss-jmx.jar"/> <classpathentry kind="lib" path="lib/jboss-connectors.jar"/> - <classpathentry kind="lib" path="lib/jnp-client.jar"/> <classpathentry kind="lib" path="lib/jboss-j2ee.jar"/> <classpathentry kind="output" path="bin"/> </classpath> --- 2,13 ---- <classpath> <classpathentry kind="src" path="src/"/> + <classpathentry kind="src" path="lib/"/> + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins/org.jboss.jmx.gui"/> <classpathentry kind="var" path="JRE_LIB" rootpath="JRE_SRCROOT" sourcepath="JRE_SRC"/> <classpathentry kind="lib" path="lib/jboss-connectors.jar"/> <classpathentry kind="lib" path="lib/jboss-j2ee.jar"/> + <classpathentry kind="lib" path="lib/jboss-jmx.jar"/> + <classpathentry kind="lib" path="lib/jnp-client.jar"/> + <classpathentry kind="lib" path="C:/Programme/eclipse/plugins/org.junit_3.8.1/junit.jar"/> <classpathentry kind="output" path="bin"/> </classpath> |
From: <jo...@us...> - 2003-02-15 16:49:04
|
Update of /cvsroot/jbossadmingui/org.jboss.jmx.gui In directory sc8-pr-cvs1:/tmp/cvs-serv6564 Modified Files: plugin.xml Log Message: try find werners problem Index: plugin.xml =================================================================== RCS file: /cvsroot/jbossadmingui/org.jboss.jmx.gui/plugin.xml,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** plugin.xml 3 Feb 2003 17:52:45 -0000 1.6 --- plugin.xml 15 Feb 2003 16:49:01 -0000 1.7 *************** *** 4,8 **** name="org.jboss.jmx.gui Plug-in" version="1.0.0" ! provider-name="stefan groschupf, media-style.com" class="org.jboss.jmx.gui.GuiPlugin"> --- 4,8 ---- name="org.jboss.jmx.gui Plug-in" version="1.0.0" ! provider-name="sg_at_media-style.com and werner_at_shiftat.com" class="org.jboss.jmx.gui.GuiPlugin"> *************** *** 129,134 **** point="org.eclipse.ui.views"> <category ! name="JBoss-JMX-Gui" ! parentCategory="" id="org.jboss.jmx.gui"> </category> --- 129,133 ---- point="org.eclipse.ui.views"> <category ! name="JMX Category" id="org.jboss.jmx.gui"> </category> *************** *** 138,149 **** category="org.jboss.jmx.gui" class="org.jboss.jmx.gui.views.JmxView" ! id="org.jboss.jmx.gui.JmxView"> </view> <view ! name="JMX Graph View" icon="icons/jboss_server.gif" category="org.jboss.jmx.gui" class="org.jboss.jmx.gui.views.GraphView" ! id="org.jboss.jmx.gui.GraphView"> </view> </extension> --- 137,148 ---- category="org.jboss.jmx.gui" class="org.jboss.jmx.gui.views.JmxView" ! id="org.jboss.jmx.gui.views.JmxView"> </view> <view ! name="JMX AttributeGraph" icon="icons/jboss_server.gif" category="org.jboss.jmx.gui" class="org.jboss.jmx.gui.views.GraphView" ! id="org.jboss.jmx.gui.views.AttributeGraph"> </view> </extension> |
From: <jo...@us...> - 2003-02-03 21:44:50
|
Update of /cvsroot/jbossadmingui/org.jboss.jmx.gui In directory sc8-pr-cvs1:/tmp/cvs-serv28633 Removed Files: readme.txt Log Message: was only a temp. --- readme.txt DELETED --- |
From: <jo...@us...> - 2003-02-03 21:43:47
|
Update of /cvsroot/jbossadmingui/org.jboss.jmx.gui In directory sc8-pr-cvs1:/tmp/cvs-serv28102 Added Files: readme.txt Log Message: SMTP dead help --- NEW FILE: readme.txt --- SMTP dead... ;-( need a temp one, you have one? Take care that you had the GEF runtime Plugin installed and don't miss add it to the classpath by developing... http://www.eclipse.org/gef/ |
From: <jo...@us...> - 2003-02-03 17:52:53
|
Update of /cvsroot/jbossadmingui/org.jboss.jmx.gui In directory sc8-pr-cvs1:/tmp/cvs-serv13655 Modified Files: plugin.xml Log Message: with new graphView Index: plugin.xml =================================================================== RCS file: /cvsroot/jbossadmingui/org.jboss.jmx.gui/plugin.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** plugin.xml 3 Jan 2003 02:19:36 -0000 1.5 --- plugin.xml 3 Feb 2003 17:52:45 -0000 1.6 *************** *** 27,30 **** --- 27,31 ---- <import plugin="org.eclipse.core.resources"/> <import plugin="org.eclipse.ui"/> + <import plugin="org.eclipse.draw2d"/> </requires> *************** *** 128,141 **** point="org.eclipse.ui.views"> <category ! name="JBoss-IDE" parentCategory="" ! id="org.jboss.ide.eclipse.launcher.LauncherPlugin"> </category> <view name="JMX View" icon="icons/jboss_server.gif" ! category="org.jboss.ide.eclipse.launcher.LauncherPlugin" class="org.jboss.jmx.gui.views.JmxView" ! id="org.jboss.ide.eclipse.launcher.LauncherPlugin"> </view> </extension> --- 129,149 ---- point="org.eclipse.ui.views"> <category ! name="JBoss-JMX-Gui" parentCategory="" ! id="org.jboss.jmx.gui"> </category> <view name="JMX View" icon="icons/jboss_server.gif" ! category="org.jboss.jmx.gui" class="org.jboss.jmx.gui.views.JmxView" ! id="org.jboss.jmx.gui.JmxView"> ! </view> ! <view ! name="JMX Graph View" ! icon="icons/jboss_server.gif" ! category="org.jboss.jmx.gui" ! class="org.jboss.jmx.gui.views.GraphView" ! id="org.jboss.jmx.gui.GraphView"> </view> </extension> |
From: Werner R. <we...@sh...> - 2003-02-01 13:35:03
|
Test message -- ---------------------------------------------------------------------- ir. Werner Ramaekers Enterprise Java Solutions Architect - Shift@ Sun Certified Java Programmer - BeJUG steering commitee member "May the source be with you." Read my Blog at http://www.werner.be ---------------------------------------------------------------------- |