Commit 42cd09dc authored by Johannes Eder's avatar Johannes Eder
Browse files

YELLOW

Issue-Ref: 3886
Issue-Url: https://af3-developer.fortiss.org/issues/3886

Signed-off-by: Johannes Eder's avatarJohannes Eder <eder@fortiss.org>
parent f9bd3dad
......@@ -126,16 +126,6 @@
type="org.fortiss.af3.expression.model.definitions.StructureMember">
</input>
</propertySection>
<propertySection
afterSection="org.fortiss.tooling.kernel.ui.internal.properties.NamedCommentedPropertySection"
class="org.fortiss.af3.expression.ui.properties.EnumerationMemberPropertySection"
enablesFor="1"
id="org.fortiss.af3.micro.ui.typesystem.properties.EnumerationMemberPropertySection"
tab="org.fortiss.tooling.kernel.ui.property.tab.general">
<input
type="org.fortiss.af3.expression.model.definitions.EnumerationMember">
</input>
</propertySection>
<propertySection
afterSection="org.fortiss.tooling.kernel.ui.internal.properties.NamedCommentedPropertySection"
class="org.fortiss.af3.expression.ui.properties.ArrayPropertySection"
......
ArrayPropertySection.java 49c7ab946be39d9ba680fc15f45a7ee635923f98 GREEN
EnumPropertySection.java 9e9367d3a908c529a705e0dd627e04b2cdafc51f YELLOW
EnumerationMemberPropertySection.java 64c12269b9e56c145e0f2087685ccfd4e6ffc345 YELLOW
EnumPropertySection.java f6c6028c3e082314d5c3ef7c6a07de9f2f21a65e YELLOW
FunctionDefinitionPropertySection.java 6b132b194a8dc7e9cd5c3645bf644aa529a8ca67 GREEN
StructureMemberPropertySection.java a214bb2695b4c815e928ee4d8e0a5da91dcf1031 YELLOW
StructurePropertySection.java bae22d304b66258c37c8382b57366352a38b3b10 YELLOW
StructureMemberPropertySection.java 2afb1ca630444ca323f45f6b2114a95a37c73703 YELLOW
StructurePropertySection.java 3d1fe66636166447bb404a18473f9eaa844363a0 YELLOW
......@@ -18,8 +18,6 @@ package org.fortiss.af3.expression.ui.properties;
import static org.fortiss.tooling.kernel.utils.EcoreUtils.copy;
import static org.fortiss.tooling.kernel.utils.KernelModelElementUtils.getParentElement;
import java.util.Set;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
......@@ -47,8 +45,6 @@ public class EnumPropertySection extends PropertySectionBase {
/** The enumeration. */
private Enumeration enumeration;
/** Store the traces. */
private Set<String> traces;
/** Text section showing the traces */
private Text showTraces;
/** The detach label. */
......@@ -56,14 +52,6 @@ public class EnumPropertySection extends PropertySectionBase {
/** The detach button. */
private Button detachButton;
/**
* Check button that enables the user to make the choice if enumeration implements the
* requirement.
*/
private Button enumerationImplReqButton;
/** Label for the "enumeration implement requirement" text. */
private Label enumerationImplreqLabel;
/** {@inheritDoc} */
@Override
public void createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) {
......@@ -71,9 +59,6 @@ public class EnumPropertySection extends PropertySectionBase {
showTraces = createFormText("Traced to:");
showTraces.setEditable(false);
enumerationImplReqButton = getWidgetFactory().createButton(composite, "", SWT.CHECK);
enumerationImplreqLabel =
createFormEntry(enumerationImplReqButton, "Correctly Implement Req.:");
detachButton = getWidgetFactory().createButton(composite, "Detach from library", SWT.NONE);
detachLabel = createFormEntry(detachButton, "Name");
......
/*-------------------------------------------------------------------------+
| Copyright 2011 fortiss GmbH |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
+--------------------------------------------------------------------------*/
package org.fortiss.af3.expression.ui.properties;
import java.util.Set;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage;
import org.fortiss.af3.expression.model.definitions.EnumerationMember;
import org.fortiss.af3.expression.model.definitions.StructureMember;
import org.fortiss.tooling.kernel.ui.extension.base.PropertySectionBase;
/**
* Property section for {@link StructureMember}s.
*
* @author eder
*/
public final class EnumerationMemberPropertySection extends PropertySectionBase {
/** The selected {@link StructureMember}. */
protected EnumerationMember member;
/** Store the traces. */
private Set<String> traces;
/** Text section showing the traces */
private Text showTraces;
/**
* Check button that enables the user to make the choice if enumerationMember implements the
* requirement.
*/
private Button enumerationMemberImplReqButton;
/** Label for the "enumeration member implement requirement" text. */
private Label enumerationMemberImplreqLabel;
/** {@inheritDoc} */
@Override
public void createControls(Composite parent, TabbedPropertySheetPage aTabbedPropertySheetPage) {
super.createControls(parent, aTabbedPropertySheetPage);
showTraces = createFormText("Traced to:");
showTraces.setEditable(false);
enumerationMemberImplReqButton = getWidgetFactory().createButton(composite, "", SWT.CHECK);
enumerationMemberImplreqLabel =
createFormEntry(enumerationMemberImplReqButton, "Correctly Implement Req.:");
}
/** {@inheritDoc} */
@Override
protected void setSectionInput(Object input) {
member = (EnumerationMember)input;
}
/** {@inheritDoc} */
@Override
public void refresh() {
super.refresh();
}
}
......@@ -18,13 +18,8 @@ package org.fortiss.af3.expression.ui.properties;
import static org.fortiss.tooling.kernel.ui.util.DataBindingUtils.performComplexTextBinding;
import static org.fortiss.tooling.kernel.ui.util.ObservableUtils.observeValue;
import java.util.Set;
import org.eclipse.core.databinding.observable.value.IObservableValue;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage;
import org.fortiss.af3.expression.model.definitions.DefinitionsPackage;
......@@ -44,21 +39,12 @@ public final class StructureMemberPropertySection extends PropertySectionBase {
/** The selected {@link StructureMember}. */
protected StructureMember member;
/** Store the traces. */
private Set<String> traces;
/** Text section showing the traces */
private Text showTraces;
/** Member type widget. */
private Text memberTypeText;
/** Check-box button for "Correctly implement requirement". */
private Button structureMemberImplReqButton;
/** Label for the "structure member implement requirement" text. */
private Label structureMemberImplreqLabel;
/** {@inheritDoc} */
@Override
public void createControls(Composite parent, TabbedPropertySheetPage aTabbedPropertySheetPage) {
......@@ -66,9 +52,6 @@ public final class StructureMemberPropertySection extends PropertySectionBase {
showTraces = createFormText("Traced to:");
showTraces.setEditable(false);
structureMemberImplReqButton = getWidgetFactory().createButton(composite, "", SWT.CHECK);
structureMemberImplreqLabel =
createFormEntry(structureMemberImplReqButton, "Correctly Implement Req.:");
memberTypeText = createDecoratedFormText("Type");
}
......
......@@ -18,8 +18,6 @@ package org.fortiss.af3.expression.ui.properties;
import static org.fortiss.tooling.kernel.utils.EcoreUtils.copy;
import static org.fortiss.tooling.kernel.utils.KernelModelElementUtils.getParentElement;
import java.util.Set;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
......@@ -47,8 +45,6 @@ public class StructurePropertySection extends PropertySectionBase {
/** The enumeration. */
private Structure structure;
/** Store the traces. */
private Set<String> traces;
/** Text section showing the traces */
private Text showTraces;
/** The detach label. */
......@@ -56,11 +52,6 @@ public class StructurePropertySection extends PropertySectionBase {
/** The detach button. */
private Button detachButton;
/** Check-box button for "Correctly implement requirement". */
private Button structureImplReqButton;
/** Label for the "structure implement requirement" text. */
private Label structureImplreqLabel;
/** {@inheritDoc} */
@Override
public void createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) {
......@@ -68,9 +59,6 @@ public class StructurePropertySection extends PropertySectionBase {
showTraces = createFormText("Traced to:");
showTraces.setEditable(false);
structureImplReqButton = getWidgetFactory().createButton(composite, "", SWT.CHECK);
structureImplreqLabel =
createFormEntry(structureImplReqButton, "Correctly Implement Req.:");
detachButton = getWidgetFactory().createButton(composite, "Detach from library", SWT.NONE);
detachLabel = createFormEntry(detachButton, "Name");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment