plugins/org.symbian.tools.tmw.ui/src/org/symbian/tools/tmw/internal/ui/wizard/FacetsSelectionPanel.java
equal
deleted
inserted
replaced
76 import org.symbian.tools.tmw.core.TMWCore; |
76 import org.symbian.tools.tmw.core.TMWCore; |
77 |
77 |
78 /** |
78 /** |
79 * @author <a href="mailto:konstantin.komissarchik@oracle.com">Konstantin Komissarchik</a> |
79 * @author <a href="mailto:konstantin.komissarchik@oracle.com">Konstantin Komissarchik</a> |
80 */ |
80 */ |
81 |
|
82 @SuppressWarnings("restriction") |
81 @SuppressWarnings("restriction") |
83 public final class FacetsSelectionPanel extends Composite implements ISelectionProvider { |
82 public final class FacetsSelectionPanel extends Composite implements ISelectionProvider { |
84 private final Composite topComposite; |
83 private final Composite topComposite; |
85 private final SashForm sform1; |
84 private final SashForm sform1; |
86 private final CheckboxTableViewer tableViewer; |
85 private final CheckboxTableViewer tableViewer; |
96 private final ImageRegistry imageRegistry; |
95 private final ImageRegistry imageRegistry; |
97 private final IRuntimeLifecycleListener runtimeLifecycleListener; |
96 private final IRuntimeLifecycleListener runtimeLifecycleListener; |
98 private final Text description; |
97 private final Text description; |
99 private final Composite facets; |
98 private final Composite facets; |
100 |
99 |
101 public interface IFilter { |
|
102 boolean check(IProjectFacetVersion fv); |
|
103 } |
|
104 |
|
105 public FacetsSelectionPanel(final Composite parent, final IFacetedProjectWorkingCopy fpjwc) { |
100 public FacetsSelectionPanel(final Composite parent, final IFacetedProjectWorkingCopy fpjwc) { |
106 super(parent, SWT.NONE); |
101 super(parent, SWT.NONE); |
107 |
102 |
108 this.fpjwc = fpjwc; |
103 this.fpjwc = fpjwc; |
109 this.registeredWorkingCopyListeners = new ArrayList<IFacetedProjectListener>(); |
104 this.registeredWorkingCopyListeners = new ArrayList<IFacetedProjectListener>(); |
717 } |
712 } |
718 |
713 |
719 public Image getColumnImage(final Object element, final int column) { |
714 public Image getColumnImage(final Object element, final int column) { |
720 final ISharedImages sharedImages = PlatformUI.getWorkbench().getSharedImages(); |
715 final ISharedImages sharedImages = PlatformUI.getWorkbench().getSharedImages(); |
721 final String imageType; |
716 final String imageType; |
722 |
|
723 if (((IStatus) element).getSeverity() == IStatus.ERROR) { |
717 if (((IStatus) element).getSeverity() == IStatus.ERROR) { |
724 imageType = ISharedImages.IMG_OBJS_ERROR_TSK; |
718 imageType = ISharedImages.IMG_OBJS_ERROR_TSK; |
725 } else { |
719 } else { |
726 imageType = ISharedImages.IMG_OBJS_WARN_TSK; |
720 imageType = ISharedImages.IMG_OBJS_WARN_TSK; |
727 } |
721 } |
728 |
|
729 return sharedImages.getImage(imageType); |
722 return sharedImages.getImage(imageType); |
730 } |
723 } |
731 |
724 |
732 public boolean isLabelProperty(final Object obj, final String s) { |
725 public boolean isLabelProperty(final Object obj, final String s) { |
733 return false; |
726 return false; |