Xterm view for OS terminal in Eclipse
This commit is contained in:
@@ -0,0 +1,173 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?eclipse version="3.4"?>
|
||||
<plugin>
|
||||
<extension
|
||||
point="org.eclipse.ui.views">
|
||||
<view
|
||||
category="org.eclipse.ui"
|
||||
class="org.springframework.ide.eclipse.xterm.views.TerminalView"
|
||||
icon="icons/terminal.png"
|
||||
id="org.springframework.ide.eclipse.xterm.views.TerminalView"
|
||||
inject="true"
|
||||
name="Xterm">
|
||||
</view>
|
||||
</extension>
|
||||
<extension
|
||||
point="org.eclipse.e4.ui.css.swt.theme">
|
||||
<stylesheet
|
||||
uri="css/terminal-dark-theme.css">
|
||||
<themeid
|
||||
refid="org.eclipse.e4.ui.css.theme.e4_dark">
|
||||
</themeid>
|
||||
</stylesheet>
|
||||
</extension>
|
||||
<extension
|
||||
point="org.eclipse.ui.themes">
|
||||
<colorDefinition
|
||||
categoryId="org.springframework.ide.eclipse.xterm"
|
||||
id="org.springframework.ide.eclipse.xterm.background"
|
||||
isEditable="true"
|
||||
label="Background Color"
|
||||
value="255,255,255">
|
||||
</colorDefinition>
|
||||
<colorDefinition
|
||||
categoryId="org.springframework.ide.eclipse.xterm"
|
||||
id="org.springframework.ide.eclipse.xterm.foreground"
|
||||
label="Foreground Color"
|
||||
value="0,0,0">
|
||||
</colorDefinition>
|
||||
<colorDefinition
|
||||
categoryId="org.springframework.ide.eclipse.xterm"
|
||||
id="org.springframework.ide.eclipse.xterm.selection"
|
||||
label="Selection Color"
|
||||
value="45,45,45">
|
||||
</colorDefinition>
|
||||
<colorDefinition
|
||||
categoryId="org.springframework.ide.eclipse.xterm"
|
||||
id="org.springframework.ide.eclipse.xterm.cursor"
|
||||
label="Cursor Color"
|
||||
value="0,0,0">
|
||||
</colorDefinition>
|
||||
<colorDefinition
|
||||
categoryId="org.springframework.ide.eclipse.xterm"
|
||||
id="org.springframework.ide.eclipse.xterm.cursorAccent"
|
||||
label="Cursor Accent Color"
|
||||
value="0,0,0">
|
||||
</colorDefinition>
|
||||
<themeElementCategory
|
||||
id="org.springframework.ide.eclipse.xterm"
|
||||
label="Xterm">
|
||||
<description>
|
||||
Xterm terminal apperance theme settings
|
||||
</description>
|
||||
</themeElementCategory>
|
||||
<fontDefinition
|
||||
categoryId="org.springframework.ide.eclipse.xterm"
|
||||
defaultsTo="org.eclipse.jface.textfont"
|
||||
id="org.springframework.ide.eclipse.xterm.font"
|
||||
label="Font">
|
||||
</fontDefinition>
|
||||
</extension>
|
||||
<extension
|
||||
point="org.eclipse.ui.menus">
|
||||
<menuContribution
|
||||
allPopups="false"
|
||||
locationURI="popup:org.eclipse.ui.popup.any?before=group.edit">
|
||||
<command
|
||||
commandId="org.springframework.ide.eclipse.xterm.open"
|
||||
icon="icons/terminal.png"
|
||||
id="org.springframework.ide.eclipse.xterm.open"
|
||||
label="Open Xterm"
|
||||
style="push"
|
||||
tooltip="Open terminal for the folder">
|
||||
<visibleWhen
|
||||
checkEnabled="false">
|
||||
<and>
|
||||
<count
|
||||
value="1">
|
||||
</count>
|
||||
<iterate>
|
||||
<or>
|
||||
<adapt
|
||||
type="org.eclipse.core.resources.IProject">
|
||||
<test
|
||||
property="org.eclipse.core.resources.open"
|
||||
value="true">
|
||||
</test>
|
||||
</adapt>
|
||||
<and>
|
||||
<instanceof
|
||||
value="org.eclipse.core.resources.IProject">
|
||||
</instanceof>
|
||||
<test
|
||||
property="org.eclipse.core.resources.open"
|
||||
value="true">
|
||||
</test>
|
||||
</and>
|
||||
</or>
|
||||
</iterate>
|
||||
</and>
|
||||
</visibleWhen>
|
||||
</command>
|
||||
</menuContribution>
|
||||
</extension>
|
||||
<extension
|
||||
point="org.eclipse.ui.handlers">
|
||||
<handler
|
||||
class="org.springframework.ide.eclipse.xterm.views.OpenTerminalHandler"
|
||||
commandId="org.springframework.ide.eclipse.xterm.open">
|
||||
<enabledWhen>
|
||||
<and>
|
||||
<count
|
||||
value="1">
|
||||
</count>
|
||||
<iterate>
|
||||
<or>
|
||||
<adapt
|
||||
type="org.eclipse.core.resources.IProject">
|
||||
<test
|
||||
property="org.eclipse.core.resources.open"
|
||||
value="true">
|
||||
</test>
|
||||
</adapt>
|
||||
<and>
|
||||
<instanceof
|
||||
value="org.eclipse.core.resources.IProject">
|
||||
</instanceof>
|
||||
<test
|
||||
property="org.eclipse.core.resources.open"
|
||||
value="true">
|
||||
</test>
|
||||
</and>
|
||||
</or>
|
||||
</iterate>
|
||||
</and>
|
||||
</enabledWhen>
|
||||
</handler>
|
||||
</extension>
|
||||
<extension
|
||||
point="org.eclipse.ui.commands">
|
||||
<command
|
||||
categoryId="org.eclipse.ui.category.navigate"
|
||||
defaultHandler="org.springframework.ide.eclipse.xterm.views.OpenTerminalHandler"
|
||||
description="Open terminal for folder"
|
||||
id="org.springframework.ide.eclipse.xterm.open"
|
||||
name="Open Terminal">
|
||||
</command>
|
||||
</extension>
|
||||
<extension
|
||||
point="org.eclipse.core.runtime.preferences">
|
||||
<initializer
|
||||
class="org.springframework.ide.eclipse.xterm.views.XtermPreferencesInitializer">
|
||||
</initializer>
|
||||
</extension>
|
||||
<extension
|
||||
point="org.eclipse.ui.preferencePages">
|
||||
<page
|
||||
class="org.springframework.ide.eclipse.xterm.views.XtermPreferencePage"
|
||||
id="org.springframework.ide.eclipse.xterm."
|
||||
name="Xterm">
|
||||
</page>
|
||||
</extension>
|
||||
|
||||
</plugin>
|
||||
Reference in New Issue
Block a user