Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

set default image for minimized editor area

  • Loading branch information...
commit 449d547df3c13c239dc4995f52cd6e9726eaab69 1 parent 5d4a0e8
@semanticsoft authored
View
5 org.semanticsoft.vaaclipse.behaviour/src/org/semanticsoft/vaaclipse/behaviour/MinMaxAddon.java
@@ -555,7 +555,10 @@ private void updateToolBar(MUIElement element, MToolBar toolBar)
MUILabel labelElement = getLabelElement(element);
if (labelElement != null)
{
- partItem.setIconURI(labelElement.getIconURI());
+ if (labelElement.getIconURI() != null && labelElement.getIconURI().trim().length() > 0)
@ahoehma
ahoehma added a note

You can use Guava's !Strings.isEmptyOrNull(labelElement.getIconURI()) :-)

@semanticsoft Owner

Thanks ) I have a tons of own such simple utility classes in each projects except this )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ partItem.setIconURI(labelElement.getIconURI());
+ else
+ partItem.setIconURI("platform:/plugin/org.semanticsoft.vaaclipse.resources/VAADIN/themes/vaaclipse_default_theme/img/editor_area.png");
toolBar.getChildren().add(partItem);
MPart part = getLeafPart(element);
item2Element.put(partItem, part);
Please sign in to comment.
Something went wrong with that request. Please try again.