Permalink
Browse files

added support for changing color on linux.

  • Loading branch information...
1 parent ac2e371 commit 9601595892e764f82ce1a5e447945f334e7ef9c5 juanibiapina committed Feb 3, 2011
Showing with 67 additions and 135 deletions.
  1. +60 −131 BuildMonitor.iws
  2. +7 −4 src/main/com/thoughtworks/go/monitor/BlameMonitor.java
View
191 BuildMonitor.iws
@@ -59,30 +59,10 @@
</component>
<component name="FileEditorManager">
<leaf>
- <file leaf-file-name="BuildStatusMonitor.java" pinned="false" current="true" current-in-tab="true">
+ <file leaf-file-name="BuildStatusMonitor.java" pinned="false" current="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/main/com/thoughtworks/go/monitor/BuildStatusMonitor.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="53" column="24" selection-start="1750" selection-end="1750" vertical-scroll-proportion="1.6736842">
- <folding>
- <element signature="imports" expanded="true" />
- </folding>
- </state>
- </provider>
- </entry>
- </file>
- <file leaf-file-name="BuildStatusMonitorTest.java" pinned="false" current="false" current-in-tab="false">
- <entry file="file://$PROJECT_DIR$/src/test/com/thoughtworks/go/monitor/BuildStatusMonitorTest.java">
- <provider selected="true" editor-type-id="text-editor">
- <state line="6" column="23" selection-start="242" selection-end="242" vertical-scroll-proportion="0.0">
- <folding />
- </state>
- </provider>
- </entry>
- </file>
- <file leaf-file-name=".gitignore" pinned="false" current="false" current-in-tab="false">
- <entry file="file://$PROJECT_DIR$/.gitignore">
- <provider selected="true" editor-type-id="text-editor">
- <state line="6" column="0" selection-start="30" selection-end="30" vertical-scroll-proportion="0.0">
+ <state line="44" column="40" selection-start="1461" selection-end="1461" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
@@ -106,10 +86,10 @@
</provider>
</entry>
</file>
- <file leaf-file-name="BlameMonitor.java" pinned="false" current="false" current-in-tab="false">
+ <file leaf-file-name="BlameMonitor.java" pinned="false" current="true" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/src/main/com/thoughtworks/go/monitor/BlameMonitor.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="42" column="0" selection-start="1062" selection-end="1062" vertical-scroll-proportion="0.0">
+ <state line="38" column="27" selection-start="1055" selection-end="1055" vertical-scroll-proportion="0.04178273">
<folding />
</state>
</provider>
@@ -127,7 +107,16 @@
<file leaf-file-name="NameToSongMapping.java" pinned="false" current="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/main/com/thoughtworks/go/monitor/NameToSongMapping.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="11" column="9" selection-start="251" selection-end="251" vertical-scroll-proportion="0.0">
+ <state line="25" column="0" selection-start="666" selection-end="666" vertical-scroll-proportion="0.0">
+ <folding />
+ </state>
+ </provider>
+ </entry>
+ </file>
+ <file leaf-file-name="Passed_userToSongMapping.properties" pinned="false" current="false" current-in-tab="false">
+ <entry file="file://$PROJECT_DIR$/src/Passed_userToSongMapping.properties">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="1" column="14" selection-start="30" selection-end="36" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
@@ -145,7 +134,7 @@
<file leaf-file-name="SongListener.java" pinned="false" current="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/main/com/thoughtworks/go/monitor/SongListener.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="16" column="30" selection-start="547" selection-end="547" vertical-scroll-proportion="0.0">
+ <state line="19" column="29" selection-start="752" selection-end="752" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
@@ -176,6 +165,7 @@
<option value="$PROJECT_DIR$/src/com/thoughtworks/go/monitor/BuildStatusMonitor.java" />
<option value="$PROJECT_DIR$/src/main/com/thoughtworks/go/monitor/BuildStatusMonitor.java" />
<option value="$PROJECT_DIR$/src/test/com/thoughtworks/go/monitor/BuildStatusMonitorTest.java" />
+ <option value="$PROJECT_DIR$/src/main/com/thoughtworks/go/monitor/BlameMonitor.java" />
</list>
</option>
</component>
@@ -209,6 +199,13 @@
<sortByType />
</navigator>
<panes>
+ <pane id="Scope">
+ <subPane />
+ <subPane subId="Project Files" />
+ </pane>
+ <pane id="PackagesPane">
+ <subPane />
+ </pane>
<pane id="ProjectPane">
<subPane>
<PATH>
@@ -223,74 +220,13 @@
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
- <option name="myItemId" value="BuildMonitor" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- </PATH>
- <PATH>
- <PATH_ELEMENT>
- <option name="myItemId" value="BuildMonitor" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="BuildMonitor" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="src" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- </PATH>
- <PATH>
- <PATH_ELEMENT>
- <option name="myItemId" value="BuildMonitor" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="BuildMonitor" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="src" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="test" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- </PATH>
- <PATH>
- <PATH_ELEMENT>
- <option name="myItemId" value="BuildMonitor" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="BuildMonitor" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="src" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="main" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="monitor" />
+ <option name="myItemId" value="buildmonitor" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
</subPane>
</pane>
- <pane id="PackagesPane">
- <subPane />
- </pane>
<pane id="Favorites" />
- <pane id="Scope">
- <subPane />
- <subPane subId="Project Files" />
- </pane>
</panes>
</component>
<component name="PropertiesComponent">
@@ -485,12 +421,11 @@
<servers />
</component>
<component name="ToolWindowManager">
- <frame x="0" y="22" width="1440" height="787" extended-state="0" />
+ <frame x="0" y="0" width="1378" height="772" extended-state="0" />
<editor active="true" />
<layout>
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
- <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32833582" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3988006" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
@@ -499,11 +434,12 @@
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="true" content_ui="tabs" />
<window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
- <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.2264558" sideWeight="0.6431784" order="0" side_tool="false" content_ui="tabs" />
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.22627182" sideWeight="0.64752793" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Dependency Viewer" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
- <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3568216" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3524721" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32833582" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
</layout>
@@ -546,99 +482,92 @@
<component name="editorHistoryManager">
<entry file="jar://$PROJECT_DIR$/lib/go-api-client-0.0.jar!/com/thoughtworks/go/visitor/StageVisitor.class">
<provider selected="true" editor-type-id="text-editor">
- <state line="5" column="17" selection-start="169" selection-end="169" vertical-scroll-proportion="0.0763116">
- <folding />
- </state>
+ <state line="5" column="17" selection-start="169" selection-end="169" vertical-scroll-proportion="0.0763116" />
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/src/Passed_userToSongMapping.properties">
+ <entry file="jar://$PROJECT_DIR$/lib/go-api-client-0.0.jar!/com/thoughtworks/go/TalkToGo2Dot1.class">
<provider selected="true" editor-type-id="text-editor">
- <state line="0" column="8" selection-start="8" selection-end="8" vertical-scroll-proportion="0.0">
- <folding />
- </state>
+ <state line="8" column="11" selection-start="283" selection-end="296" vertical-scroll-proportion="0.15584415" />
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/src/Failed_userToSongMapping.properties">
+ <entry file="jar://$PROJECT_DIR$/lib/go-api-client-0.0.jar!/com/thoughtworks/go/TalkToGo.class">
<provider selected="true" editor-type-id="text-editor">
- <state line="0" column="8" selection-start="8" selection-end="8" vertical-scroll-proportion="0.0">
- <folding />
- </state>
+ <state line="5" column="17" selection-start="161" selection-end="161" vertical-scroll-proportion="0.097402595" />
</provider>
</entry>
- <entry file="jar://$PROJECT_DIR$/lib/go-api-client-0.0.jar!/com/thoughtworks/go/TalkToGo2Dot1.class">
+ <entry file="file://$PROJECT_DIR$/src/test/com/thoughtworks/go/monitor/BuildStatusMonitorTest.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="8" column="11" selection-start="283" selection-end="296" vertical-scroll-proportion="0.15584415">
+ <state line="8" column="1" selection-start="274" selection-end="274" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
- <entry file="jar://$PROJECT_DIR$/lib/go-api-client-0.0.jar!/com/thoughtworks/go/TalkToGo.class">
+ <entry file="file://$PROJECT_DIR$/.gitignore">
<provider selected="true" editor-type-id="text-editor">
- <state line="5" column="17" selection-start="161" selection-end="161" vertical-scroll-proportion="0.097402595">
- <folding />
- </state>
+ <state line="6" column="0" selection-start="30" selection-end="30" vertical-scroll-proportion="0.0" />
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/BuildMonitor.ipr">
+ <entry file="jar:///usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/rt.jar!/java/awt/Component.class">
<provider selected="true" editor-type-id="text-editor">
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
+ <state line="237" column="16" selection-start="9272" selection-end="9272" vertical-scroll-proportion="0.33128834">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/BuildMonitor.iws">
+ <entry file="file://$PROJECT_DIR$/src/main/com/thoughtworks/go/monitor/BuildStatusMonitor.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
+ <state line="44" column="40" selection-start="1461" selection-end="1461" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/src/main/com/thoughtworks/go/monitor/NameToSongMapping.java">
+ <entry file="file://$PROJECT_DIR$/BuildMonitor.ipr">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
+ </provider>
+ </entry>
+ <entry file="file://$PROJECT_DIR$/BuildMonitor.iws">
<provider selected="true" editor-type-id="text-editor">
- <state line="11" column="9" selection-start="251" selection-end="251" vertical-scroll-proportion="0.0" />
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main/com/thoughtworks/go/monitor/BuildMonitorListener.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="2" column="17" selection-start="55" selection-end="55" vertical-scroll-proportion="0.0">
- <folding />
- </state>
+ <state line="2" column="17" selection-start="55" selection-end="55" vertical-scroll-proportion="0.0" />
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/src/main/com/thoughtworks/go/monitor/SongListener.java">
+ <entry file="file://$PROJECT_DIR$/src/main/com/thoughtworks/go/monitor/NameToSongMapping.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="16" column="30" selection-start="547" selection-end="547" vertical-scroll-proportion="0.0">
+ <state line="25" column="0" selection-start="666" selection-end="666" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/src/main/com/thoughtworks/go/monitor/BlameMonitor.java">
+ <entry file="file://$PROJECT_DIR$/src/Passed_userToSongMapping.properties">
<provider selected="true" editor-type-id="text-editor">
- <state line="42" column="0" selection-start="1062" selection-end="1062" vertical-scroll-proportion="0.0">
+ <state line="1" column="14" selection-start="30" selection-end="36" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/.gitignore">
+ <entry file="file://$PROJECT_DIR$/src/Failed_userToSongMapping.properties">
<provider selected="true" editor-type-id="text-editor">
- <state line="6" column="0" selection-start="30" selection-end="30" vertical-scroll-proportion="0.0">
+ <state line="0" column="8" selection-start="8" selection-end="8" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/src/test/com/thoughtworks/go/monitor/BuildStatusMonitorTest.java">
+ <entry file="file://$PROJECT_DIR$/src/main/com/thoughtworks/go/monitor/SongListener.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="6" column="23" selection-start="242" selection-end="242" vertical-scroll-proportion="0.0">
+ <state line="19" column="29" selection-start="752" selection-end="752" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/src/main/com/thoughtworks/go/monitor/BuildStatusMonitor.java">
+ <entry file="file://$PROJECT_DIR$/src/main/com/thoughtworks/go/monitor/BlameMonitor.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="53" column="24" selection-start="1750" selection-end="1750" vertical-scroll-proportion="1.6736842">
- <folding>
- <element signature="imports" expanded="true" />
- </folding>
+ <state line="38" column="27" selection-start="1055" selection-end="1055" vertical-scroll-proportion="0.04178273">
+ <folding />
</state>
</provider>
</entry>
View
11 src/main/com/thoughtworks/go/monitor/BlameMonitor.java
@@ -24,23 +24,26 @@ public void createWindow() {
frame.setExtendedState(frame.getExtendedState()|JFrame.MAXIMIZED_BOTH);
label.setFont(new Font("Dialog",Font.PLAIN, 100));
-
+ label.setOpaque(false);
frame.setVisible(true);
}
public void brokeTheBuild(String user) {
- frame.setBackground(Color.RED);
+ Container container = frame.getContentPane();
+ container.setBackground(Color.RED);
showUser(user);
}
public void fixedTheBuild(String user) {
- frame.setBackground(Color.GREEN);
+ Container container = frame.getContentPane();
+ container.setBackground(Color.GREEN);
showUser(user);
}
public void pushedWorkingBuild(String user) {
- frame.setBackground(Color.GREEN);
+ Container container = frame.getContentPane();
+ container.setBackground(Color.GREEN);
showUser(user);
}

0 comments on commit 9601595

Please sign in to comment.