Skip to content

Commit

Permalink
[releng] Fix property view GridData cannot be cast to FillData issue
Browse files Browse the repository at this point in the history
Change-Id: Ibb2d28cbd131601424a513743b9d4937e6fe26a9
Signed-off-by: Sandu Postaru <[email protected]>
  • Loading branch information
sandupostaru committed Dec 6, 2019
1 parent 1a2e291 commit a03c673
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ public boolean select(Object toTest) {
public void createControls(Composite parent, TabbedPropertySheetPage aTabbedPropertySheetPage) {
super.createControls(parent, aTabbedPropertySheetPage);

rootParentComposite.setLayout(new GridLayout());
rootParentComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
parent.setLayout(new GridLayout());
parent.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));

criteria = new IndirectCapellaElementCriteriaMultipleSemanticField(getReferencesGroup(), Messages.PropertySection_filteringLabel,
getWidgetFactory(), new CapellaElementCriteria());
Expand Down Expand Up @@ -111,17 +111,17 @@ public void setInput(IWorkbenchPart part, ISelection selection) {
if (selected instanceof CapellaElement) {
if (selected.eClass().equals(CsPackage.eINSTANCE.getPart())) {
boolean allowMultiplePart = TriStateBoolean.True
.equals(CapellaProjectHelper.isReusableComponentsDriven((Part) selected));
.equals(CapellaProjectHelper.isReusableComponentsDriven(selected));
if (!allowMultiplePart) {
AbstractType type = ((Part) selected).getAbstractType();
if ((type != null) && !(type instanceof ConfigurationItem)) {
super.setInput(part, new StructuredSelection(type));
loadData((CapellaElement) type);
loadData(type);
return;
}
}
}
loadData((CapellaElement) selected);
loadData(selected);
}
}
super.setInput(part, selection);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ public boolean select(Object toTest) {
public void createControls(Composite parent, TabbedPropertySheetPage aTabbedPropertySheetPage) {
super.createControls(parent, aTabbedPropertySheetPage);

rootParentComposite.setLayout(new GridLayout());
rootParentComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
parent.setLayout(new GridLayout());
parent.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));

filteringResults = new MultipleSemanticField(getReferencesGroup(),
Messages.PropertySection_filteringResults, getWidgetFactory(), new AbstractMultipleSemanticFieldController() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ public boolean select(Object toTest) {
public void createControls(Composite parent, TabbedPropertySheetPage aTabbedPropertySheetPage) {
super.createControls(parent, aTabbedPropertySheetPage);

rootParentComposite.setLayout(new GridLayout());
rootParentComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
parent.setLayout(new GridLayout());
parent.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
criteria = new CriteriaMultipleSemanticField(getReferencesGroup(), Messages.PropertySection_filteringLabel, getWidgetFactory(),
new CriterionSetFilteringCriteriaController());
criteria.setDisplayedInWizard(isDisplayedInWizard());
Expand Down

0 comments on commit a03c673

Please sign in to comment.