Skip to content
Snippets Groups Projects
Commit 1f774404 authored by Christoph Döbber's avatar Christoph Döbber
Browse files

reviewed portion of tooling.base.ui

refs 311
parent 59cf6ce4
No related branches found
No related tags found
No related merge requests found
Showing
with 27 additions and 14 deletions
...@@ -27,7 +27,7 @@ import org.osgi.framework.BundleContext; ...@@ -27,7 +27,7 @@ import org.osgi.framework.BundleContext;
* @author hoelzl * @author hoelzl
* @author $Author$ * @author $Author$
* @version $Rev$ * @version $Rev$
* @ConQAT.Rating YELLOW Hash: D08B4E6B896E809A083887F9C6F14F97 * @ConQAT.Rating GREEN Hash: 9DC68662D9F1765A0A286793C828A64B
*/ */
public class ToolingBaseUIActivator extends AbstractUIPlugin { public class ToolingBaseUIActivator extends AbstractUIPlugin {
......
...@@ -39,7 +39,7 @@ import org.fortiss.tooling.kernel.service.IPersistencyService; ...@@ -39,7 +39,7 @@ import org.fortiss.tooling.kernel.service.IPersistencyService;
* @author hoelzl * @author hoelzl
* @author $Author$ * @author $Author$
* @version $Rev$ * @version $Rev$
* @ConQAT.Rating YELLOW Hash: 1C61F6AB68C85978EAC5B75371A69DED * @ConQAT.Rating GREEN Hash: DC62440F9F73D431A7044F396EC715C9
*/ */
public abstract class ConnectorConnectionCompositorBase<HE extends IHierarchicElement, S extends IConnector, T extends IConnector> public abstract class ConnectorConnectionCompositorBase<HE extends IHierarchicElement, S extends IConnector, T extends IConnector>
implements IConnectionCompositor<HE, S, T> { implements IConnectionCompositor<HE, S, T> {
......
...@@ -55,7 +55,7 @@ import org.fortiss.tooling.kernel.service.IPersistencyService; ...@@ -55,7 +55,7 @@ import org.fortiss.tooling.kernel.service.IPersistencyService;
* @author hoelzl * @author hoelzl
* @author $Author$ * @author $Author$
* @version $Rev$ * @version $Rev$
* @ConQAT.Rating YELLOW Hash: C3FC40AF5B9351FB7B4C3D3A5424CCC1 * @ConQAT.Rating GREEN Hash: 37C3A557C68036CCE7206DA269A079F3
*/ */
public abstract class HierarchicElementConnectionCompositorBase<HE extends IHierarchicElement, S extends IHierarchicElement, T extends IHierarchicElement> public abstract class HierarchicElementConnectionCompositorBase<HE extends IHierarchicElement, S extends IHierarchicElement, T extends IHierarchicElement>
implements IConnectionCompositor<HE, S, T> { implements IConnectionCompositor<HE, S, T> {
......
...@@ -40,7 +40,7 @@ import org.fortiss.tooling.kernel.ui.util.DataBindingUtils; ...@@ -40,7 +40,7 @@ import org.fortiss.tooling.kernel.ui.util.DataBindingUtils;
* @author hoelzl * @author hoelzl
* @author $Author$ * @author $Author$
* @version $Rev$ * @version $Rev$
* @ConQAT.Rating YELLOW Hash: 06F0B1246D80A923D8D6CC99575F57A5 * @ConQAT.Rating GREEN Hash: 1C0D4AC12A6198508678FDF15E213AF3
*/ */
public abstract class AbstractDecoratedTextCellDatabindingEditingSupport extends public abstract class AbstractDecoratedTextCellDatabindingEditingSupport extends
AbstractTextCellDatabindingEditingSupport { AbstractTextCellDatabindingEditingSupport {
......
...@@ -38,7 +38,7 @@ import org.fortiss.tooling.kernel.ui.util.DataBindingUtils; ...@@ -38,7 +38,7 @@ import org.fortiss.tooling.kernel.ui.util.DataBindingUtils;
* @author hoelzlf * @author hoelzlf
* @author $Author$ * @author $Author$
* @version $Rev$ * @version $Rev$
* @ConQAT.Rating YELLOW Hash: 4332834DD629BC28D0C0E6C5F3FBEE60 * @ConQAT.Rating RED Hash: 383223FFB9C18CFC5E18AE6C875F2FDA
*/ */
public abstract class AbstractTextCellDatabindingEditingSupport extends public abstract class AbstractTextCellDatabindingEditingSupport extends
EditingSupport { EditingSupport {
...@@ -115,6 +115,8 @@ public abstract class AbstractTextCellDatabindingEditingSupport extends ...@@ -115,6 +115,8 @@ public abstract class AbstractTextCellDatabindingEditingSupport extends
this.cellEditor.setValue(""); this.cellEditor.setValue("");
bindings = createBinding(cellEditor, cell, this.cellEditor, dbc); bindings = createBinding(cellEditor, cell, this.cellEditor, dbc);
// TODO @review CD: don't we use Eclipse.core.runtime.Assert instead of
// CCSMPre?
CCSMPre.isTrue(bindings != null && bindings.length > 0 CCSMPre.isTrue(bindings != null && bindings.length > 0
&& bindings[0] != null, && bindings[0] != null,
"Illegal implementation: no binding returned."); "Illegal implementation: no binding returned.");
......
...@@ -17,6 +17,10 @@ $Id$ ...@@ -17,6 +17,10 @@ $Id$
+--------------------------------------------------------------------------*/ +--------------------------------------------------------------------------*/
package org.fortiss.tooling.base.ui.dialog; package org.fortiss.tooling.base.ui.dialog;
import static org.eclipse.jface.dialogs.IDialogConstants.CANCEL_ID;
import static org.eclipse.jface.dialogs.IDialogConstants.CANCEL_LABEL;
import static org.eclipse.jface.dialogs.IDialogConstants.OK_ID;
import static org.eclipse.jface.dialogs.IDialogConstants.OK_LABEL;
import static org.eclipse.wb.swt.ResourceManager.decorateImage; import static org.eclipse.wb.swt.ResourceManager.decorateImage;
import static org.eclipse.wb.swt.ResourceManager.getPluginImage; import static org.eclipse.wb.swt.ResourceManager.getPluginImage;
import static org.eclipse.wb.swt.SWTResourceManager.BOTTOM_RIGHT; import static org.eclipse.wb.swt.SWTResourceManager.BOTTOM_RIGHT;
...@@ -25,7 +29,6 @@ import java.util.ArrayList; ...@@ -25,7 +29,6 @@ import java.util.ArrayList;
import java.util.List; import java.util.List;
import org.conqat.ide.commons.ui.jface.TreeContentProviderBase; import org.conqat.ide.commons.ui.jface.TreeContentProviderBase;
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jface.dialogs.TitleAreaDialog; import org.eclipse.jface.dialogs.TitleAreaDialog;
import org.eclipse.jface.viewers.DoubleClickEvent; import org.eclipse.jface.viewers.DoubleClickEvent;
import org.eclipse.jface.viewers.IDoubleClickListener; import org.eclipse.jface.viewers.IDoubleClickListener;
...@@ -59,9 +62,11 @@ import org.eclipse.ui.forms.widgets.FormToolkit; ...@@ -59,9 +62,11 @@ import org.eclipse.ui.forms.widgets.FormToolkit;
* @author mou * @author mou
* @author $Author$ * @author $Author$
* @version $Rev$ * @version $Rev$
* @ConQAT.Rating YELLOW Hash: 83D78C1AC95F8C254DFF26D4569C92C3 * @ConQAT.Rating RED Hash: D0847D3C8771737C03D1977C1B5B81DF
*/ */
public class ElementTreeMultiSelectDialog extends TitleAreaDialog { public class ElementTreeMultiSelectDialog extends TitleAreaDialog {
// TODO @review CD: Isn't there plenty of code in common with
// ElementTreeSingleSelectDialog? -> common base class
/** Default content provider */ /** Default content provider */
private static class EmptyTreeContentProvider extends private static class EmptyTreeContentProvider extends
...@@ -148,6 +153,8 @@ public class ElementTreeMultiSelectDialog extends TitleAreaDialog { ...@@ -148,6 +153,8 @@ public class ElementTreeMultiSelectDialog extends TitleAreaDialog {
/** {@inheritDoc} */ /** {@inheritDoc} */
@Override @Override
protected Control createDialogArea(Composite parent) { protected Control createDialogArea(Composite parent) {
// TODO @review CD: externalize to *GUI class
// CAUTION: The code below is automatically generated, do not edit // CAUTION: The code below is automatically generated, do not edit
// manually! // manually!
...@@ -303,9 +310,8 @@ public class ElementTreeMultiSelectDialog extends TitleAreaDialog { ...@@ -303,9 +310,8 @@ public class ElementTreeMultiSelectDialog extends TitleAreaDialog {
/** {@inheritDoc} */ /** {@inheritDoc} */
@Override @Override
protected void createButtonsForButtonBar(Composite parent) { protected void createButtonsForButtonBar(Composite parent) {
createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, createButton(parent, OK_ID, OK_LABEL, false);
false); createButton(parent, CANCEL_ID, CANCEL_LABEL, true);
createButton(parent, IDialogConstants.CANCEL_ID, "Cancel", true);
} }
/** {@inheritDoc} */ /** {@inheritDoc} */
......
...@@ -62,6 +62,9 @@ import org.eclipse.wb.swt.ResourceManager; ...@@ -62,6 +62,9 @@ import org.eclipse.wb.swt.ResourceManager;
*/ */
public class ElementTreeSingleSelectDialog extends TitleAreaDialog { public class ElementTreeSingleSelectDialog extends TitleAreaDialog {
// TODO @review CD: Isn't there plenty of code in common with
// ElementTreeMultiSelectDialog? -> common base class
/** GUI Factory */ /** GUI Factory */
private final FormToolkit formToolkit = new FormToolkit( private final FormToolkit formToolkit = new FormToolkit(
Display.getDefault()); Display.getDefault());
...@@ -141,6 +144,8 @@ public class ElementTreeSingleSelectDialog extends TitleAreaDialog { ...@@ -141,6 +144,8 @@ public class ElementTreeSingleSelectDialog extends TitleAreaDialog {
/** {@inheritDoc} */ /** {@inheritDoc} */
@Override @Override
protected Control createDialogArea(Composite parent) { protected Control createDialogArea(Composite parent) {
// TODO @review CD: externalize to *GUI class
// CAUTION: The code below is automatically generated, do not edit // CAUTION: The code below is automatically generated, do not edit
// manually! // manually!
......
...@@ -24,7 +24,7 @@ package org.fortiss.tooling.base.ui.dialog; ...@@ -24,7 +24,7 @@ package org.fortiss.tooling.base.ui.dialog;
* @author mou * @author mou
* @author $Author$ * @author $Author$
* @version $Rev$ * @version $Rev$
* @ConQAT.Rating YELLOW Hash: 18119587EF4CCE8667EF38F2C34D6C76 * @ConQAT.Rating GREEN Hash: 5C2B3DE414E278D8C6AF42B9A9B9A9CC
*/ */
public interface IDialogEditSupport { public interface IDialogEditSupport {
......
...@@ -34,7 +34,7 @@ import org.fortiss.tooling.kernel.ui.service.IModelElementHandlerService; ...@@ -34,7 +34,7 @@ import org.fortiss.tooling.kernel.ui.service.IModelElementHandlerService;
* @author mou * @author mou
* @author $Author$ * @author $Author$
* @version $Rev$ * @version $Rev$
* @ConQAT.Rating YELLOW Hash: 03BB6022DF79E9871A0AF7503EA9942A * @ConQAT.Rating GREEN Hash: 2115ED45E5130BA9E549B8AEE8DD201F
*/ */
public class ModelElementTreeContentProvider extends TreeContentProviderBase { public class ModelElementTreeContentProvider extends TreeContentProviderBase {
......
...@@ -29,7 +29,7 @@ import org.eclipse.jface.viewers.ITreeContentProvider; ...@@ -29,7 +29,7 @@ import org.eclipse.jface.viewers.ITreeContentProvider;
* @author mou * @author mou
* @author $Author$ * @author $Author$
* @version $Rev$ * @version $Rev$
* @ConQAT.Rating YELLOW Hash: C99AE660759E352AE4D3A9E7BF0C5AD2 * @ConQAT.Rating GREEN Hash: D67E79EAD1793F7BA36881429E291991
*/ */
public class MultiRootTreeContentProvider extends TreeContentProviderBase { public class MultiRootTreeContentProvider extends TreeContentProviderBase {
......
<!-- <!--
$Id$ $Id$
@version $Rev$ @version $Rev$
@ConQAT.Rating YELLOW Hash: F5BA263532A5969D12FAEEF7BDC9B2AF @ConQAT.Rating GREEN Hash: 10C27A17381EDF414F6F734941B5676D
--> -->
<body> <body>
Package for basic dialog classes Package for basic dialog classes
......
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