Skip to content
This repository has been archived by the owner on Jul 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #80 from jcagarcia/master
Browse files Browse the repository at this point in the history
ROO: Prevent that some help texts be decorated by the Spring Roo Eclipse Shell
  • Loading branch information
martinlippert committed Nov 17, 2016
2 parents 1f84496 + b837fc5 commit 5aa479c
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
/*******************************************************************************
* Copyright (c) 2012 VMware, Inc.
* Copyright (c) 2012 - 2016 VMware, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* VMware, Inc. - initial API and implementation
* DISID Corporation, S.L - Spring Roo maintainer
*******************************************************************************/
package org.springframework.ide.eclipse.roo.ui.internal;

Expand All @@ -32,6 +33,7 @@
* @author Christian Dupuis
* @author Steffen Pingel
* @author Leo Dos Santos
* @author Juan Carlos García
* @since 2.1.0
*/
public class StyledTextAppender {
Expand Down Expand Up @@ -153,7 +155,11 @@ public void run() {
// structure
Matcher matcher = getHyperlinkPattern().matcher(StringUtils.replace(trimmedMessage, NL, "").replace('\\',
'/'));
if (matcher.matches()) {
// If matches and some file has been created, updated or deleted,
// decorate the new file with Hyperlink style.
if (matcher.matches() && (trimmedMessage.startsWith("Created")
|| trimmedMessage.startsWith("Updated")
|| trimmedMessage.startsWith("Deleted"))) {
String prefix = matcher.group(1);
String file = matcher.group(2);
String appendix = matcher.group(5);
Expand Down

0 comments on commit 5aa479c

Please sign in to comment.