Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 79401 Details for
Bug 116439
[Cleanup] Logic Flow shape does not have green bar anymore
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed patch
116439.txt (text/plain), 2.35 KB, created by
Carson Li
on 2007-09-28 10:38:25 EDT
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Carson Li
Created:
2007-09-28 10:38:25 EDT
Size:
2.35 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.gmf.examples.runtime.diagram.logic >Index: src/org/eclipse/gmf/examples/runtime/diagram/logic/internal/figures/LogicFlowBorder.java >=================================================================== >RCS file: /cvsroot/modeling/org.eclipse.gmf/examples/org.eclipse.gmf.examples.runtime.diagram.logic/src/org/eclipse/gmf/examples/runtime/diagram/logic/internal/figures/LogicFlowBorder.java,v >retrieving revision 1.3 >diff -u -r1.3 LogicFlowBorder.java >--- src/org/eclipse/gmf/examples/runtime/diagram/logic/internal/figures/LogicFlowBorder.java 4 Nov 2005 21:27:54 -0000 1.3 >+++ src/org/eclipse/gmf/examples/runtime/diagram/logic/internal/figures/LogicFlowBorder.java 27 Sep 2007 18:46:24 -0000 >@@ -16,6 +16,8 @@ > import org.eclipse.draw2d.geometry.Dimension; > import org.eclipse.draw2d.geometry.Insets; > import org.eclipse.draw2d.geometry.Rectangle; >+import org.eclipse.gef.examples.logicdesigner.figures.LogicColorConstants; >+import org.eclipse.swt.graphics.Color; > > > /** >@@ -27,21 +29,23 @@ > public class LogicFlowBorder > extends org.eclipse.draw2d.LineBorder > { >- >- private int grabBarWidth; >- private Dimension grabBarSize; > >+ //changed initialization standard due to bound differences between >+ //GMF and GEF examples >+ protected int grabBarWidth = 500; >+ protected Dimension grabBarSize = new Dimension(grabBarWidth, 450); >+ > public LogicFlowBorder() { > // do nothing > } >- >- public LogicFlowBorder(Dimension size) { >- setGrabBarWidth(size.width); >- this.grabBarSize = new Dimension(size); >+ >+ public LogicFlowBorder(int width) { >+ setGrabBarWidth(width); >+ grabBarSize = new Dimension(width, 180); > } >- >+ > public Insets getInsets(IFigure figure){ >- return new Insets(getWidth()+2, grabBarWidth+2, getWidth()+2, getWidth()+2); >+ return new Insets(getWidth()+2, grabBarWidth+20, getWidth()+2, getWidth()+2); > } > > public Dimension getPreferredSize() { >@@ -51,6 +55,9 @@ > public void paint(IFigure figure, Graphics graphics, Insets insets) { > Rectangle bounds = figure.getBounds(); > tempRect.setBounds(new Rectangle(bounds.x, bounds.y, grabBarWidth, bounds.height)); >+ //color for logicGreen >+ Color tempColor = new Color(null, 123,174,148); >+ graphics.setBackgroundColor(tempColor); > graphics.fillRectangle(tempRect); > super.paint(figure, graphics, insets); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 116439
: 79401