Compare commits
12 Commits
jding/TUP-
...
release/8.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9f9a381bd7 | ||
|
|
f2599689ed | ||
|
|
3b647c2316 | ||
|
|
4ff0184a49 | ||
|
|
0e37b9632e | ||
|
|
f2a4328037 | ||
|
|
771a1bf810 | ||
|
|
3f7d1a83d9 | ||
|
|
c20078c3d1 | ||
|
|
d13ae7e637 | ||
|
|
6b094dd4fd | ||
|
|
1ebdb18d27 |
@@ -57,12 +57,17 @@ public interface ColorConstants {
|
||||
|
||||
static Color getTableBackgroundColor() {
|
||||
return ITalendThemeService.getColor(ColorConstants.BUNDLE_ID_COMMON_UI_RUNTIME, ColorConstants.KEY_TABLE_BACKGROUND)
|
||||
.orElse(WHITE_COLOR);
|
||||
.orElse(Display.getDefault().getSystemColor(SWT.COLOR_LIST_BACKGROUND));
|
||||
}
|
||||
|
||||
static Color getTableForegroundColor() {
|
||||
return ITalendThemeService.getColor(ColorConstants.BUNDLE_ID_COMMON_UI_RUNTIME, ColorConstants.KEY_TABLE_FOREGROUND)
|
||||
.orElse(Display.getDefault().getSystemColor(SWT.COLOR_BLACK));
|
||||
.orElse(Display.getDefault().getSystemColor(SWT.COLOR_LIST_FOREGROUND));
|
||||
}
|
||||
|
||||
static Color getTableReadOnlyForegroundColor() {
|
||||
return ITalendThemeService.getColor("CONTEXT_TABLE_READONLY_FOREGROUND")
|
||||
.orElse(Display.getDefault().getSystemColor(SWT.COLOR_WIDGET_DARK_SHADOW));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -15,6 +15,7 @@ package org.talend.commons.ui.runtime;
|
||||
import java.util.Optional;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.eclipse.jface.preference.IPreferenceStore;
|
||||
import org.eclipse.jface.util.IPropertyChangeListener;
|
||||
import org.eclipse.swt.graphics.Color;
|
||||
import org.osgi.framework.BundleContext;
|
||||
@@ -29,6 +30,8 @@ public interface ITalendThemeService {
|
||||
|
||||
public static String DEFAULT_PREFERENCE_ID = "org.eclipse.ui.workbench";
|
||||
|
||||
public static String THEME_PREFERENCE_ID = "org.eclipse.e4.ui.css.swt.theme";
|
||||
|
||||
/**
|
||||
* Get color from instance scope preference of default bundleId, which managed by theme; the standard way eclipse
|
||||
* uses
|
||||
@@ -132,6 +135,8 @@ public interface ITalendThemeService {
|
||||
|
||||
void removePropertyChangeListenerFor(String bundleId, IPropertyChangeListener listener);
|
||||
|
||||
IPreferenceStore getThemePreferenceStore();
|
||||
|
||||
static ITalendThemeService get() {
|
||||
try {
|
||||
BundleContext bc = FrameworkUtil.getBundle(ITalendThemeService.class).getBundleContext();
|
||||
|
||||
@@ -18,12 +18,12 @@ import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
|
||||
import org.eclipse.jface.preference.IPreferenceStore;
|
||||
import org.eclipse.jface.preference.PreferenceConverter;
|
||||
import org.eclipse.jface.resource.StringConverter;
|
||||
import org.eclipse.swt.SWT;
|
||||
import org.eclipse.swt.graphics.Color;
|
||||
import org.eclipse.swt.graphics.RGB;
|
||||
import org.eclipse.swt.widgets.Display;
|
||||
import org.talend.commons.ui.runtime.ITalendThemeService;
|
||||
import org.talend.commons.ui.swt.colorstyledtext.scanner.ColoringScanner;
|
||||
|
||||
/**
|
||||
@@ -33,7 +33,7 @@ import org.talend.commons.ui.swt.colorstyledtext.scanner.ColoringScanner;
|
||||
*
|
||||
*/
|
||||
public class ColorManager {
|
||||
|
||||
|
||||
public static final RGB DEFAULT_STRING_COLOR = new RGB(0, 0, 0);
|
||||
|
||||
public static final RGB DEFAULT_KEYWORD1_COLOR = new RGB(50, 32, 160);
|
||||
@@ -106,15 +106,19 @@ public class ColorManager {
|
||||
}
|
||||
|
||||
public Color getColor(String colorName) {
|
||||
RGB prefColor = PreferenceConverter.getColor(store, colorName);
|
||||
Color color = null;
|
||||
if (colorMap.containsKey(colorName) && (colorMap.get(colorName)).getRGB().equals(prefColor)) {
|
||||
color = (Color) colorMap.get(colorName);
|
||||
Color prefColor = getThemeColor(colorName);
|
||||
if (colorMap.containsKey(colorName) && (colorMap.get(colorName)).equals(prefColor)) {
|
||||
return colorMap.get(colorName);
|
||||
} else {
|
||||
color = new Color(Display.getDefault(), prefColor);
|
||||
colorMap.put(colorName, color);
|
||||
colorMap.put(colorName, prefColor);
|
||||
}
|
||||
return color;
|
||||
return prefColor;
|
||||
}
|
||||
|
||||
private static Color getThemeColor(String colorName) {
|
||||
Color c = ITalendThemeService.getColor(colorName)
|
||||
.orElse(Display.getDefault().getSystemColor(SWT.COLOR_INFO_FOREGROUND));
|
||||
return c;
|
||||
}
|
||||
|
||||
public void dispose() {
|
||||
@@ -164,20 +168,20 @@ public class ColorManager {
|
||||
}
|
||||
|
||||
public static void initDefaultColors(IPreferenceStore store) {
|
||||
store.setDefault(NULL_COLOR, StringConverter.asString(DEFAULT_STRING_COLOR));
|
||||
store.setDefault(COMMENT1_COLOR, StringConverter.asString(DEFAULT_COMMENT1_COLOR));
|
||||
store.setDefault(COMMENT2_COLOR, StringConverter.asString(DEFAULT_COMMENT2_COLOR));
|
||||
store.setDefault(LITERAL1_COLOR, StringConverter.asString(DEFAULT_LITERAL1_COLOR));
|
||||
store.setDefault(LITERAL2_COLOR, StringConverter.asString(DEFAULT_LITERAL2_COLOR));
|
||||
store.setDefault(LABEL_COLOR, StringConverter.asString(DEFAULT_LABEL_COLOR));
|
||||
store.setDefault(KEYWORD1_COLOR, StringConverter.asString(DEFAULT_KEYWORD1_COLOR));
|
||||
store.setDefault(KEYWORD2_COLOR, StringConverter.asString(DEFAULT_KEYWORD2_COLOR));
|
||||
store.setDefault(KEYWORD3_COLOR, StringConverter.asString(DEFAULT_KEYWORD3_COLOR));
|
||||
store.setDefault(FUNCTION_COLOR, StringConverter.asString(DEFAULT_FUNCTION_COLOR));
|
||||
store.setDefault(MARKUP_COLOR, StringConverter.asString(DEFAULT_MARKUP_COLOR));
|
||||
store.setDefault(OPERATOR_COLOR, StringConverter.asString(DEFAULT_OPERATOR_COLOR));
|
||||
store.setDefault(DIGIT_COLOR, StringConverter.asString(DEFAULT_DIGIT_COLOR));
|
||||
store.setDefault(INVALID_COLOR, StringConverter.asString(DEFAULT_INVALID_COLOR));
|
||||
store.setDefault(NULL_COLOR, StringConverter.asString(getThemeColor(NULL_COLOR).getRGB()));
|
||||
store.setDefault(COMMENT1_COLOR, StringConverter.asString(getThemeColor(COMMENT1_COLOR).getRGB()));
|
||||
store.setDefault(COMMENT2_COLOR, StringConverter.asString(getThemeColor(COMMENT2_COLOR).getRGB()));
|
||||
store.setDefault(LITERAL1_COLOR, StringConverter.asString(getThemeColor(LITERAL1_COLOR).getRGB()));
|
||||
store.setDefault(LITERAL2_COLOR, StringConverter.asString(getThemeColor(LITERAL2_COLOR).getRGB()));
|
||||
store.setDefault(LABEL_COLOR, StringConverter.asString(getThemeColor(LABEL_COLOR).getRGB()));
|
||||
store.setDefault(KEYWORD1_COLOR, StringConverter.asString(getThemeColor(KEYWORD1_COLOR).getRGB()));
|
||||
store.setDefault(KEYWORD2_COLOR, StringConverter.asString(getThemeColor(KEYWORD2_COLOR).getRGB()));
|
||||
store.setDefault(KEYWORD3_COLOR, StringConverter.asString(getThemeColor(KEYWORD3_COLOR).getRGB()));
|
||||
store.setDefault(FUNCTION_COLOR, StringConverter.asString(getThemeColor(FUNCTION_COLOR).getRGB()));
|
||||
store.setDefault(MARKUP_COLOR, StringConverter.asString(getThemeColor(MARKUP_COLOR).getRGB()));
|
||||
store.setDefault(OPERATOR_COLOR, StringConverter.asString(getThemeColor(OPERATOR_COLOR).getRGB()));
|
||||
store.setDefault(DIGIT_COLOR, StringConverter.asString(getThemeColor(DIGIT_COLOR).getRGB()));
|
||||
store.setDefault(INVALID_COLOR, StringConverter.asString(getThemeColor(INVALID_COLOR).getRGB()));
|
||||
|
||||
String bold = BOLD_SUFFIX;
|
||||
store.setDefault(COMMENT1_COLOR + bold, false);
|
||||
|
||||
@@ -1,368 +1,384 @@
|
||||
// ============================================================================
|
||||
//
|
||||
// Copyright (C) 2006-2021 Talend Inc. - www.talend.com
|
||||
//
|
||||
// This source code is available under agreement available at
|
||||
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
|
||||
//
|
||||
// You should have received a copy of the agreement
|
||||
// along with this program; if not, write to Talend SA
|
||||
// 9 rue Pages 92150 Suresnes, France
|
||||
//
|
||||
// ============================================================================
|
||||
package org.talend.commons.ui.swt.colorstyledtext;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import org.eclipse.jface.preference.IPreferenceStore;
|
||||
import org.eclipse.jface.text.rules.IToken;
|
||||
import org.eclipse.swt.SWT;
|
||||
import org.eclipse.swt.custom.ExtendedModifyEvent;
|
||||
import org.eclipse.swt.custom.ExtendedModifyListener;
|
||||
import org.eclipse.swt.custom.StyleRange;
|
||||
import org.eclipse.swt.custom.StyledText;
|
||||
import org.eclipse.swt.graphics.Image;
|
||||
import org.eclipse.swt.widgets.Composite;
|
||||
import org.eclipse.swt.widgets.Event;
|
||||
import org.eclipse.swt.widgets.Listener;
|
||||
import org.eclipse.swt.widgets.Menu;
|
||||
import org.eclipse.swt.widgets.MenuItem;
|
||||
import org.eclipse.ui.ISharedImages;
|
||||
import org.eclipse.ui.PlatformUI;
|
||||
import org.talend.commons.runtime.xml.XmlUtil;
|
||||
import org.talend.commons.ui.runtime.i18n.Messages;
|
||||
import org.talend.commons.ui.runtime.image.ImageProvider;
|
||||
import org.talend.commons.ui.swt.colorstyledtext.jedit.Mode;
|
||||
import org.talend.commons.ui.swt.colorstyledtext.jedit.Modes;
|
||||
import org.talend.commons.ui.swt.colorstyledtext.rules.CToken;
|
||||
import org.talend.commons.ui.swt.colorstyledtext.scanner.ColoringScanner;
|
||||
import org.talend.commons.utils.threading.ExecutionLimiter;
|
||||
|
||||
/**
|
||||
* This component is an adaptation of a Color Editor for a StyledText.
|
||||
*
|
||||
* The original editor can be found on http://www.gstaff.org/colorEditor/ <br/>
|
||||
*
|
||||
* <b>How to use it, example :</b> <br/>
|
||||
* ColorStyledText text = new ColorStyledText(parent, SWT.H_SCROLL | SWT.V_SCROLL,
|
||||
* CorePlugin.getDefault().getPreferenceStore(), ECodeLanguage.PERL.getName());</i> <br/>
|
||||
* <br/>
|
||||
*
|
||||
* $Id: ColorStyledText.java 7183 2007-11-23 11:03:36Z amaumont $
|
||||
*
|
||||
*/
|
||||
public class ColorStyledText extends StyledText {
|
||||
|
||||
private final static int MAXIMUM_CHARACTERS_BEFORE_USE_TIMER = 1000;
|
||||
|
||||
private final ColorManager colorManager;
|
||||
|
||||
private final ColoringScanner scanner;
|
||||
|
||||
private final String languageMode;
|
||||
|
||||
private final MenuItem pasteItem;
|
||||
|
||||
private boolean coloring = true;
|
||||
|
||||
private UndoRedoManager undoRedoManager;
|
||||
|
||||
public ColorStyledText(Composite parent, int style, IPreferenceStore store, String languageMode) {
|
||||
super(parent, style);
|
||||
this.languageMode = languageMode;
|
||||
this.colorManager = new ColorManager(store);
|
||||
|
||||
/*
|
||||
* set the Shortcuts of the undo/redo
|
||||
*/
|
||||
this.setKeyBinding('Z' | SWT.CTRL, ActionCode.UNDO);
|
||||
this.setKeyBinding('Y' | SWT.CTRL, ActionCode.REDO);
|
||||
UndoRedoManager undoManager = new UndoRedoManager(50);
|
||||
undoManager.connect(this);
|
||||
this.setUndoManager(undoManager);
|
||||
|
||||
ISharedImages sharedImages = PlatformUI.getWorkbench().getSharedImages();
|
||||
Menu popupMenu = new Menu(this);
|
||||
|
||||
MenuItem redoItem = new MenuItem(popupMenu, SWT.PUSH);
|
||||
redoItem.setText(Messages.getString("ColorStyledText.RedoItem.Text")); //$NON-NLS-1$
|
||||
redoItem.addListener(SWT.Selection, new Listener() {
|
||||
|
||||
public void handleEvent(Event event) {
|
||||
redo();
|
||||
}
|
||||
});
|
||||
|
||||
MenuItem undoItem = new MenuItem(popupMenu, SWT.PUSH);
|
||||
undoItem.setText(Messages.getString("ColorStyledText.UndoItem.Text")); //$NON-NLS-1$
|
||||
undoItem.addListener(SWT.Selection, new Listener() {
|
||||
|
||||
public void handleEvent(Event event) {
|
||||
undo();
|
||||
}
|
||||
});
|
||||
|
||||
Image image = ImageProvider.getImage(sharedImages.getImageDescriptor(ISharedImages.IMG_TOOL_COPY));
|
||||
MenuItem copyItem = new MenuItem(popupMenu, SWT.PUSH);
|
||||
copyItem.setText(Messages.getString("ColorStyledText.CopyItem.Text")); //$NON-NLS-1$
|
||||
copyItem.setImage(image);
|
||||
copyItem.addListener(SWT.Selection, new Listener() {
|
||||
|
||||
public void handleEvent(Event event) {
|
||||
copy();
|
||||
}
|
||||
});
|
||||
|
||||
image = ImageProvider.getImage(sharedImages.getImageDescriptor(ISharedImages.IMG_TOOL_PASTE));
|
||||
pasteItem = new MenuItem(popupMenu, SWT.PUSH);
|
||||
pasteItem.setText(Messages.getString("ColorStyledText.PasteItem.Text")); //$NON-NLS-1$
|
||||
pasteItem.setData(this);
|
||||
pasteItem.setImage(image);
|
||||
pasteItem.addListener(SWT.Selection, new Listener() {
|
||||
|
||||
public void handleEvent(Event event) {
|
||||
paste();
|
||||
}
|
||||
});
|
||||
pasteItem.setEnabled(getEditable());
|
||||
|
||||
this.setMenu(popupMenu);
|
||||
MenuItem selectAllItem = new MenuItem(popupMenu, SWT.PUSH);
|
||||
selectAllItem.setText(Messages.getString("ColorStyledText.SelectAllItem.Text")); //$NON-NLS-1$
|
||||
selectAllItem.addListener(SWT.Selection, new Listener() {
|
||||
|
||||
public void handleEvent(Event event) {
|
||||
selectAll();
|
||||
}
|
||||
});
|
||||
this.setMenu(popupMenu);
|
||||
|
||||
Listener selectAllListener = new Listener() {
|
||||
|
||||
public void handleEvent(Event event) {
|
||||
if (event.character == '\u0001') { // CTRL + A
|
||||
selectAll();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
addListener(SWT.KeyDown, selectAllListener);
|
||||
|
||||
Mode mode = Modes.getMode(languageMode + XmlUtil.FILE_XML_SUFFIX);
|
||||
scanner = new ColoringScanner(mode, colorManager);
|
||||
|
||||
addExtendedModifyListener(modifyListener);
|
||||
}
|
||||
|
||||
/**
|
||||
* DOC qli Comment method "invokeAction".
|
||||
*
|
||||
* @param action
|
||||
*
|
||||
* */
|
||||
public void invokeAction(int action) {
|
||||
super.invokeAction(action);
|
||||
|
||||
switch (action) {
|
||||
case ActionCode.UNDO:
|
||||
undo(); // ctrl+Z
|
||||
break;
|
||||
case ActionCode.REDO:
|
||||
redo(); // ctrl+Y
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for undoRedoManager.
|
||||
*
|
||||
* @return the undoRedoManager
|
||||
*/
|
||||
public UndoRedoManager getUndoManager() {
|
||||
return this.undoRedoManager;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the undoRedoManager.
|
||||
*
|
||||
* @param undoRedoManager the undoRedoManager to set
|
||||
*/
|
||||
public void setUndoManager(UndoRedoManager undoRedoManager) {
|
||||
this.undoRedoManager = undoRedoManager;
|
||||
}
|
||||
|
||||
public static class ActionCode {
|
||||
|
||||
public static final int UNDO = Integer.MAX_VALUE;
|
||||
|
||||
public static final int REDO = UNDO - 1;
|
||||
|
||||
}
|
||||
|
||||
private void undo() {
|
||||
if (undoRedoManager != null) {
|
||||
undoRedoManager.undo();
|
||||
}
|
||||
}
|
||||
|
||||
private void redo() {
|
||||
if (undoRedoManager != null) {
|
||||
undoRedoManager.redo();
|
||||
}
|
||||
}
|
||||
|
||||
protected void colorize(final ColoringScanner scanner) {
|
||||
final ArrayList<StyleRange> styles = new ArrayList<StyleRange>();
|
||||
if (this.coloring) {
|
||||
IToken token;
|
||||
if (this.isDisposed()) {
|
||||
return;
|
||||
}
|
||||
|
||||
scanner.parse(this.getText().replaceAll("\"", " ").replaceAll("'", " ")); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
|
||||
|
||||
do {
|
||||
token = scanner.nextToken();
|
||||
if (!token.isEOF()) {
|
||||
if (token instanceof CToken) {
|
||||
CToken ctoken = (CToken) token;
|
||||
StyleRange styleRange;
|
||||
styleRange = new StyleRange();
|
||||
styleRange.start = scanner.getTokenOffset();
|
||||
styleRange.length = scanner.getTokenLength();
|
||||
if (ctoken.getType() == null) {
|
||||
styleRange.fontStyle = colorManager.getStyleFor(ctoken.getColor());
|
||||
styleRange.foreground = colorManager.getColor(ctoken.getColor());
|
||||
} else {
|
||||
styleRange.fontStyle = colorManager.getStyleForType(ctoken.getColor());
|
||||
styleRange.foreground = colorManager.getColorForType(ctoken.getColor());
|
||||
}
|
||||
styles.add(styleRange);
|
||||
}
|
||||
}
|
||||
} while (!token.isEOF());
|
||||
setStyles(styles);
|
||||
} else {
|
||||
StyleRange styleRange = new StyleRange();
|
||||
styles.add(styleRange);
|
||||
styleRange.start = 0;
|
||||
styleRange.length = this.getText().getBytes().length;
|
||||
styleRange.foreground = null;
|
||||
setStyles(styles);
|
||||
}
|
||||
}
|
||||
|
||||
public void setStyles(final ArrayList<StyleRange> styles) {
|
||||
if (ColorStyledText.this.isDisposed()) {
|
||||
return;
|
||||
}
|
||||
int countChars = getCharCount();
|
||||
|
||||
for (int i = 0; i < styles.size(); i++) {
|
||||
StyleRange styleRange = styles.get(i);
|
||||
// System.out.println("styleRange.start=" + styleRange.start);
|
||||
// System.out.println("styleRange.length=" + styleRange.length);
|
||||
if (!(0 <= styleRange.start && styleRange.start + styleRange.length <= countChars)) {
|
||||
continue;
|
||||
}
|
||||
setStyleRange(styleRange);
|
||||
}
|
||||
}
|
||||
|
||||
ExtendedModifyListener modifyListener = new ExtendedModifyListener() {
|
||||
|
||||
public void modifyText(ExtendedModifyEvent event) {
|
||||
if (ColorStyledText.this.getCharCount() > MAXIMUM_CHARACTERS_BEFORE_USE_TIMER) {
|
||||
colorizeLimiter.resetTimer();
|
||||
colorizeLimiter.startIfExecutable(true, null);
|
||||
} else {
|
||||
getDisplay().asyncExec(new Runnable() {
|
||||
|
||||
public void run() {
|
||||
colorize(scanner);
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
public ColorManager getColorManager() {
|
||||
return this.colorManager;
|
||||
}
|
||||
|
||||
public String getLanguageMode() {
|
||||
return this.languageMode;
|
||||
}
|
||||
|
||||
public ColoringScanner getScanner() {
|
||||
return this.scanner;
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see org.eclipse.swt.custom.StyledText#setEditable(boolean)
|
||||
*/
|
||||
@Override
|
||||
public void setEditable(boolean editable) {
|
||||
super.setEditable(editable);
|
||||
if (pasteItem != null) {
|
||||
pasteItem.setEnabled(editable);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for coloring.
|
||||
*
|
||||
* @return the coloring
|
||||
*/
|
||||
public boolean isColoring() {
|
||||
return this.coloring;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the coloring.
|
||||
*
|
||||
* @param coloring the coloring to set
|
||||
*/
|
||||
public void setColoring(boolean coloring) {
|
||||
boolean wasDifferent = this.coloring != coloring;
|
||||
this.coloring = coloring;
|
||||
if (!coloring) {
|
||||
removeExtendedModifyListener(modifyListener);
|
||||
} else if (wasDifferent) {
|
||||
colorizeLimiter.resetTimer();
|
||||
colorizeLimiter.startIfExecutable(true, null);
|
||||
addExtendedModifyListener(modifyListener);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see org.eclipse.swt.widgets.Widget#dispose()
|
||||
*/
|
||||
@Override
|
||||
public void dispose() {
|
||||
super.dispose();
|
||||
colorManager.dispose();
|
||||
}
|
||||
|
||||
private final ExecutionLimiter colorizeLimiter = new ExecutionLimiter(1000, true) {
|
||||
|
||||
@Override
|
||||
public void execute(final boolean isFinalExecution, Object data) {
|
||||
if (!isDisposed()) {
|
||||
getDisplay().asyncExec(new Runnable() {
|
||||
|
||||
public void run() {
|
||||
colorize(scanner);
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
// ============================================================================
|
||||
//
|
||||
// Copyright (C) 2006-2021 Talend Inc. - www.talend.com
|
||||
//
|
||||
// This source code is available under agreement available at
|
||||
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
|
||||
//
|
||||
// You should have received a copy of the agreement
|
||||
// along with this program; if not, write to Talend SA
|
||||
// 9 rue Pages 92150 Suresnes, France
|
||||
//
|
||||
// ============================================================================
|
||||
package org.talend.commons.ui.swt.colorstyledtext;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import org.eclipse.jface.preference.IPreferenceStore;
|
||||
import org.eclipse.jface.text.rules.IToken;
|
||||
import org.eclipse.swt.SWT;
|
||||
import org.eclipse.swt.custom.ExtendedModifyEvent;
|
||||
import org.eclipse.swt.custom.ExtendedModifyListener;
|
||||
import org.eclipse.swt.custom.StyleRange;
|
||||
import org.eclipse.swt.custom.StyledText;
|
||||
import org.eclipse.swt.graphics.Image;
|
||||
import org.eclipse.swt.widgets.Composite;
|
||||
import org.eclipse.swt.widgets.Event;
|
||||
import org.eclipse.swt.widgets.Listener;
|
||||
import org.eclipse.swt.widgets.Menu;
|
||||
import org.eclipse.swt.widgets.MenuItem;
|
||||
import org.eclipse.ui.ISharedImages;
|
||||
import org.eclipse.ui.PlatformUI;
|
||||
import org.talend.commons.runtime.xml.XmlUtil;
|
||||
import org.talend.commons.ui.runtime.ITalendThemeService;
|
||||
import org.talend.commons.ui.runtime.i18n.Messages;
|
||||
import org.talend.commons.ui.runtime.image.ImageProvider;
|
||||
import org.talend.commons.ui.swt.colorstyledtext.jedit.Mode;
|
||||
import org.talend.commons.ui.swt.colorstyledtext.jedit.Modes;
|
||||
import org.talend.commons.ui.swt.colorstyledtext.rules.CToken;
|
||||
import org.talend.commons.ui.swt.colorstyledtext.scanner.ColoringScanner;
|
||||
import org.talend.commons.utils.threading.ExecutionLimiter;
|
||||
|
||||
/**
|
||||
* This component is an adaptation of a Color Editor for a StyledText.
|
||||
*
|
||||
* The original editor can be found on http://www.gstaff.org/colorEditor/ <br/>
|
||||
*
|
||||
* <b>How to use it, example :</b> <br/>
|
||||
* ColorStyledText text = new ColorStyledText(parent, SWT.H_SCROLL | SWT.V_SCROLL,
|
||||
* CorePlugin.getDefault().getPreferenceStore(), ECodeLanguage.PERL.getName());</i> <br/>
|
||||
* <br/>
|
||||
*
|
||||
* $Id: ColorStyledText.java 7183 2007-11-23 11:03:36Z amaumont $
|
||||
*
|
||||
*/
|
||||
public class ColorStyledText extends StyledText {
|
||||
|
||||
|
||||
public static final String PREFERENCE_COLOR_FOREGROUND= "ColorStyledText.Color.Foreground"; //$NON-NLS-1$
|
||||
public static final String PREFERENCE_COLOR_BACKGROUND= "ColorStyledText.Color.Background"; //$NON-NLS-1$
|
||||
public static final String PREFERENCE_COLOR_SELECTION_FOREGROUND= "ColorStyledText.Color.SelectionForeground"; //$NON-NLS-1$
|
||||
public static final String PREFERENCE_COLOR_SELECTION_BACKGROUND= "ColorStyledText.Color.SelectionBackground"; //$NON-NLS-1$
|
||||
|
||||
private final static int MAXIMUM_CHARACTERS_BEFORE_USE_TIMER = 1000;
|
||||
|
||||
private final ColorManager colorManager;
|
||||
|
||||
private final ColoringScanner scanner;
|
||||
|
||||
private final String languageMode;
|
||||
|
||||
private final MenuItem pasteItem;
|
||||
|
||||
private boolean coloring = true;
|
||||
|
||||
private UndoRedoManager undoRedoManager;
|
||||
|
||||
public ColorStyledText(Composite parent, int style, IPreferenceStore store, String languageMode) {
|
||||
super(parent, style);
|
||||
this.languageMode = languageMode;
|
||||
this.colorManager = new ColorManager(store);
|
||||
|
||||
/*
|
||||
* set the Shortcuts of the undo/redo
|
||||
*/
|
||||
this.setKeyBinding('Z' | SWT.CTRL, ActionCode.UNDO);
|
||||
this.setKeyBinding('Y' | SWT.CTRL, ActionCode.REDO);
|
||||
UndoRedoManager undoManager = new UndoRedoManager(50);
|
||||
undoManager.connect(this);
|
||||
this.setUndoManager(undoManager);
|
||||
|
||||
ISharedImages sharedImages = PlatformUI.getWorkbench().getSharedImages();
|
||||
Menu popupMenu = new Menu(this);
|
||||
|
||||
MenuItem redoItem = new MenuItem(popupMenu, SWT.PUSH);
|
||||
redoItem.setText(Messages.getString("ColorStyledText.RedoItem.Text")); //$NON-NLS-1$
|
||||
redoItem.addListener(SWT.Selection, new Listener() {
|
||||
|
||||
public void handleEvent(Event event) {
|
||||
redo();
|
||||
}
|
||||
});
|
||||
|
||||
MenuItem undoItem = new MenuItem(popupMenu, SWT.PUSH);
|
||||
undoItem.setText(Messages.getString("ColorStyledText.UndoItem.Text")); //$NON-NLS-1$
|
||||
undoItem.addListener(SWT.Selection, new Listener() {
|
||||
|
||||
public void handleEvent(Event event) {
|
||||
undo();
|
||||
}
|
||||
});
|
||||
|
||||
Image image = ImageProvider.getImage(sharedImages.getImageDescriptor(ISharedImages.IMG_TOOL_COPY));
|
||||
MenuItem copyItem = new MenuItem(popupMenu, SWT.PUSH);
|
||||
copyItem.setText(Messages.getString("ColorStyledText.CopyItem.Text")); //$NON-NLS-1$
|
||||
copyItem.setImage(image);
|
||||
copyItem.addListener(SWT.Selection, new Listener() {
|
||||
|
||||
public void handleEvent(Event event) {
|
||||
copy();
|
||||
}
|
||||
});
|
||||
|
||||
image = ImageProvider.getImage(sharedImages.getImageDescriptor(ISharedImages.IMG_TOOL_PASTE));
|
||||
pasteItem = new MenuItem(popupMenu, SWT.PUSH);
|
||||
pasteItem.setText(Messages.getString("ColorStyledText.PasteItem.Text")); //$NON-NLS-1$
|
||||
pasteItem.setData(this);
|
||||
pasteItem.setImage(image);
|
||||
pasteItem.addListener(SWT.Selection, new Listener() {
|
||||
|
||||
public void handleEvent(Event event) {
|
||||
paste();
|
||||
}
|
||||
});
|
||||
pasteItem.setEnabled(getEditable());
|
||||
|
||||
this.setMenu(popupMenu);
|
||||
MenuItem selectAllItem = new MenuItem(popupMenu, SWT.PUSH);
|
||||
selectAllItem.setText(Messages.getString("ColorStyledText.SelectAllItem.Text")); //$NON-NLS-1$
|
||||
selectAllItem.addListener(SWT.Selection, new Listener() {
|
||||
|
||||
public void handleEvent(Event event) {
|
||||
selectAll();
|
||||
}
|
||||
});
|
||||
this.setMenu(popupMenu);
|
||||
|
||||
Listener selectAllListener = new Listener() {
|
||||
|
||||
public void handleEvent(Event event) {
|
||||
if (event.character == '\u0001') { // CTRL + A
|
||||
selectAll();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
addListener(SWT.KeyDown, selectAllListener);
|
||||
|
||||
Mode mode = Modes.getMode(languageMode + XmlUtil.FILE_XML_SUFFIX);
|
||||
scanner = new ColoringScanner(mode, colorManager);
|
||||
|
||||
addExtendedModifyListener(modifyListener);
|
||||
initColorSetting();
|
||||
}
|
||||
|
||||
|
||||
protected void initColorSetting() {
|
||||
this.setForeground(ITalendThemeService.getColor(PREFERENCE_COLOR_FOREGROUND).orElse(null));
|
||||
this.setBackground(ITalendThemeService.getColor(PREFERENCE_COLOR_BACKGROUND).orElse(null));
|
||||
this.setSelectionBackground(ITalendThemeService.getColor(PREFERENCE_COLOR_SELECTION_BACKGROUND).orElse(null));
|
||||
this.setSelectionForeground(ITalendThemeService.getColor(PREFERENCE_COLOR_SELECTION_FOREGROUND).orElse(null));
|
||||
}
|
||||
|
||||
/**
|
||||
* DOC qli Comment method "invokeAction".
|
||||
*
|
||||
* @param action
|
||||
*
|
||||
* */
|
||||
public void invokeAction(int action) {
|
||||
super.invokeAction(action);
|
||||
|
||||
switch (action) {
|
||||
case ActionCode.UNDO:
|
||||
undo(); // ctrl+Z
|
||||
break;
|
||||
case ActionCode.REDO:
|
||||
redo(); // ctrl+Y
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for undoRedoManager.
|
||||
*
|
||||
* @return the undoRedoManager
|
||||
*/
|
||||
public UndoRedoManager getUndoManager() {
|
||||
return this.undoRedoManager;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the undoRedoManager.
|
||||
*
|
||||
* @param undoRedoManager the undoRedoManager to set
|
||||
*/
|
||||
public void setUndoManager(UndoRedoManager undoRedoManager) {
|
||||
this.undoRedoManager = undoRedoManager;
|
||||
}
|
||||
|
||||
public static class ActionCode {
|
||||
|
||||
public static final int UNDO = Integer.MAX_VALUE;
|
||||
|
||||
public static final int REDO = UNDO - 1;
|
||||
|
||||
}
|
||||
|
||||
private void undo() {
|
||||
if (undoRedoManager != null) {
|
||||
undoRedoManager.undo();
|
||||
}
|
||||
}
|
||||
|
||||
private void redo() {
|
||||
if (undoRedoManager != null) {
|
||||
undoRedoManager.redo();
|
||||
}
|
||||
}
|
||||
|
||||
protected void colorize(final ColoringScanner scanner) {
|
||||
final ArrayList<StyleRange> styles = new ArrayList<StyleRange>();
|
||||
if (this.coloring) {
|
||||
IToken token;
|
||||
if (this.isDisposed()) {
|
||||
return;
|
||||
}
|
||||
|
||||
scanner.parse(this.getText().replaceAll("\"", " ").replaceAll("'", " ")); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
|
||||
|
||||
do {
|
||||
token = scanner.nextToken();
|
||||
if (!token.isEOF()) {
|
||||
if (token instanceof CToken) {
|
||||
CToken ctoken = (CToken) token;
|
||||
StyleRange styleRange;
|
||||
styleRange = new StyleRange();
|
||||
styleRange.start = scanner.getTokenOffset();
|
||||
styleRange.length = scanner.getTokenLength();
|
||||
if (ctoken.getType() == null) {
|
||||
styleRange.fontStyle = colorManager.getStyleFor(ctoken.getColor());
|
||||
styleRange.foreground = colorManager.getColor(ctoken.getColor());
|
||||
} else {
|
||||
styleRange.fontStyle = colorManager.getStyleForType(ctoken.getColor());
|
||||
styleRange.foreground = colorManager.getColorForType(ctoken.getColor());
|
||||
}
|
||||
styles.add(styleRange);
|
||||
}
|
||||
}
|
||||
} while (!token.isEOF());
|
||||
setStyles(styles);
|
||||
} else {
|
||||
StyleRange styleRange = new StyleRange();
|
||||
styles.add(styleRange);
|
||||
styleRange.start = 0;
|
||||
styleRange.length = this.getText().getBytes().length;
|
||||
styleRange.foreground = null;
|
||||
setStyles(styles);
|
||||
}
|
||||
}
|
||||
|
||||
public void setStyles(final ArrayList<StyleRange> styles) {
|
||||
if (ColorStyledText.this.isDisposed()) {
|
||||
return;
|
||||
}
|
||||
int countChars = getCharCount();
|
||||
|
||||
for (int i = 0; i < styles.size(); i++) {
|
||||
StyleRange styleRange = styles.get(i);
|
||||
// System.out.println("styleRange.start=" + styleRange.start);
|
||||
// System.out.println("styleRange.length=" + styleRange.length);
|
||||
if (!(0 <= styleRange.start && styleRange.start + styleRange.length <= countChars)) {
|
||||
continue;
|
||||
}
|
||||
setStyleRange(styleRange);
|
||||
}
|
||||
}
|
||||
|
||||
ExtendedModifyListener modifyListener = new ExtendedModifyListener() {
|
||||
|
||||
public void modifyText(ExtendedModifyEvent event) {
|
||||
if (ColorStyledText.this.getCharCount() > MAXIMUM_CHARACTERS_BEFORE_USE_TIMER) {
|
||||
colorizeLimiter.resetTimer();
|
||||
colorizeLimiter.startIfExecutable(true, null);
|
||||
} else {
|
||||
getDisplay().asyncExec(new Runnable() {
|
||||
|
||||
public void run() {
|
||||
colorize(scanner);
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
public ColorManager getColorManager() {
|
||||
return this.colorManager;
|
||||
}
|
||||
|
||||
public String getLanguageMode() {
|
||||
return this.languageMode;
|
||||
}
|
||||
|
||||
public ColoringScanner getScanner() {
|
||||
return this.scanner;
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see org.eclipse.swt.custom.StyledText#setEditable(boolean)
|
||||
*/
|
||||
@Override
|
||||
public void setEditable(boolean editable) {
|
||||
super.setEditable(editable);
|
||||
if (pasteItem != null) {
|
||||
pasteItem.setEnabled(editable);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for coloring.
|
||||
*
|
||||
* @return the coloring
|
||||
*/
|
||||
public boolean isColoring() {
|
||||
return this.coloring;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the coloring.
|
||||
*
|
||||
* @param coloring the coloring to set
|
||||
*/
|
||||
public void setColoring(boolean coloring) {
|
||||
boolean wasDifferent = this.coloring != coloring;
|
||||
this.coloring = coloring;
|
||||
if (!coloring) {
|
||||
removeExtendedModifyListener(modifyListener);
|
||||
} else if (wasDifferent) {
|
||||
colorizeLimiter.resetTimer();
|
||||
colorizeLimiter.startIfExecutable(true, null);
|
||||
addExtendedModifyListener(modifyListener);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see org.eclipse.swt.widgets.Widget#dispose()
|
||||
*/
|
||||
@Override
|
||||
public void dispose() {
|
||||
super.dispose();
|
||||
colorManager.dispose();
|
||||
}
|
||||
|
||||
private final ExecutionLimiter colorizeLimiter = new ExecutionLimiter(1000, true) {
|
||||
|
||||
@Override
|
||||
public void execute(final boolean isFinalExecution, Object data) {
|
||||
if (!isDisposed()) {
|
||||
getDisplay().asyncExec(new Runnable() {
|
||||
|
||||
public void run() {
|
||||
colorize(scanner);
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -16,8 +16,10 @@ import org.eclipse.jface.dialogs.MessageDialog;
|
||||
import org.eclipse.jface.viewers.ICellEditorListener;
|
||||
import org.eclipse.jface.viewers.TextCellEditor;
|
||||
import org.eclipse.swt.SWT;
|
||||
import org.eclipse.swt.graphics.Color;
|
||||
import org.eclipse.swt.graphics.Point;
|
||||
import org.eclipse.swt.widgets.Text;
|
||||
import org.talend.commons.ui.runtime.ColorConstants;
|
||||
import org.talend.commons.ui.runtime.i18n.Messages;
|
||||
import org.talend.commons.ui.runtime.swt.tableviewer.data.ModifiedObjectInfo;
|
||||
import org.talend.commons.ui.runtime.thread.AsynchronousThreading;
|
||||
@@ -39,6 +41,8 @@ public abstract class DialogErrorForCellEditorListener implements ICellEditorLis
|
||||
protected TableViewerCreatorColumn column;
|
||||
|
||||
protected TableViewerCreator tableViewerCreator;
|
||||
|
||||
private Color tableBackground = ColorConstants.getTableBackgroundColor();
|
||||
|
||||
/**
|
||||
* DOC amaumont CellEditorListener constructor comment.
|
||||
@@ -89,7 +93,7 @@ public abstract class DialogErrorForCellEditorListener implements ICellEditorLis
|
||||
final String errorMessage = validateValue(newValue, beanPosition);
|
||||
if (errorMessage == null) {
|
||||
newValidValueTyped(beanPosition, lastValidValue, newValue, state);
|
||||
text.setBackground(text.getDisplay().getSystemColor(SWT.COLOR_WHITE));
|
||||
text.setBackground(tableBackground);
|
||||
lastValidValue = newValue;
|
||||
} else {
|
||||
text.setBackground(text.getDisplay().getSystemColor(SWT.COLOR_RED));
|
||||
|
||||
@@ -31,6 +31,7 @@ import org.eclipse.swt.graphics.GC;
|
||||
import org.eclipse.swt.graphics.RGB;
|
||||
import org.eclipse.swt.widgets.Display;
|
||||
import org.talend.commons.ui.gmf.util.DisplayUtils;
|
||||
import org.talend.commons.ui.runtime.ITalendThemeService;
|
||||
|
||||
/**
|
||||
* Figure managing some simple HTML styles. <br/>
|
||||
@@ -77,6 +78,8 @@ public class SimpleHtmlFigure extends Figure {
|
||||
private static Font boldFont = null;
|
||||
|
||||
private static Font boldItalicFont = null;
|
||||
|
||||
private static final Color DEFAULT_LABEL_COLOR = ITalendThemeService.getColor("NODE_FIGURE_LABEL_FORCEGROUND").orElse(Display.getDefault().getSystemColor(SWT.COLOR_BLACK));
|
||||
|
||||
/**
|
||||
* Constructs a new SimpleHtmlFigure.
|
||||
@@ -262,6 +265,8 @@ public class SimpleHtmlFigure extends Figure {
|
||||
label.setFont(fontToUse);
|
||||
if (colorStack.size() > 0) {
|
||||
label.setForegroundColor(colorStack.get(colorStack.size() - 1));
|
||||
} else {
|
||||
label.setForegroundColor(DEFAULT_LABEL_COLOR); // Set label default foreground color
|
||||
}
|
||||
horizContainer.add(label);
|
||||
}
|
||||
|
||||
@@ -28,6 +28,8 @@ public class HadoopConstants {
|
||||
public static final String SPARK_MODE_YARN_CLUSTER = "YARN_CLUSTER";
|
||||
|
||||
public static final String SPARK_MODE_DATAPROC = "DATAPROC";
|
||||
|
||||
public static final String SPARK_MODE_SYNAPSE = "SYNAPSE";
|
||||
|
||||
public static final String FRAMEWORK = "FRAMEWORK";
|
||||
|
||||
|
||||
@@ -984,6 +984,14 @@ public class ContextUtils {
|
||||
|
||||
}
|
||||
|
||||
public boolean remove(Item item, String param) {
|
||||
Set<String> params = map.get(item);
|
||||
if (params != null && params.contains(param)) {
|
||||
return params.remove(param);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean isEmpty() {
|
||||
return map.isEmpty();
|
||||
}
|
||||
|
||||
@@ -79,4 +79,8 @@ public final class TalendPropertiesUtil {
|
||||
public static String getProductApp() {
|
||||
return System.getProperty(PROD_APP);
|
||||
}
|
||||
|
||||
public static boolean isEnabledUseShortJobletName() {
|
||||
return isEnabled("talend.job.build.useShortJobletName"); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
||||
@@ -279,6 +279,10 @@ public interface IStudioLiteP2Service extends IService {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (responseCode != HttpURLConnection.HTTP_OK) {
|
||||
throw new Exception("status code: " + responseCode);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -322,7 +326,7 @@ public interface IStudioLiteP2Service extends IService {
|
||||
String nodeName = IRepository.PREFERENCE_NODE + '/' + nodeKey;
|
||||
|
||||
if (securePreferences.nodeExists(nodeName)) {
|
||||
securePreferences.remove(nodeName);
|
||||
securePreferences.node(nodeName).removeNode();
|
||||
securePreferences.flush();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -132,7 +132,7 @@ public class ContextTreeTable {
|
||||
|
||||
private NatTable natTable;
|
||||
|
||||
// for bug TDI-32821, use LinkedList to keep the original order of context parameter list.
|
||||
// for bug TDI-32821锛<EFBFBD> use LinkedList to keep the original order of context parameter list.
|
||||
private List<ContextTreeNode> treeNodes = new LinkedList<ContextTreeNode>();
|
||||
|
||||
private static Map<String, Boolean> expandMap = new HashMap<>();
|
||||
|
||||
@@ -28,10 +28,10 @@ public class ContextTableConstants {
|
||||
public static final String COLUMN_PROMPT_PROPERTY = "Prompt label"; //$NON-NLS-1$
|
||||
|
||||
public static final String COLUMN_CONTEXT_VALUE = "Value"; //$NON-NLS-1$
|
||||
|
||||
public static final String LABEL_VALUE_NOT_MATCH_TYPE = "LABEL_VALUE_NOT_MATCH_TYPE";
|
||||
|
||||
|
||||
public static final String LABEL_CHANGED_FORCEGROUND = "LABEL_CHANGED_FORCEGROUND";
|
||||
|
||||
|
||||
public static final String LABEL_VALUE_NOT_MATCH_TYPE = "LABEL_VALUE_NOT_MATCH_TYPE";
|
||||
|
||||
public static final int DEFAULT_COLUMN_COUNT = 8;
|
||||
}
|
||||
|
||||
@@ -73,16 +73,16 @@ public class ContextNatTableStyleConfiguration extends AbstractRegistryConfigura
|
||||
cellStyle.setAttributeValue(CellStyleAttributes.VERTICAL_ALIGNMENT, vAlign);
|
||||
cellStyle.setAttributeValue(CellStyleAttributes.BORDER_STYLE, borderStyle);
|
||||
configRegistry.registerConfigAttribute(CellConfigAttributes.CELL_STYLE, cellStyle);
|
||||
|
||||
|
||||
Style cellStyleValueError = new Style();
|
||||
cellStyleValueError.setAttributeValue(CellStyleAttributes.FOREGROUND_COLOR, ColorConstants.ERROR_FONT_COLOR);
|
||||
configRegistry.registerConfigAttribute(CellConfigAttributes.CELL_STYLE, cellStyleValueError, DisplayMode.NORMAL, ContextTableConstants.LABEL_VALUE_NOT_MATCH_TYPE);
|
||||
configRegistry.registerConfigAttribute(CellConfigAttributes.CELL_STYLE, cellStyleValueError, DisplayMode.SELECT, ContextTableConstants.LABEL_VALUE_NOT_MATCH_TYPE);
|
||||
|
||||
Style cellStyleChangedForceGround = new Style();
|
||||
cellStyleChangedForceGround.setAttributeValue(CellStyleAttributes.FOREGROUND_COLOR, GUIHelper.COLOR_WIDGET_DARK_SHADOW);
|
||||
cellStyleChangedForceGround.setAttributeValue(CellStyleAttributes.FOREGROUND_COLOR, ColorConstants.getTableReadOnlyForegroundColor());
|
||||
configRegistry.registerConfigAttribute(CellConfigAttributes.CELL_STYLE, cellStyleChangedForceGround, DisplayMode.NORMAL, ContextTableConstants.LABEL_CHANGED_FORCEGROUND);
|
||||
|
||||
|
||||
configRegistry.registerConfigAttribute(CellConfigAttributes.DISPLAY_CONVERTER, new DefaultDisplayConverter());
|
||||
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ import org.talend.core.model.process.IContextParameter;
|
||||
import org.talend.core.ui.context.ContextTreeTable.ContextTreeNode;
|
||||
import org.talend.core.ui.context.model.ContextTabChildModel;
|
||||
import org.talend.core.ui.context.model.table.ContextTableConstants;
|
||||
import org.talend.core.ui.context.model.table.ContextTableTabParentModel;
|
||||
import org.talend.core.ui.context.model.table.ContextTableTabParentModel;
|
||||
import org.talend.core.ui.utils.ContextTypeValidator;
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ public class ContextValueLabelAccumulator extends ColumnOverrideLabelAccumulator
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (!isAddedValueNotMatchStyle) {
|
||||
if (rowNode.getTreeData() instanceof ContextTableTabParentModel) {
|
||||
ContextTableTabParentModel rowModel = (ContextTableTabParentModel) rowNode.getTreeData();
|
||||
|
||||
@@ -63,6 +63,12 @@ public interface IGITProviderService extends IService {
|
||||
*/
|
||||
boolean isStandardMode();
|
||||
|
||||
/**
|
||||
* Whether git storage mode is set in preference or not
|
||||
* @return
|
||||
*/
|
||||
boolean isGitModeInPreference();
|
||||
|
||||
/**
|
||||
* Set git mode
|
||||
* @param standardMode
|
||||
|
||||
@@ -861,7 +861,7 @@ public class ProcessorUtilities {
|
||||
for (IContext context : list) {
|
||||
if (context.getName().equals(currentContext.getName())) {
|
||||
// override parameter value before generate current context
|
||||
IContext checkedContext = checkNeedOverrideContextParameterValue(context, jobInfo);
|
||||
IContext checkedContext = checkNeedOverrideContextParameterValue(currentContext, jobInfo);
|
||||
checkedContext = checkCleanSecureContextParameterValue(checkedContext, jobInfo);
|
||||
processor.setContext(checkedContext); // generate current context.
|
||||
} else {
|
||||
|
||||
@@ -16,14 +16,14 @@
|
||||
<jcache.version>1.0.5</jcache.version>
|
||||
<jcache_spec.version>1.0-alpha-1</jcache_spec.version>
|
||||
<johnzon.version>1.2.19</johnzon.version>
|
||||
<meecrowave.version>1.2.14</meecrowave.version>
|
||||
<meecrowave.version>1.2.15</meecrowave.version>
|
||||
<microprofile.version>1.2.1</microprofile.version>
|
||||
<owb.version>2.0.27</owb.version>
|
||||
<slf4j.version>1.7.34</slf4j.version>
|
||||
<tomcat.version>9.0.69</tomcat.version>
|
||||
<tomcat.version>9.0.73</tomcat.version>
|
||||
<xbean.version>4.20</xbean.version>
|
||||
<reload4j.version>1.2.22</reload4j.version>
|
||||
<log4j2.version>2.18.0</log4j2.version>
|
||||
<log4j2.version>2.20.0</log4j2.version>
|
||||
<tycho.buildtimestamp.format>${timestamp}</tycho.buildtimestamp.format>
|
||||
</properties>
|
||||
<repositories>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<properties>
|
||||
<tcomp.version>1.54.0</tcomp.version>
|
||||
<tcomp.version>1.55.2</tcomp.version>
|
||||
<slf4j.version>1.7.34</slf4j.version>
|
||||
<reload4j.version>1.2.22</reload4j.version>
|
||||
</properties>
|
||||
|
||||
@@ -23,6 +23,7 @@ import java.util.Iterator;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.log4j.Logger;
|
||||
@@ -243,20 +244,14 @@ public class MigrationToolService implements IMigrationToolService {
|
||||
sortMigrationTasks(toExecute);
|
||||
|
||||
final List<MigrationTask> done = new ArrayList<MigrationTask>(storedMigrations);
|
||||
int nbMigrationsToDo = 0;
|
||||
for (IProjectMigrationTask task : toExecute) {
|
||||
MigrationTask mgTask = MigrationUtil.findMigrationTask(done, task);
|
||||
if (mgTask == null && !task.isDeprecated()) {
|
||||
nbMigrationsToDo++;
|
||||
}
|
||||
}
|
||||
boolean hasTaskToExecute = toExecute.stream()
|
||||
.anyMatch(task -> !task.isDeprecated() && MigrationUtil.findMigrationTask(done, task) == null);
|
||||
|
||||
// force to redo the migration task for the relations only if user ask for "clean" or if relations is empty
|
||||
// or if there is at least another migration to do.
|
||||
if (!beforeLogon
|
||||
&& (!RelationshipItemBuilder.INDEX_VERSION.equals(project.getEmfProject().getItemsRelationVersion()) || nbMigrationsToDo > 0)) {
|
||||
if (!beforeLogon && (!RelationshipItemBuilder.INDEX_VERSION.equals(project.getEmfProject().getItemsRelationVersion())
|
||||
|| hasTaskToExecute)) {
|
||||
// force to redo this migration task, to make sure the relationship is done correctly
|
||||
// done.remove(RELATION_TASK);
|
||||
MigrationUtil.removeMigrationTaskById(done, RELATION_TASK);
|
||||
RelationshipItemBuilder.getInstance().unloadRelations();
|
||||
|
||||
@@ -267,39 +262,35 @@ public class MigrationToolService implements IMigrationToolService {
|
||||
RelationshipItemBuilder.JOBLET_RELATION, true);
|
||||
// reset
|
||||
RelationshipItemBuilder.getInstance().unloadRelations();
|
||||
|
||||
nbMigrationsToDo++;
|
||||
hasTaskToExecute = true;
|
||||
}
|
||||
if (nbMigrationsToDo == 0) {
|
||||
|
||||
boolean checkDupContext = !beforeLogon && Boolean.getBoolean("duplicate.context.reference.check");
|
||||
if (!hasTaskToExecute && !checkDupContext) {
|
||||
return;
|
||||
}
|
||||
|
||||
// force execute migration in case user copy-past items with diffrent path on the file system and refresh
|
||||
// the studio,it may cause bug TDI-19229
|
||||
MigrationUtil.removeMigrationTaskById(done, "org.talend.repository.model.migration.FixProjectResourceLink");
|
||||
|
||||
if (beforeLogon) {
|
||||
// for every migration, force reset to default maven template
|
||||
MigrationUtil.removeMigrationTaskById(done, "org.talend.repository.model.migration.ResetMavenTemplateMigrationTask");
|
||||
if (checkDupContext) {
|
||||
MigrationUtil.removeMigrationTaskById(done,
|
||||
"org.talend.repository.model.migration.RemoveDuplicateContextReferencesMigrationTask");
|
||||
}
|
||||
if (hasTaskToExecute) {
|
||||
// force execute migration in case user copy-past items with diffrent path on the file system and refresh
|
||||
// the studio,it may cause bug TDI-19229
|
||||
MigrationUtil.removeMigrationTaskById(done, "org.talend.repository.model.migration.FixProjectResourceLink");
|
||||
|
||||
boolean haveAnyBinFolder = false; // to avoid some problems of migration, sometimes
|
||||
for (ERepositoryObjectType type : (ERepositoryObjectType[]) ERepositoryObjectType.values()) {
|
||||
if (!type.hasFolder()) {
|
||||
continue;
|
||||
if (beforeLogon) {
|
||||
// for every migration, force reset to default maven template
|
||||
MigrationUtil.removeMigrationTaskById(done,
|
||||
"org.talend.repository.model.migration.ResetMavenTemplateMigrationTask");
|
||||
}
|
||||
String folderName = ERepositoryObjectType.getFolderName(type);
|
||||
if (folderName == null || "".equals(folderName)) {
|
||||
continue;
|
||||
boolean hasBinFolder = Stream.of((ERepositoryObjectType[]) ERepositoryObjectType.values())
|
||||
.filter(type -> type.hasFolder()).map(ERepositoryObjectType::getFolderName).filter(StringUtils::isNotBlank)
|
||||
.map(folderName -> fsProject.getFolder(folderName))
|
||||
.anyMatch(folder -> folder.exists() && folder.getFolder("bin").exists());
|
||||
if (hasBinFolder) {
|
||||
MigrationUtil.removeMigrationTaskById(done, "org.talend.repository.model.migration.RemoveBinFolderMigrationTask");
|
||||
}
|
||||
IFolder folder = fsProject.getFolder(folderName);
|
||||
if (folder.exists() && folder.getFolder("bin").exists()) { //$NON-NLS-1$
|
||||
haveAnyBinFolder = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (haveAnyBinFolder) {
|
||||
MigrationUtil.removeMigrationTaskById(done, "org.talend.repository.model.migration.RemoveBinFolderMigrationTask");
|
||||
}
|
||||
|
||||
final SubProgressMonitor subProgressMonitor = new SubProgressMonitor(monitorWrap, toExecute.size());
|
||||
|
||||
@@ -38,7 +38,9 @@ import org.eclipse.e4.ui.model.application.ui.basic.MPartSashContainer;
|
||||
import org.eclipse.e4.ui.model.application.ui.basic.MWindow;
|
||||
import org.eclipse.e4.ui.model.application.ui.basic.MWindowElement;
|
||||
import org.eclipse.jface.dialogs.TrayDialog;
|
||||
import org.eclipse.jface.preference.IPreferenceStore;
|
||||
import org.eclipse.jface.preference.PreferenceManager;
|
||||
import org.eclipse.swt.widgets.Display;
|
||||
import org.eclipse.ui.IPerspectiveDescriptor;
|
||||
import org.eclipse.ui.IPerspectiveRegistry;
|
||||
import org.eclipse.ui.IWorkbench;
|
||||
@@ -53,6 +55,8 @@ import org.eclipse.ui.views.IViewRegistry;
|
||||
import org.talend.commons.exception.ExceptionHandler;
|
||||
import org.talend.commons.exception.LoginException;
|
||||
import org.talend.commons.exception.PersistenceException;
|
||||
import org.talend.commons.ui.runtime.CommonUIPlugin;
|
||||
import org.talend.commons.ui.swt.colorstyledtext.ColorManager;
|
||||
import org.talend.commons.utils.system.EclipseCommandLine;
|
||||
import org.talend.core.GlobalServiceRegister;
|
||||
import org.talend.core.repository.model.ProxyRepositoryFactory;
|
||||
@@ -63,6 +67,8 @@ import org.talend.core.ui.branding.IBrandingConfiguration;
|
||||
import org.talend.core.ui.branding.IBrandingService;
|
||||
import org.talend.core.ui.services.IGitUIProviderService;
|
||||
import org.talend.designer.codegen.CodeGeneratorActivator;
|
||||
import org.talend.designer.core.DesignerPlugin;
|
||||
import org.talend.designer.core.utils.DesignerColorUtils;
|
||||
import org.talend.designer.runprocess.RunProcessPlugin;
|
||||
import org.talend.login.ILoginTask;
|
||||
import org.talend.rcp.TalendSplashHandler;
|
||||
@@ -294,6 +300,27 @@ public class ApplicationWorkbenchAdvisor extends IDEWorkbenchAdvisor {
|
||||
pm.remove("org.talend.core.prefs" + WorkbenchPlugin.PREFERENCE_PAGE_CATEGORY_SEPARATOR + "org.talend.repository.gitprovider.settings.GitPreferencePage");
|
||||
}
|
||||
pm.remove("org.eclipse.equinox.internal.p2.ui.sdk.ProvisioningPreferencePage"); //$NON-NLS-1$
|
||||
|
||||
// Re-set
|
||||
if (!CommonUIPlugin.isFullyHeadless()) {
|
||||
Display display = Display.getDefault();
|
||||
if (display == null) {
|
||||
display = Display.getCurrent();
|
||||
}
|
||||
if (display != null) {
|
||||
display.syncExec(new Runnable() {
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
IPreferenceStore store = DesignerPlugin.getDefault().getPreferenceStore();
|
||||
// designer color
|
||||
DesignerColorUtils.initPreferenceDefault(store);
|
||||
// default colors for the ColorStyledText.
|
||||
ColorManager.initDefaultColors(store);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -36,7 +36,8 @@ Require-Bundle: org.apache.commons.lang,
|
||||
org.talend.libraries.jackson,
|
||||
org.apache.xerces,
|
||||
org.talend.hadoop.distribution,
|
||||
org.talend.repository
|
||||
org.talend.repository,
|
||||
org.talend.designer.mapper
|
||||
Bundle-ActivationPolicy: lazy
|
||||
Bundle-Localization: plugin
|
||||
Export-Package: org.talend.repository.metadata,
|
||||
|
||||
@@ -77,6 +77,7 @@ import org.talend.core.prefs.ITalendCorePrefConstants;
|
||||
import org.talend.core.ui.CoreUIPlugin;
|
||||
import org.talend.cwm.helper.ConnectionHelper;
|
||||
import org.talend.datatools.xml.utils.ATreeNode;
|
||||
import org.talend.designer.mapper.ui.color.ColorInfo;
|
||||
import org.talend.metadata.managment.ui.wizard.metadata.xml.FoxNodeComboViewProvider;
|
||||
import org.talend.metadata.managment.ui.wizard.metadata.xml.node.Attribute;
|
||||
import org.talend.metadata.managment.ui.wizard.metadata.xml.node.Element;
|
||||
@@ -262,7 +263,7 @@ public class XmlFileOutputStep2Form extends AbstractXmlFileStepForm {
|
||||
tree.setEnabled(false);
|
||||
}
|
||||
tree.setLinesVisible(true);
|
||||
tree.setBackground(tree.getDisplay().getSystemColor(SWT.COLOR_WHITE));
|
||||
tree.setBackground(ColorInfo.EDITABLE_WIDGET_BACKGROUND());
|
||||
TreeColumn column1 = new TreeColumn(tree, SWT.LEFT);
|
||||
column1.setText("XML Tree");
|
||||
column1.setWidth(120);
|
||||
@@ -1162,7 +1163,7 @@ public class XmlFileOutputStep2Form extends AbstractXmlFileStepForm {
|
||||
}
|
||||
|
||||
if (errorMessage == null) {
|
||||
text.setBackground(text.getDisplay().getSystemColor(SWT.COLOR_WHITE));
|
||||
text.setBackground(ColorInfo.EDITABLE_WIDGET_BACKGROUND());
|
||||
} else {
|
||||
text.setBackground(text.getDisplay().getSystemColor(SWT.COLOR_RED));
|
||||
if (showAlertIfError) {
|
||||
|
||||
@@ -84,6 +84,7 @@ import org.talend.core.utils.TalendQuoteUtils;
|
||||
import org.talend.datatools.xml.utils.ATreeNode;
|
||||
import org.talend.datatools.xml.utils.XPathPopulationUtil;
|
||||
import org.talend.designer.core.model.utils.emf.talendfile.ContextType;
|
||||
import org.talend.designer.mapper.ui.color.ColorInfo;
|
||||
import org.talend.metadata.managment.ui.preview.AsynchronousPreviewHandler;
|
||||
import org.talend.metadata.managment.ui.preview.IPreviewHandlerListener;
|
||||
import org.talend.metadata.managment.ui.preview.ProcessDescription;
|
||||
@@ -779,7 +780,7 @@ public class XmlFileStep2Form extends AbstractXmlFileStepForm implements IRefres
|
||||
StyledText text = new StyledText(outputComposite, SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL | SWT.READ_ONLY);
|
||||
GridData gridData = new GridData(GridData.FILL_BOTH);
|
||||
text.setLayoutData(gridData);
|
||||
outputComposite.setBackground(Display.getDefault().getSystemColor(SWT.COLOR_WHITE));
|
||||
outputComposite.setBackground(ColorInfo.EDITABLE_WIDGET_BACKGROUND());
|
||||
|
||||
String errorInfo = Messages.getString("FileStep2.noresult") + "\n"; //$NON-NLS-1$ //$NON-NLS-2$
|
||||
errorInfo = errorInfo + Messages.getString("FileStep2.noresultDetailMessage") + "\n"; //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
||||
@@ -42,6 +42,7 @@ import org.talend.commons.utils.data.list.UniqueStringGenerator;
|
||||
import org.talend.core.model.metadata.builder.connection.SchemaTarget;
|
||||
import org.talend.core.model.update.ConnectionColumnUpdateManager;
|
||||
import org.talend.core.ui.metadata.editor.XmlExtractorFieldModel;
|
||||
import org.talend.designer.mapper.ui.color.ColorInfo;
|
||||
import org.talend.repository.metadata.i18n.Messages;
|
||||
|
||||
/**
|
||||
@@ -345,7 +346,7 @@ public class ExtractionFieldsWithXPathEditorView extends AbstractDataTableEditor
|
||||
if (conflictNames.contains(name)) {
|
||||
getTable().getItem(i).setBackground(Display.getDefault().getSystemColor(SWT.COLOR_RED));
|
||||
} else {
|
||||
getTable().getItem(i).setBackground(Display.getDefault().getSystemColor(SWT.COLOR_WHITE));
|
||||
getTable().getItem(i).setBackground(ColorInfo.EDITABLE_WIDGET_BACKGROUND());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -106,6 +106,11 @@ public class TalendThemeService implements ITalendThemeService {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public IPreferenceStore getThemePreferenceStore() {
|
||||
return getPreferenceStore(ITalendThemeService.THEME_PREFERENCE_ID);
|
||||
}
|
||||
|
||||
private IPreferenceStore getPreferenceStore(String bundleId) {
|
||||
IPreferenceStore prefStore = storeMap.get(bundleId);
|
||||
if (prefStore == null) {
|
||||
|
||||
@@ -21,4 +21,6 @@ public class TalendThemeConstants {
|
||||
public static final String TALEND_THEME_PREFIX = "org.talend.themes."; //$NON-NLS-1$
|
||||
|
||||
public static final String TALEND_DEFAULT_THEME_ID = TALEND_THEME_PREFIX + "css.talend.default"; //$NON-NLS-1$
|
||||
|
||||
public static final String TALEND_DARK_THEME_ID = "org.eclipse.e4.ui.css.theme.e4_dark"; //$NON-NLS-1$
|
||||
}
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
// ============================================================================
|
||||
package org.talend.themes.core.elements.utils;
|
||||
|
||||
import org.eclipse.jface.preference.IPreferenceStore;
|
||||
import org.talend.commons.ui.runtime.ITalendThemeService;
|
||||
import org.talend.themes.core.elements.constants.TalendThemeConstants;
|
||||
|
||||
/**
|
||||
@@ -26,4 +28,13 @@ public class TalendThemeUtils {
|
||||
}
|
||||
return themeId.startsWith(TalendThemeConstants.TALEND_THEME_PREFIX);
|
||||
}
|
||||
|
||||
public static boolean isDarkModeTheme() {
|
||||
IPreferenceStore themePreferenceStore = ITalendThemeService.get().getThemePreferenceStore();
|
||||
if (themePreferenceStore != null
|
||||
&& TalendThemeConstants.TALEND_DARK_THEME_ID.equals(themePreferenceStore.getString("themeid"))) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
theme.default=Talend default theme
|
||||
theme.dark=Talend experimental dark theme
|
||||
theme.light=Talend light theme
|
||||
theme.dark=Talend dark theme
|
||||
|
||||
#New theme element definitions
|
||||
DARK_BACKGROUND=Dark Background Color
|
||||
|
||||
@@ -2,51 +2,33 @@
|
||||
<?eclipse version="3.2"?>
|
||||
<plugin>
|
||||
|
||||
<extension
|
||||
point="org.eclipse.e4.ui.css.swt.theme">
|
||||
<theme
|
||||
basestylesheeturi="themes/default/css/default.css"
|
||||
id="org.talend.themes.css.talend.default"
|
||||
label="%theme.default">
|
||||
<!-- please see: TalendThemeConstants.TALEND_DEFAULT_THEME_ID -->
|
||||
</theme>
|
||||
<!--
|
||||
<theme
|
||||
basestylesheeturi="themes/dark/e4-dark_linux.css"
|
||||
id="org.eclipse.e4.ui.css.theme.e4_dark"
|
||||
label="%theme.dark"
|
||||
os="linux">
|
||||
</theme>
|
||||
<theme
|
||||
basestylesheeturi="themes/dark/e4-dark_win.css"
|
||||
id="org.eclipse.e4.ui.css.theme.e4_dark"
|
||||
label="%theme.dark"
|
||||
os="win32">
|
||||
</theme>
|
||||
<theme
|
||||
basestylesheeturi="themes/dark/e4-dark_mac.css"
|
||||
id="org.eclipse.e4.ui.css.theme.e4_dark"
|
||||
label="%theme.dark"
|
||||
os="macosx">
|
||||
</theme>
|
||||
<theme
|
||||
basestylesheeturi="themes/dark/e4-dark_mac1013.css"
|
||||
id="org.eclipse.e4.ui.css.theme.e4_dark"
|
||||
label="%theme.dark"
|
||||
os="macosx"
|
||||
os_version="10.11,10.12,10.13">
|
||||
</theme>
|
||||
-->
|
||||
<stylesheet
|
||||
uri="themes/dark/dark/e4-dark_preferencestyle.css">
|
||||
<themeid
|
||||
refid="org.eclipse.e4.ui.css.theme.e4_dark"></themeid>
|
||||
</stylesheet>
|
||||
<stylesheet
|
||||
uri="themes/default/css/preferencestyle.css">
|
||||
<themeid
|
||||
refid="org.talend.themes.css.talend.default"></themeid>
|
||||
</stylesheet>
|
||||
</extension>
|
||||
<extension point="org.eclipse.e4.ui.css.swt.theme">
|
||||
<theme basestylesheeturi="themes/default/css/default.css" id="org.talend.themes.css.talend.default" label="%theme.light">
|
||||
<!-- please see: TalendThemeConstants.TALEND_DEFAULT_THEME_ID -->
|
||||
</theme>
|
||||
|
||||
<theme basestylesheeturi="themes/dark/e4-dark_linux.css" id="org.eclipse.e4.ui.css.theme.e4_dark" label="%theme.dark" os="linux"></theme>
|
||||
<theme basestylesheeturi="themes/dark/e4-dark_win.css" id="org.eclipse.e4.ui.css.theme.e4_dark" label="%theme.dark" os="win32"></theme>
|
||||
<theme basestylesheeturi="themes/dark/e4-dark_mac.css" id="org.eclipse.e4.ui.css.theme.e4_dark" label="%theme.dark" os="macosx"></theme>
|
||||
<theme basestylesheeturi="themes/dark/e4-dark_mac1013.css" id="org.eclipse.e4.ui.css.theme.e4_dark" label="%theme.dark" os="macosx" os_version="10.11,10.12,10.13"></theme>
|
||||
<stylesheet os="win32" uri="themes/dark/dark/e4-dark_preferencestyle_win.css">
|
||||
<themeid refid="org.eclipse.e4.ui.css.theme.e4_dark"></themeid>
|
||||
</stylesheet>
|
||||
<stylesheet os="linux" uri="themes/dark/dark/e4-dark_preferencestyle_linux.css">
|
||||
<themeid refid="org.eclipse.e4.ui.css.theme.e4_dark"></themeid>
|
||||
</stylesheet>
|
||||
<stylesheet os="macosx" uri="themes/dark/dark/e4-dark_preferencestyle_mac.css">
|
||||
<themeid refid="org.eclipse.e4.ui.css.theme.e4_dark"></themeid>
|
||||
</stylesheet>
|
||||
<stylesheet os="win32" uri="themes/default/css/preferencestyle_win.css">
|
||||
<themeid refid="org.talend.themes.css.talend.default"></themeid>
|
||||
</stylesheet>
|
||||
<stylesheet os="linux" uri="themes/default/css/preferencestyle_linux.css">
|
||||
<themeid refid="org.talend.themes.css.talend.default"></themeid>
|
||||
</stylesheet>
|
||||
<stylesheet os="macosx" uri="themes/default/css/preferencestyle_mac.css">
|
||||
<themeid refid="org.talend.themes.css.talend.default"></themeid>
|
||||
</stylesheet>
|
||||
</extension>
|
||||
|
||||
</plugin>
|
||||
|
||||
@@ -348,3 +348,9 @@ TabbedPropertyList {
|
||||
tPalette-list-background-color:'#org-eclipse-ui-workbench-DARK_BACKGROUND';
|
||||
tPalette-slider-palette-background-color:'#org-eclipse-ui-workbench-DARK_BACKGROUND';
|
||||
}
|
||||
|
||||
.FooterComposite {
|
||||
background-color:'#org-eclipse-ui-workbench-DARK_BACKGROUND';
|
||||
color:'#org-eclipse-ui-workbench-DARK_FOREGROUND';
|
||||
}
|
||||
|
||||
|
||||
@@ -1,93 +1,156 @@
|
||||
/*******************************************************************************
|
||||
* Copyright (c) 2014, 2015 Lars Vogel and others.
|
||||
*
|
||||
* This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License 2.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* https://www.eclipse.org/legal/epl-2.0/
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*
|
||||
* Contributors:
|
||||
* Lars Vogel <Lars.Vogel@gmail.com> - initial API and implementation
|
||||
* Andrea Guarinoni - intial color schema definition
|
||||
* Lars Vogel <Lars.Vogel@vogella.com> - Ongoing maintenance
|
||||
*******************************************************************************/
|
||||
|
||||
/* ############################## Eclipse UI properties ############################## */
|
||||
|
||||
|
||||
IEclipsePreferences#org-eclipse-ui-editors:org-talend-themes-css-talend { /* pseudo attribute added to allow contributions without replacing this node, see Bug 466075 */
|
||||
preferences:
|
||||
'AbstractTextEditor.Color.Background.SystemDefault=false'
|
||||
'AbstractTextEditor.Color.SelectionForeground.SystemDefault=false'
|
||||
'AbstractTextEditor.Color.SelectionBackground.SystemDefault=false'
|
||||
'AbstractTextEditor.Color.Background=47,47,47'
|
||||
'AbstractTextEditor.Color.Foreground.SystemDefault=false'
|
||||
'AbstractTextEditor.Color.SelectionBackground=33,66,131'
|
||||
'AbstractTextEditor.Color.SelectionForeground=147,161,161'
|
||||
'AbstractTextEditor.Color.Foreground=204,204,204'
|
||||
'AbstractTextEditor.Color.FindScope=30,120,155'
|
||||
'asOccurencesIndicationColor=72,72,72'
|
||||
'breakpointIndicationColor=51,119,193'
|
||||
'currentIPColor=90,90,90'
|
||||
'currentLineColor=55,55,55'
|
||||
'deletionIndicationColor=224,226,228'
|
||||
'filteredSearchResultIndicationColor=27,98,145'
|
||||
'hyperlinkColor=102,175,249'
|
||||
'hyperlinkColor.SystemDefault=false'
|
||||
'infoIndicationColor=86,194,170'
|
||||
'lineNumberColor=119,145,154'
|
||||
'linked.slave.color=66,156,255'
|
||||
'matchingTagIndicationColor=72,72,72'
|
||||
'occurrenceIndicationColor=27,98,145'
|
||||
'overrideIndicatorColor=78,120,117'
|
||||
'printMarginColor=81,86,88'
|
||||
'searchResultHighlighting=false'
|
||||
'searchResultIndication=true'
|
||||
'searchResultIndicationColor=94,94,94'
|
||||
'searchResultTextStyle=BOX'
|
||||
'secondaryIPColor=90,90,90'
|
||||
'spellingIndicationColor=253,170,211'
|
||||
'writeOccurrenceIndicationColor=27,98,145'
|
||||
}
|
||||
|
||||
IEclipsePreferences#org-eclipse-ui-workbench:org-talend-themes-css-talend { /* pseudo attribute added to allow contributions without replacing this node, see Bug 466075 */
|
||||
preferences:
|
||||
'ACTIVE_HYPERLINK_COLOR=138,201,242'
|
||||
'CONFLICTING_COLOR=240,15,66'
|
||||
'CONTENT_ASSIST_BACKGROUND_COLOR=52,57,61'
|
||||
'CONTENT_ASSIST_FOREGROUND_COLOR=238,238,238'
|
||||
'org.eclipse.ui.workbench.INFORMATION_BACKGROUND=81,86,88'
|
||||
'org.eclipse.ui.workbench.INFORMATION_FOREGROUND=238,238,238'
|
||||
'org.eclipse.ui.workbench.HOVER_BACKGROUND=52,57,61'
|
||||
'org.eclipse.ui.workbench.HOVER_FOREGROUND=238,238,238'
|
||||
'ERROR_COLOR=247,68,117'
|
||||
'HYPERLINK_COLOR=111,197,238'
|
||||
'INCOMING_COLOR=31,179,235'
|
||||
'OUTGOING_COLOR=238,238,238'
|
||||
'RESOLVED_COLOR=108,210,17'
|
||||
'EDITION_COLOR=238,238,238'
|
||||
'org.eclipse.search.ui.match.highlight=206,92,0'
|
||||
'org.eclipse.ui.editors.rangeIndicatorColor=27,118,153'
|
||||
'org.eclipse.jface.REVISION_NEWEST_COLOR=75,44,3'
|
||||
'org.eclipse.jface.REVISION_OLDEST_COLOR=154,113,61'
|
||||
'org.talend.designer.core.lightColor=212,212,212'
|
||||
'org.talend.designer.core.darkColor=0,0,0'
|
||||
'org.talend.designer.core.alpha=95'
|
||||
'org.talend.commons.ui.BgColorForEmptyArea=#org-eclipse-ui-workbench-DARK_BACKGROUND'
|
||||
'org.talend.core.repository.REPO_STABLE_SECONDARY_ENTRY_COLOR=175,175,175'
|
||||
'org.talend.core.repository.REPO_INACTIVE_ENTRY_COLOR=138,138,138'
|
||||
'org.talend.core.repository.REPO_LOCKED_ENTRY=107,0,0'
|
||||
'org.talend.core.repository.REPO_MERGED_REFERENCED_ITEMS_COLOR=175,175,175'
|
||||
'org.talend.core.repository.TAB_START_COLOR=27,60,79'
|
||||
'org.talend.core.repository.TAB_END_COLOR=86,86,86'
|
||||
}
|
||||
|
||||
IEclipsePreferences#org-talend-designer-core:org-talend-themes-css-talend { /* pseudo attribute added to allow contributions without replacing this node, see Bug 466075 */
|
||||
preferences:
|
||||
'jobDesignerBackgroundColor=122,122,122'
|
||||
'subjobColor=0,0,0'
|
||||
'subjobTitleColor=128,255,0'
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
* Copyright (c) 2014, 2015 Lars Vogel and others.
|
||||
*
|
||||
* This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License 2.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* https://www.eclipse.org/legal/epl-2.0/
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*
|
||||
* Contributors:
|
||||
* Lars Vogel <Lars.Vogel@gmail.com> - initial API and implementation
|
||||
* Andrea Guarinoni - intial color schema definition
|
||||
* Lars Vogel <Lars.Vogel@vogella.com> - Ongoing maintenance
|
||||
*******************************************************************************/
|
||||
|
||||
/* ############################## Eclipse UI properties ############################## */
|
||||
|
||||
IEclipsePreferences#org-talend-designer-core:org-talend-themes-css-talend-base { /* pseudo attribute added to allow contributions without replacing this node, see Bug 466075 */
|
||||
preferences:
|
||||
'forbiddenSubjobColor=207,226,236'
|
||||
'forbiddenSubjobTitleColor=92,131,150'
|
||||
}
|
||||
|
||||
IEclipsePreferences#org-eclipse-ui-editors:org-talend-themes-css-talend-base { /* pseudo attribute added to allow contributions without replacing this node, see Bug 466075 */
|
||||
preferences:
|
||||
'AbstractTextEditor.Color.Background.SystemDefault=false'
|
||||
'AbstractTextEditor.Color.SelectionForeground.SystemDefault=false'
|
||||
'AbstractTextEditor.Color.SelectionBackground.SystemDefault=false'
|
||||
'AbstractTextEditor.Color.Background=47,47,47'
|
||||
'AbstractTextEditor.Color.Foreground.SystemDefault=false'
|
||||
'AbstractTextEditor.Color.SelectionBackground=33,66,131'
|
||||
'AbstractTextEditor.Color.SelectionForeground=147,161,161'
|
||||
'AbstractTextEditor.Color.Foreground=204,204,204'
|
||||
'AbstractTextEditor.Color.FindScope=30,120,155'
|
||||
'asOccurencesIndicationColor=72,72,72'
|
||||
'breakpointIndicationColor=51,119,193'
|
||||
'currentIPColor=90,90,90'
|
||||
'currentLineColor=55,55,55'
|
||||
'deletionIndicationColor=224,226,228'
|
||||
'filteredSearchResultIndicationColor=27,98,145'
|
||||
'hyperlinkColor=102,175,249'
|
||||
'hyperlinkColor.SystemDefault=false'
|
||||
'infoIndicationColor=86,194,170'
|
||||
'lineNumberColor=119,145,154'
|
||||
'linked.slave.color=66,156,255'
|
||||
'matchingTagIndicationColor=72,72,72'
|
||||
'occurrenceIndicationColor=27,98,145'
|
||||
'overrideIndicatorColor=78,120,117'
|
||||
'printMarginColor=81,86,88'
|
||||
'searchResultHighlighting=false'
|
||||
'searchResultIndication=true'
|
||||
'searchResultIndicationColor=94,94,94'
|
||||
'searchResultTextStyle=BOX'
|
||||
'secondaryIPColor=90,90,90'
|
||||
'spellingIndicationColor=253,170,211'
|
||||
'writeOccurrenceIndicationColor=27,98,145'
|
||||
}
|
||||
|
||||
IEclipsePreferences#org-eclipse-ui-workbench:org-talend-themes-css-talend-base { /* pseudo attribute added to allow contributions without replacing this node, see Bug 466075 */
|
||||
preferences:
|
||||
'ACTIVE_HYPERLINK_COLOR=138,201,242'
|
||||
'CONFLICTING_COLOR=240,15,66'
|
||||
'CONTENT_ASSIST_BACKGROUND_COLOR=52,57,61'
|
||||
'CONTENT_ASSIST_FOREGROUND_COLOR=238,238,238'
|
||||
'org.eclipse.ui.workbench.INFORMATION_BACKGROUND=81,86,88'
|
||||
'org.eclipse.ui.workbench.INFORMATION_FOREGROUND=238,238,238'
|
||||
'org.eclipse.ui.workbench.HOVER_BACKGROUND=52,57,61'
|
||||
'org.eclipse.ui.workbench.HOVER_FOREGROUND=238,238,238'
|
||||
'ERROR_COLOR=247,68,117'
|
||||
'HYPERLINK_COLOR=111,197,238'
|
||||
'INCOMING_COLOR=31,179,235'
|
||||
'OUTGOING_COLOR=238,238,238'
|
||||
'RESOLVED_COLOR=108,210,17'
|
||||
'EDITION_COLOR=238,238,238'
|
||||
'org.eclipse.search.ui.match.highlight=206,92,0'
|
||||
'org.eclipse.ui.editors.rangeIndicatorColor=27,118,153'
|
||||
'org.eclipse.jface.REVISION_NEWEST_COLOR=75,44,3'
|
||||
'org.eclipse.jface.REVISION_OLDEST_COLOR=154,113,61'
|
||||
'org.talend.designer.core.lightColor=47,47,47'
|
||||
'org.talend.designer.core.darkColor=20,20,20'
|
||||
'org.talend.designer.core.alpha=95'
|
||||
'org.talend.commons.ui.BgColorForEmptyArea=#org-eclipse-ui-workbench-DARK_BACKGROUND'
|
||||
'org.talend.core.repository.REPO_STABLE_SECONDARY_ENTRY_COLOR=175,175,175'
|
||||
'org.talend.core.repository.REPO_INACTIVE_ENTRY_COLOR=138,138,138'
|
||||
'org.talend.core.repository.REPO_LOCKED_ENTRY=107,0,0'
|
||||
'org.talend.core.repository.REPO_MERGED_REFERENCED_ITEMS_COLOR=175,175,175'
|
||||
'org.talend.core.repository.TAB_START_COLOR=27,60,79'
|
||||
'org.talend.core.repository.TAB_END_COLOR=86,86,86'
|
||||
|
||||
/*tMap*/
|
||||
'COLOR_ENTRY_ERROR=100,200,255'
|
||||
'COLOR_ENTRY_WARNING=0,200,60'
|
||||
'COLOR_BACKGROUND_LINKS_ZONE=64,68,71' /* Link panel background */
|
||||
|
||||
'COLOR_HIGHLIGHTED_TEXT_ROW=55,55,55'
|
||||
'COLOR_BACKGROUND_ERROR_EXPRESSION_CELL=255,0,0' /*Error expression background*/
|
||||
'COLOR_BACKGROUND_VALID_EXPRESSION_CELL=0,0,0' /*Normal expression background*/
|
||||
|
||||
'COLOR_FOREGROUND_ERROR_EXPRESSION_CELL=255,255,255' /*Error expression foreground*/
|
||||
'COLOR_FOREGROUND_VALID_EXPRESSION_CELL=255,255,255' /*Normal expression foreground*/
|
||||
'COLOR_DRAGGING_INSERTION_INDICATOR=0,78,152'
|
||||
'COLOR_TMAP_PREVIEW=235,234,230'
|
||||
'COLOR_TMAP_SCROLLED_COMPOSITE=81,86,88'
|
||||
/*For db map*/
|
||||
'COLOR_BACKGROUND_WARNING_EXPRESSION_CELL=255,190,150'
|
||||
/*For xml map*/
|
||||
'COLOR_TREE_BORDER=153,186,243'
|
||||
'ZONE_BACKGROUND_COLOR=81,86,88'
|
||||
'COLOR_TREE_LINES=128,128,128'
|
||||
'COLOR_COLUMN_SELECTION=90,180,255'
|
||||
'COLOR_COLUMN_TREE_SETTING=200,225,250'
|
||||
'COLOR_EXPREESION_DISABLE=240,240,240'
|
||||
'NODE_FIGURE_BACKGROUND=0,0,0'
|
||||
'NODE_FIGURE_FORCEGROUND=255,255,255'
|
||||
|
||||
'ColorStyledText.Color.Background=47,47,47' /*ColorStyledText background*/
|
||||
'ColorStyledText.Color.Foreground=204,204,204' /*ColorStyledText foreground*/
|
||||
'ColorStyledText.Color.SelectionBackground=33,66,131' /*ColorStyledText selection background*/
|
||||
'ColorStyledText.Color.SelectionForeground=147,161,161' /*ColorStyledText selection foreground*/
|
||||
|
||||
/*ColorManager for ColorStyledText*/
|
||||
'nullColor=255,255,255' /*Express code color null color*/
|
||||
'comment1Color=0,140,34'
|
||||
'comment2Color=34,140,0'
|
||||
'literal1Color=0,0,255'
|
||||
'literal2Color=160,100,240'
|
||||
'labelColor=160,0,240'
|
||||
'keyword1Color=0,255,0'
|
||||
'keyword2Color=240,160,80'
|
||||
'keyword3Color=160,32,100'
|
||||
'functionColor=160,32,0'
|
||||
'markupColor=178,0,34'
|
||||
'operatorColor=178,34,0'
|
||||
'digitColor=160,32,0'
|
||||
'invalidColor=178,0,34'
|
||||
|
||||
/*Designer color preference page default color */
|
||||
'jobDesignerBackgroundColor=47,47,47'
|
||||
'subjobColor=0,0,0'
|
||||
'subjobTitleColor=255,255,255'
|
||||
'jobletColor=0,0,0'
|
||||
'readOnlyBackgroundColor=181,180,180'
|
||||
/*Joblet figure*/
|
||||
'JOBLET_NORMAL_BG=0,0,0'
|
||||
'JOBLET_HIDDEN_BG=255,255,255'
|
||||
'JOBLET_PROBLEM_BG=250,72,80'
|
||||
'SUBJOB_BORDER_FG=145,209,237'
|
||||
'JOBLET_BORDER_FG=145,209,237'
|
||||
|
||||
/*GEF Job Editor*/
|
||||
'NODE_FIGURE_LABEL_FORCEGROUND=255,255,255'
|
||||
/*Context Table*/
|
||||
'CONTEXT_TABLE_READONLY_FOREGROUND=163,163,163'
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
/*******************************************************************************
|
||||
* Copyright (c) 2014, 2015 Lars Vogel and others.
|
||||
*
|
||||
* This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License 2.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* https://www.eclipse.org/legal/epl-2.0/
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*
|
||||
* Contributors:
|
||||
* Lars Vogel <Lars.Vogel@gmail.com> - initial API and implementation
|
||||
* Andrea Guarinoni - intial color schema definition
|
||||
* Lars Vogel <Lars.Vogel@vogella.com> - Ongoing maintenance
|
||||
*******************************************************************************/
|
||||
|
||||
/* ############################## Eclipse UI properties ############################## */
|
||||
|
||||
@import url("platform:/plugin/org.talend.themes.css.talend/themes/dark/dark/e4-dark_preferencestyle.css");
|
||||
IEclipsePreferences#org-eclipse-ui-workbench:org-talend-themes-css-talend { /* pseudo attribute added to allow contributions without replacing this node, see Bug 466075 */
|
||||
preferences:
|
||||
/*tMap not use following value*/
|
||||
'COLOR_ENTRY_NORMALD_NO_USE=170,170,170'
|
||||
'COLOR_ENTRY_NONED_NO_USE=0,0,0'
|
||||
'COLOR_ENTRY_HIGHLIGHTED_NO_USE=38,66,89' /*High light*/
|
||||
'COLOR_ENTRY_HIGHLIGHTEDALL_NO_USE=38,66,89' /*High light all*/
|
||||
'COLOR_ENTRY_SEARCH_HIGHLIGHTED_NO_USE=38,66,89' /*Search high light*/
|
||||
'COLOR_SELECTED_ZONE_TO_ZONE_LINK_NO_USE=102,192,230'
|
||||
'COLOR_UNSELECTED_ZONE_TO_ZONE_LINK_NO_USE=110,111,112'
|
||||
'COLOR_TMAP_TABELHEADER_SELECTED_BG_NO_USE=102,191,230'
|
||||
'COLOR_TMAP_TABELHEADER_UNSELECTED_BG_NO_USE=70,70,70'
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
/*******************************************************************************
|
||||
* Copyright (c) 2014, 2015 Lars Vogel and others.
|
||||
*
|
||||
* This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License 2.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* https://www.eclipse.org/legal/epl-2.0/
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*
|
||||
* Contributors:
|
||||
* Lars Vogel <Lars.Vogel@gmail.com> - initial API and implementation
|
||||
* Andrea Guarinoni - intial color schema definition
|
||||
* Lars Vogel <Lars.Vogel@vogella.com> - Ongoing maintenance
|
||||
*******************************************************************************/
|
||||
|
||||
/* ############################## Eclipse UI properties ############################## */
|
||||
|
||||
@import url("platform:/plugin/org.talend.themes.css.talend/themes/dark/dark/e4-dark_preferencestyle.css");
|
||||
IEclipsePreferences#org-eclipse-ui-workbench:org-talend-themes-css-talend { /* pseudo attribute added to allow contributions without replacing this node, see Bug 466075 */
|
||||
preferences:
|
||||
/*tMap Don't use following value*/
|
||||
'COLOR_ENTRY_NORMAL=170,170,170'
|
||||
'COLOR_ENTRY_NONE=30,30,30'
|
||||
'COLOR_ENTRY_HIGHLIGHTED=0,88,208' /*High light*/
|
||||
'COLOR_ENTRY_HIGHLIGHTEDALL=0,88,208' /*High light all*/
|
||||
'COLOR_ENTRY_SEARCH_HIGHLIGHTED=0,88,208' /*Search high light*/
|
||||
'COLOR_SELECTED_ZONE_TO_ZONE_LINK=0,88,208'
|
||||
'COLOR_TMAP_TABELHEADER_SELECTED_BG=0,88,208'
|
||||
'COLOR_TMAP_TABELHEADER_UNSELECTED_BG=70,70,70'
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
/*******************************************************************************
|
||||
* Copyright (c) 2014, 2015 Lars Vogel and others.
|
||||
*
|
||||
* This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License 2.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* https://www.eclipse.org/legal/epl-2.0/
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*
|
||||
* Contributors:
|
||||
* Lars Vogel <Lars.Vogel@gmail.com> - initial API and implementation
|
||||
* Andrea Guarinoni - intial color schema definition
|
||||
* Lars Vogel <Lars.Vogel@vogella.com> - Ongoing maintenance
|
||||
*******************************************************************************/
|
||||
|
||||
/* ############################## Eclipse UI properties ############################## */
|
||||
@import url("platform:/plugin/org.talend.themes.css.talend/themes/dark/dark/e4-dark_preferencestyle.css");
|
||||
|
||||
IEclipsePreferences#org-eclipse-ui-workbench:org-talend-themes-css-talend { /* pseudo attribute added to allow contributions without replacing this node, see Bug 466075 */
|
||||
preferences:
|
||||
/*tMap*/
|
||||
'COLOR_ENTRY_HIGHLIGHTED=38,66,89' /*High light*/
|
||||
'COLOR_ENTRY_HIGHLIGHTEDALL=38,66,89' /*High light all*/
|
||||
'COLOR_ENTRY_SEARCH_HIGHLIGHTED=38,66,89' /*Search high light*/
|
||||
'COLOR_ENTRY_NORMAL=170,170,170'
|
||||
'COLOR_ENTRY_NONE=0,0,0'
|
||||
'COLOR_SELECTED_ZONE_TO_ZONE_LINK=38,66,89'
|
||||
'COLOR_UNSELECTED_ZONE_TO_ZONE_LINK=110,111,112'
|
||||
'COLOR_TMAP_TABELHEADER_SELECTED_BG=38,66,89'
|
||||
'COLOR_TMAP_TABELHEADER_UNSELECTED_BG=70,70,70'
|
||||
}
|
||||
|
||||
@@ -686,6 +686,7 @@ CTabFolder.org-talend-rcp-abstractMultiPageEditor-footer CTabItem:selected {
|
||||
MERGED_REFERENCED_ITEMS_COLOR: #787878;
|
||||
|
||||
}
|
||||
|
||||
/**************************************************
|
||||
* User Color and Font Changes
|
||||
**************************************************/
|
||||
|
||||
@@ -16,18 +16,74 @@
|
||||
|
||||
/* ############################## Eclipse UI properties ############################## */
|
||||
|
||||
|
||||
IEclipsePreferences#org-talend-designer-core:org-talend-themes-css-talend { /* pseudo attribute added to allow contributions without replacing this node, see Bug 466075 */
|
||||
IEclipsePreferences#org-talend-designer-core:org-talend-themes-css-talend-base { /* pseudo attribute added to allow contributions without replacing this node, see Bug 466075 */
|
||||
preferences:
|
||||
'jobDesignerBackgroundColor=250,250,250'
|
||||
'subjobColor=207,226,236'
|
||||
'subjobTitleColor=92,131,150'
|
||||
'forbiddenSubjobColor=0,0,0'
|
||||
'forbiddenSubjobTitleColor=255,255,255'
|
||||
}
|
||||
|
||||
IEclipsePreferences#org-eclipse-ui-workbench:org-talend-themes-css-talend { /* pseudo attribute added to allow contributions without replacing this node, see Bug 466075 */
|
||||
IEclipsePreferences#org-eclipse-ui-workbench:org-talend-themes-css-talend-base { /* pseudo attribute added to allow contributions without replacing this node, see Bug 466075 */
|
||||
preferences:
|
||||
'org.talend.designer.core.lightColor=232,235,239'
|
||||
'org.talend.designer.core.darkColor=125,135,150'
|
||||
'org.talend.designer.core.alpha=30'
|
||||
/*tMap*/
|
||||
'COLOR_BACKGROUND_LINKS_ZONE=210,210,196'
|
||||
|
||||
'COLOR_HIGHLIGHTED_TEXT_ROW=240,240,240'
|
||||
'COLOR_BACKGROUND_ERROR_EXPRESSION_CELL=255,0,0'
|
||||
'COLOR_BACKGROUND_VALID_EXPRESSION_CELL=255,255,255'
|
||||
|
||||
'COLOR_FOREGROUND_ERROR_EXPRESSION_CELL=255,255,255'
|
||||
'COLOR_FOREGROUND_VALID_EXPRESSION_CELL=0,0,0'
|
||||
'COLOR_DRAGGING_INSERTION_INDICATOR=0,78,152'
|
||||
'COLOR_TMAP_PREVIEW=235,234,230'
|
||||
|
||||
'COLOR_ENTRY_ERROR=100,200,255'
|
||||
'COLOR_ENTRY_WARNING=0,200,60'
|
||||
/*For db map*/
|
||||
'COLOR_BACKGROUND_WARNING_EXPRESSION_CELL=255,190,150'
|
||||
/*For xml map*/
|
||||
'COLOR_TREE_BORDER=153,186,243'
|
||||
'ZONE_BACKGROUND_COLOR=210,210,196'
|
||||
'COLOR_TREE_LINES=128,128,128'
|
||||
'COLOR_COLUMN_SELECTION=90,180,255'
|
||||
'COLOR_COLUMN_TREE_SETTING=200,225,250'
|
||||
'COLOR_EXPREESION_DISABLE=240,240,240'
|
||||
'NODE_FIGURE_BACKGROUND=255,255,255'
|
||||
'NODE_FIGURE_FORCEGROUND=0,0,0'
|
||||
/*GEF Job Editor*/
|
||||
'NODE_FIGURE_LABEL_FORCEGROUND=0,0,0'
|
||||
|
||||
/*Context Table*/
|
||||
'CONTEXT_TABLE_READONLY_FOREGROUND=105,105,105'
|
||||
/*ColorManager for ColorStyledText*/
|
||||
'nullColor=0,0,0' /*Express code color null color*/
|
||||
'comment1Color=0,140,34'
|
||||
'comment2Color=34,140,0'
|
||||
'literal1Color=0,0,255'
|
||||
'literal2Color=160,100,240'
|
||||
'labelColor=160,0,240'
|
||||
'keyword1Color=50,32,160'
|
||||
'keyword2Color=240,160,80'
|
||||
'keyword3Color=160,32,100'
|
||||
'functionColor=160,32,0'
|
||||
'markupColor=178,0,34'
|
||||
'operatorColor=178,34,0'
|
||||
'digitColor=160,32,0'
|
||||
'invalidColor=178,0,34'
|
||||
|
||||
/*Designer color preference page default color */
|
||||
'jobDesignerBackgroundColor=250,250,250'
|
||||
'subjobColor=207,226,236'
|
||||
'subjobTitleColor=92,131,150'
|
||||
'jobletColor=130,240,100'
|
||||
'readOnlyBackgroundColor=231,231,231'
|
||||
'JOBLET_NORMAL_BG=130,240,100'
|
||||
'JOBLET_HIDDEN_BG=255,255,255'
|
||||
'JOBLET_PROBLEM_BG=250,72,80'
|
||||
'SUBJOB_BORDER_FG=224,233,238'
|
||||
'JOBLET_BORDER_FG=135,243,146'
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/*******************************************************************************
|
||||
* Copyright (c) 2014, 2015 Lars Vogel and others.
|
||||
*
|
||||
* This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License 2.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* https://www.eclipse.org/legal/epl-2.0/
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*
|
||||
* Contributors:
|
||||
* Lars Vogel <Lars.Vogel@gmail.com> - initial API and implementation
|
||||
* Andrea Guarinoni - intial color schema definition
|
||||
* Lars Vogel <Lars.Vogel@vogella.com> - Ongoing maintenance
|
||||
*******************************************************************************/
|
||||
|
||||
/* ############################## Eclipse UI properties ############################## */
|
||||
|
||||
|
||||
@import url("platform:/plugin/org.talend.themes.css.talend/themes/default/css/preferencestyle.css");
|
||||
IEclipsePreferences#org-eclipse-ui-workbench:org-talend-themes-css-talend { /* pseudo attribute added to allow contributions without replacing this node, see Bug 466075 */
|
||||
preferences:
|
||||
/*tMap not use following value*/
|
||||
'COLOR_ENTRY_NORMAL_NO_USE=50,50,50'
|
||||
'COLOR_ENTRY_NONE_NO_USE=0,0,0' /*Input table entry*/
|
||||
'COLOR_ENTRY_HIGHLIGHTED_NO_USE=229,243,255' /*High light*/
|
||||
'COLOR_ENTRY_HIGHLIGHTEDALL_NO_USE=229,243,255' /*High light all*/
|
||||
'COLOR_ENTRY_SEARCH_HIGHLIGHTED_NO_USE=229,243,255' /*Search high light*/
|
||||
'COLOR_TMAP_TABELHEADER_SELECTED_BG_NO_USE=102,191,230' /*Map table header selected background*/
|
||||
'COLOR_SELECTED_ZONE_TO_ZONE_LINK_NO_USE=110,111,112'
|
||||
'COLOR_UNSELECTED_ZONE_TO_ZONE_LINK_NO_USE=102,192,230'
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
/*******************************************************************************
|
||||
* Copyright (c) 2014, 2015 Lars Vogel and others.
|
||||
*
|
||||
* This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License 2.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* https://www.eclipse.org/legal/epl-2.0/
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*
|
||||
* Contributors:
|
||||
* Lars Vogel <Lars.Vogel@gmail.com> - initial API and implementation
|
||||
* Andrea Guarinoni - intial color schema definition
|
||||
* Lars Vogel <Lars.Vogel@vogella.com> - Ongoing maintenance
|
||||
*******************************************************************************/
|
||||
|
||||
/* ############################## Eclipse UI properties ############################## */
|
||||
|
||||
@import url("platform:/plugin/org.talend.themes.css.talend/themes/default/css/preferencestyle.css");
|
||||
IEclipsePreferences#org-eclipse-ui-workbench:org-talend-themes-css-talend { /* pseudo attribute added to allow contributions without replacing this node, see Bug 466075 */
|
||||
preferences:
|
||||
/*tMap Don't use following value*/
|
||||
'COLOR_ENTRY_NORMAL=170,170,170'
|
||||
'COLOR_ENTRY_NONE=255,255,255' /*Input table entry*/
|
||||
'COLOR_ENTRY_HIGHLIGHTED=0,88,208' /*High light*/
|
||||
'COLOR_ENTRY_HIGHLIGHTEDALL=0,88,208' /*High light all*/
|
||||
'COLOR_ENTRY_SEARCH_HIGHLIGHTED=0,88,208' /*Search high light*/
|
||||
'COLOR_TMAP_TABELHEADER_SELECTED_BG=0,88,208' /*Map table header selected background*/
|
||||
'COLOR_TMAP_TABELHEADER_UNSELECTED_BG=220,220,220'
|
||||
'COLOR_SELECTED_ZONE_TO_ZONE_LINK=0,88,208'
|
||||
'COLOR_UNSELECTED_ZONE_TO_ZONE_LINK=110,111,112'
|
||||
}
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
/*******************************************************************************
|
||||
* Copyright (c) 2014, 2015 Lars Vogel and others.
|
||||
*
|
||||
* This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License 2.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* https://www.eclipse.org/legal/epl-2.0/
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*
|
||||
* Contributors:
|
||||
* Lars Vogel <Lars.Vogel@gmail.com> - initial API and implementation
|
||||
* Andrea Guarinoni - intial color schema definition
|
||||
* Lars Vogel <Lars.Vogel@vogella.com> - Ongoing maintenance
|
||||
*******************************************************************************/
|
||||
|
||||
/* ############################## Eclipse UI properties ############################## */
|
||||
|
||||
@import url("platform:/plugin/org.talend.themes.css.talend/themes/default/css/preferencestyle.css");
|
||||
IEclipsePreferences#org-eclipse-ui-workbench:org-talend-themes-css-talend { /* pseudo attribute added to allow contributions without replacing this node, see Bug 466075 */
|
||||
preferences:
|
||||
/*tMap*/
|
||||
'COLOR_ENTRY_NORMAL=170,170,170'
|
||||
'COLOR_ENTRY_NONE=255,255,255' /*Input table entry*/
|
||||
'COLOR_ENTRY_HIGHLIGHTED=229,243,255' /*High light*/
|
||||
'COLOR_ENTRY_HIGHLIGHTEDALL=229,243,255' /*High light all*/
|
||||
'COLOR_ENTRY_SEARCH_HIGHLIGHTED=229,243,255' /*Search high light*/
|
||||
'COLOR_TMAP_TABELHEADER_SELECTED_BG=204,232,255' /*Map table header selected background*/
|
||||
'COLOR_SELECTED_ZONE_TO_ZONE_LINK=204,232,255'
|
||||
'COLOR_UNSELECTED_ZONE_TO_ZONE_LINK=110,111,112'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user