[jboss-cvs] jbosside/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/extensions ...
Robert Stryker
rawblem at gmail.com
Wed Nov 15 17:26:57 EST 2006
User: rawb
Date: 06/11/15 17:26:57
Modified: as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/extensions
JBossServerViewExtension.java
Added: as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/extensions
IEventLogLabelProvider.java
Log:
Rebuilt the event log API and fixed some UI bugs preventing an efficient refresh of the tree.
Revision Changes Path
1.2 +8 -1 jbosside/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/extensions/JBossServerViewExtension.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: JBossServerViewExtension.java
===================================================================
RCS file: /cvsroot/jboss/jbosside/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/extensions/JBossServerViewExtension.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- JBossServerViewExtension.java 10 Nov 2006 00:30:21 -0000 1.1
+++ JBossServerViewExtension.java 15 Nov 2006 22:26:57 -0000 1.2
@@ -8,6 +8,7 @@
import org.eclipse.ui.views.properties.IPropertySheetPage;
import org.jboss.ide.eclipse.as.ui.preferencepages.ViewProviderPreferenceComposite;
import org.jboss.ide.eclipse.as.ui.views.server.JBossServerView;
+import org.jboss.ide.eclipse.as.ui.views.server.JBossServerTableViewer.ContentWrapper;
public abstract class JBossServerViewExtension {
protected ServerViewProvider provider;
@@ -61,9 +62,15 @@
}
protected void refreshViewer() {
+ refreshViewer(null);
+ }
+ protected void refreshViewer(Object o) {
if( isEnabled() ) {
try {
+ if( o == null )
JBossServerView.getDefault().refreshJBTree(provider);
+ else
+ JBossServerView.getDefault().refreshJBTree(new ContentWrapper(o, provider));
} catch(Exception e) {
}
}
1.1 date: 2006/11/15 22:26:57; author: rawb; state: Exp;jbosside/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/extensions/IEventLogLabelProvider.java
Index: IEventLogLabelProvider.java
===================================================================
/**
* JBoss, a Division of Red Hat
* Copyright 2006, Red Hat Middleware, LLC, and individual contributors as indicated
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jboss.ide.eclipse.as.ui.views.server.extensions;
import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.swt.graphics.Image;
import org.jboss.ide.eclipse.as.core.model.EventLogModel.EventLogTreeItem;
/**
*
* @author rob.stryker at jboss.com
*/
public interface IEventLogLabelProvider extends ILabelProvider {
public boolean supports( String type );
public Image getImage(EventLogTreeItem item);
public String getText(EventLogTreeItem item);
}
More information about the jboss-cvs-commits
mailing list