Skip to content
Snippets Groups Projects
Commit 7f55508c authored by Johannes Eder's avatar Johannes Eder
Browse files

detach function for imported library elements

refs 2067
parent ecbf2f93
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,7 @@ Export-Package: org.fortiss.tooling.kernel.ui,
org.fortiss.tooling.kernel.ui.extension,
org.fortiss.tooling.kernel.ui.extension.base,
org.fortiss.tooling.kernel.ui.extension.data,
org.fortiss.tooling.kernel.ui.internal.properties,
org.fortiss.tooling.kernel.ui.internal.views,
org.fortiss.tooling.kernel.ui.listener,
org.fortiss.tooling.kernel.ui.presentation,
......
......@@ -98,15 +98,6 @@
type="org.fortiss.tooling.kernel.model.INamedCommentedElement">
</input>
</propertySection>
<propertySection
class="org.fortiss.tooling.kernel.ui.internal.properties.ElementWithURIPropertySection"
enablesFor="1"
id="org.fortiss.tooling.kernel.ui.internal.properties.ElementWithURIPropertySection"
tab="org.fortiss.tooling.kernel.ui.property.tab.general">
<input
type="org.fortiss.tooling.kernel.model.IElementWithURI">
</input>
</propertySection>
</propertySections>
</extension>
<extension
......
......@@ -61,7 +61,7 @@ import org.fortiss.tooling.kernel.service.ILibraryService;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: A4BF43CE1D660A32516CA5E61D3B9A16
* @ConQAT.Rating YELLOW Hash: DA2EE95685A0AA5D41B70BD9D991AD09
*/
public abstract class PropertySectionBase extends AbstractPropertySection {
......@@ -238,8 +238,8 @@ public abstract class PropertySectionBase extends AbstractPropertySection {
}
/** Creates a form entry. */
protected void createFormEntry(Control control, String labelName) {
createFormEntryAndReturnLabel(control, labelName);
protected Label createFormEntry(Control control, String labelName) {
return createFormEntryAndReturnLabel(control, labelName);
}
/** Creates a form entry and return the label */
......
......@@ -29,9 +29,9 @@ import org.fortiss.tooling.kernel.ui.extension.base.PropertySectionBase;
* @author ratiu
* @author $Author: ratiu $
* @version $Rev: 5274 $
* @ConQAT.Rating GREEN Hash: 12E169C7FB3545436AB52222BFD02A3F
* @ConQAT.Rating YELLOW Hash: EABEEDA3A7800A65A2310FCA9D0591A4
*/
public final class ElementWithURIPropertySection extends PropertySectionBase {
public class ElementWithURIPropertySection extends PropertySectionBase {
/** URI edit widget. */
private Text uriText;
......
......@@ -25,6 +25,7 @@ import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage;
import org.fortiss.tooling.kernel.model.FortissToolingKernelPackage;
import org.fortiss.tooling.kernel.model.ILibraryElementReference;
import org.fortiss.tooling.kernel.model.INamedCommentedElement;
import org.fortiss.tooling.kernel.ui.extension.IModelElementHandler;
import org.fortiss.tooling.kernel.ui.extension.base.PropertySectionBase;
......@@ -37,7 +38,7 @@ import org.fortiss.tooling.kernel.ui.util.ObservableUtils;
* @author ratiu
* @author $Author$
* @version $Rev$
* @ConQAT.Rating GREEN Hash: 536B0507037A83401119BD667E1B1164
* @ConQAT.Rating YELLOW Hash: 09D914F4FA7DCCCBE0AA153D9F900BCB
*/
public class NamedCommentedPropertySection extends PropertySectionBase {
......@@ -85,6 +86,11 @@ public class NamedCommentedPropertySection extends PropertySectionBase {
public void refresh() {
super.refresh();
if(namedCommented instanceof ILibraryElementReference) {
nameText.setEnabled(false);
commentText.setEnabled(false);
}
IObservableValue modelObservable =
ObservableUtils.observeValue(namedCommented,
FortissToolingKernelPackage.Literals.INAMED_ELEMENT__NAME);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment