forked from eclipse-4diac/4diac-ide
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Watch colors also in FB Debug View
- Loading branch information
Showing
3 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
...eclipse.fordiac.ide.debug.ui/src/org/eclipse/fordiac/ide/debug/ui/DebugColorProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2024 Martin Erich Jobst | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Martin Jobst - initial API and implementation and/or initial documentation | ||
* Alois Zoitl - extracted from org.eclipse.fordiac.ide.deployment.debug.ui.DeploymentDebugModelPresentation | ||
*******************************************************************************/ | ||
package org.eclipse.fordiac.ide.debug.ui; | ||
|
||
import org.eclipse.jface.resource.JFaceResources; | ||
import org.eclipse.swt.graphics.Color; | ||
|
||
public final class DebugColorProvider { | ||
|
||
public static final String WATCH_COLOR = "org.eclipse.fordiac.ide.deployment.debug.ui.watchColor"; //$NON-NLS-1$ | ||
|
||
public static final String WATCH_TEXT_COLOR = "org.eclipse.fordiac.ide.deployment.debug.ui.watchTextColor"; //$NON-NLS-1$ | ||
|
||
public static Color getWatchColor() { | ||
return JFaceResources.getColorRegistry().get(WATCH_COLOR); | ||
} | ||
|
||
public static Color getWatchTextColor() { | ||
return JFaceResources.getColorRegistry().get(WATCH_TEXT_COLOR); | ||
} | ||
|
||
private DebugColorProvider() { | ||
throw new UnsupportedOperationException("Utility class must not be inherited"); //$NON-NLS-1$ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters