@@ -49,6 +49,9 @@ public class PythonProject implements Project {
4949 private final ProjectState state ;
5050 private Lookup lkp ;
5151
52+
53+ @ StaticResource ()
54+ public static final String PYTHON_PROJECT_ICON = "org/apache/netbeans/modules/python4nb/editor/py_module.png" ;
5255 PythonProject (FileObject dir , ProjectState state ) {
5356 this .projectDir = dir ;
5457 this .state = state ;
@@ -64,9 +67,8 @@ public Lookup getLookup() {
6467 if (lkp == null ) {
6568 lkp = Lookups .fixed (new Object []{
6669 new PythonInfo (),
67- // new PythonProjectLogicalView(this)
68- // ,
69- // new CustomizerProvider() {
70+ new PythonProjectLogicalView (this )
71+ // , new CustomizerProvider() {
7072// @Override
7173// public void showCustomizer() {
7274// JOptionPane.showMessageDialog(
@@ -84,12 +86,13 @@ public Lookup getLookup() {
8486
8587 private final class PythonInfo implements ProjectInformation {
8688
87- @ StaticResource ()
88- public static final String PYTHON_ICON = "org/apache/netbeans/modules/python4nb/editor/py.png" ;
89+ // @StaticResource()
90+ // public static final String PYTHON_ICON = "org/apache/netbeans/modules/python4nb/editor/py.png";
8991
9092 @ Override
9193 public Icon getIcon () {
92- return new ImageIcon (ImageUtilities .loadImage (PYTHON_ICON ));
94+ return new ImageIcon (ImageUtilities .loadImage (PYTHON_PROJECT_ICON ));
95+ // return new ImageIcon(ImageUtilities.loadImage(PYTHON_ICON));
9396 }
9497
9598 @ Override
@@ -120,8 +123,11 @@ public Project getProject() {
120123
121124 class PythonProjectLogicalView implements LogicalViewProvider {
122125
123- @ StaticResource ()
124- public static final String PYTHON_ICON = "org/apache/netbeans/modules/python4nb/editor/py.png" ;
126+ // @StaticResource()
127+ // public static final String PYTHON_ICON = "org/apache/netbeans/modules/python4nb/editor/py.png";
128+ //
129+ // @StaticResource()
130+ // public static final String PYTHON_PROJECT_ICON = "org/apache/netbeans/modules/python4nb/editor/py_module.png";
125131
126132 private final PythonProject project ;
127133
@@ -170,12 +176,15 @@ public Action[] getActions(boolean arg0) {
170176 CommonProjectActions .deleteProjectAction (),
171177 CommonProjectActions .customizeProjectAction (),
172178 CommonProjectActions .closeProjectAction ()
179+ // TODO Establish applicable Python Project Actions
180+ // , CommonProjectActions.TODO (see auto completion)
173181 };
174182 }
175183
176184 @ Override
177185 public Image getIcon (int type ) {
178- return ImageUtilities .loadImage (PYTHON_ICON );
186+ // return ImageUtilities.loadImage(PYTHON_ICON);
187+ return ImageUtilities .loadImage (PYTHON_PROJECT_ICON );
179188 }
180189
181190 @ Override
@@ -187,7 +196,6 @@ public Image getOpenedIcon(int type) {
187196 public String getDisplayName () {
188197 return project .getProjectDirectory ().getName ();
189198 }
190-
191199 }
192200
193201 @ Override
0 commit comments