Commit 606962cc authored by Miklos Magyari's avatar Miklos Magyari
Browse files

Rich hover is now resizable


Signed-off-by: Miklos Magyari's avatarMiklos Magyari <miklos.magyari@sigmatechnology.se>
parent b4e8d9ac
......@@ -14,6 +14,7 @@ import org.eclipse.jface.text.IInformationControlExtension2;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.StyleRange;
import org.eclipse.swt.custom.StyledText;
import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.titan.designer.editors.actions.SwitchHoverWindowContentAction;
......@@ -34,11 +35,13 @@ public class Ttcn3HoverInfoControl extends AbstractInformationControl implements
private boolean isRich;
public Ttcn3HoverInfoControl(Shell parentShell, String string) {
this(parentShell, string, false);
super(parentShell, string);
createContent(parentShell);
create();
}
public Ttcn3HoverInfoControl(Shell parentShell, String string, boolean isRich) {
super(parentShell, string);
super(parentShell, isRich);
this.isRich = isRich;
createContent(parentShell);
create();
......@@ -56,7 +59,7 @@ public class Ttcn3HoverInfoControl extends AbstractInformationControl implements
if (fShell != null)
fShell.setFocus();
}
@Override
public boolean hasContents() {
return content.getText() != null;
......
......@@ -46,11 +46,9 @@ import org.eclipse.titan.designer.AST.TTCN3.types.Class_Type;
import org.eclipse.titan.designer.AST.TTCN3.types.Referenced_Type;
import org.eclipse.titan.designer.editors.BaseTextHover;
import org.eclipse.titan.designer.editors.IReferenceParser;
import org.eclipse.titan.designer.editors.StyledCompletionProposal;
import org.eclipse.titan.designer.editors.Stylers;
import org.eclipse.titan.designer.editors.controls.Ttcn3HoverContent;
import org.eclipse.titan.designer.editors.controls.Ttcn3HoverInfoControl;
import org.eclipse.titan.designer.graphics.ImageCache;
import org.eclipse.titan.designer.parsers.CompilationTimeStamp;
import org.eclipse.titan.designer.parsers.GlobalParser;
import org.eclipse.titan.designer.parsers.ProjectSourceParser;
......
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