Author: rob.stryker(a)jboss.com
Date: 2007-09-20 19:49:06 -0400 (Thu, 20 Sep 2007)
New Revision: 3744
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/extensions/PropertySheetFactory.java
Log:
removing compiler warnings (generics)
removed unused code
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/extensions/PropertySheetFactory.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/extensions/PropertySheetFactory.java 2007-09-20
23:47:41 UTC (rev 3743)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/extensions/PropertySheetFactory.java 2007-09-20
23:49:06 UTC (rev 3744)
@@ -10,7 +10,6 @@
import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.swt.SWT;
-import org.eclipse.swt.custom.SashForm;
import org.eclipse.swt.events.ControlAdapter;
import org.eclipse.swt.events.ControlEvent;
import org.eclipse.swt.graphics.Image;
@@ -19,147 +18,17 @@
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.widgets.Tree;
import org.eclipse.swt.widgets.TreeColumn;
import org.eclipse.ui.IActionBars;
import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.views.properties.IPropertySheetPage;
import org.jboss.ide.eclipse.as.ui.Messages;
-import org.jboss.ide.eclipse.as.ui.views.server.ExtensionTableViewer;
import org.jboss.ide.eclipse.as.ui.views.server.ExtensionTableViewer.ContentWrapper;
public class PropertySheetFactory {
- /**
- * Creates a JBossServersViewPropertySheetPage type property sheet.
- * It has a tree-table and a text box and the two can be moved around.
- * @return
- */
-// public static PropertiesTextSashPropertiesPage
createPropertiesTextSashPropertiesPage() {
-// return new PropertiesTextSashPropertiesPage();
-// }
-//
-// public static class PropertiesTextSashPropertiesPage implements IPropertySheetPage {
-//
-// protected TreeViewer propertiesViewer;
-// protected SashForm propertiesForm;
-// protected Text propertiesText;
-// protected int[] propertyCols; // For the property columns
-// protected int[] sashCols; // for the properties sashform
-//
-//
-// public void createControl(Composite parent) {
-// setProperties();
-// addPropertyViewer(parent);
-// }
-//
-// private void setProperties() {
-// sashCols = new int[2];
-// sashCols[0] = 100;
-// sashCols[1] = 0;
-//
-// propertyCols = new int[2];
-// propertyCols[0] = 100;
-// propertyCols[1] = 100;
-// }
-//
-// private void addPropertyViewer(Composite form) {
-// propertiesForm = new SashForm(form, SWT.HORIZONTAL);
-// propertiesForm.setLayout(new FillLayout());
-//
-// Composite c1 = new Composite(propertiesForm, SWT.NONE);
-// c1.setLayout(new FillLayout());
-// Tree tTable = new Tree(c1, SWT.SINGLE | SWT.FULL_SELECTION | SWT.H_SCROLL |
SWT.V_SCROLL | SWT.NONE);
-// tTable.setHeaderVisible(true);
-// tTable.setLinesVisible(true);
-// tTable.setLayoutData(new GridData(GridData.FILL_BOTH));
-// tTable.setFont(c1.getFont());
-//
-// TreeColumn column = new TreeColumn(tTable, SWT.SINGLE);
-// column.setText(Messages.property);
-// column.setWidth(propertyCols[0]);
-//
-// TreeColumn column2 = new TreeColumn(tTable, SWT.SINGLE);
-// column2.setText(Messages.value);
-// column2.setWidth(propertyCols[1]);
-//
-// propertiesViewer = new TreeViewer(tTable);
-//
-// Composite c2 = new Composite(propertiesForm, SWT.NONE);
-// c2.setLayout(new FillLayout());
-// propertiesText = new Text(c2, SWT.BORDER | SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL |
SWT.WRAP);
-//
-// propertiesForm.setWeights(sashCols);
-// }
-//
-//
-//
-// public void dispose() {
-// // TODO Auto-generated method stub
-//
-// }
-//
-// public Control getControl() {
-// return propertiesForm;
-// }
-//
-// public void setActionBars(IActionBars actionBars) {
-// }
-//
-// public void setFocus() {
-// }
-//
-// public void selectionChanged(IWorkbenchPart part, ISelection selection) {
-// try {
-// propertiesViewer.setInput(((IStructuredSelection)selection).getFirstElement());
-// } catch( Exception e ) {
-// }
-// }
-//
-//
-// public void showTextOnly() {
-// sashCols[0] = 0;
-// sashCols[1] = 100;
-// propertiesForm.setWeights(sashCols);
-// }
-//
-// public void showPropertiesOnly() {
-// sashCols[0] = 100;
-// sashCols[1] = 0;
-// propertiesForm.setWeights(sashCols);
-// }
-//
-// public void setSashWeights(int properties, int text) {
-// sashCols[0] = properties;
-// sashCols[1] = text;
-// propertiesForm.setWeights(sashCols);
-// }
-//
-// public void setSashWeights(int[] weights) {
-// sashCols = weights;
-// propertiesForm.setWeights(weights);
-// }
-//
-// public void setContentProvider(ITreeContentProvider provider) {
-// propertiesViewer.setContentProvider(provider);
-// }
-//
-// public void setLabelProvider(ITableLabelProvider provider) {
-// propertiesViewer.setLabelProvider(provider);
-// }
-//
-//
-// public Text getText() {
-// return propertiesText;
-// }
-//
-// public TreeViewer getViewer() {
-// return propertiesViewer;
-// }
-// }
-
/**
* Simple properties sheet requiring just content and label providers.
* @return
Show replies by date