Move conditional to commons
This commit is contained in:
@@ -31,6 +31,7 @@ import org.json.JSONArray;
|
||||
import org.json.JSONObject;
|
||||
import org.springframework.ide.vscode.boot.java.handlers.HoverProvider;
|
||||
import org.springframework.ide.vscode.boot.java.utils.HoverContentUtils;
|
||||
import org.springframework.ide.vscode.commons.boot.app.cli.RunningAppConditional;
|
||||
import org.springframework.ide.vscode.commons.boot.app.cli.SpringBootApp;
|
||||
import org.springframework.ide.vscode.commons.util.BadLocationException;
|
||||
import org.springframework.ide.vscode.commons.util.Log;
|
||||
@@ -229,17 +230,4 @@ public class ConditionalsLiveHoverProvider implements HoverProvider {
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
||||
public static class RunningAppConditional {
|
||||
|
||||
public final String condition;
|
||||
public final String message;
|
||||
public final SpringBootApp app;
|
||||
|
||||
public RunningAppConditional(SpringBootApp app, String condition, String message) {
|
||||
this.condition = condition;
|
||||
this.message = message;
|
||||
this.app = app;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
/*******************************************************************************
|
||||
* Copyright (c) 2017 Pivotal, 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:
|
||||
* Pivotal, Inc. - initial API and implementation
|
||||
*******************************************************************************/
|
||||
package org.springframework.ide.vscode.commons.boot.app.cli;
|
||||
|
||||
import org.springframework.ide.vscode.commons.boot.app.cli.SpringBootApp;
|
||||
|
||||
public class RunningAppConditional {
|
||||
|
||||
public final String condition;
|
||||
public final String message;
|
||||
public final SpringBootApp app;
|
||||
|
||||
public RunningAppConditional(SpringBootApp app, String condition, String message) {
|
||||
this.condition = condition;
|
||||
this.message = message;
|
||||
this.app = app;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user