From d79a9c2863ea3e6ed46e9822acb53e66d5b90436 Mon Sep 17 00:00:00 2001 From: Vivian Kong Date: Mon, 18 Apr 2011 21:19:42 +0000 Subject: [PATCH] Bug 133881 - Make refreshing after building optional Work in progress. --- .../icons/elcl16/refresh_nav.gif | Bin 0 -> 327 bytes .../icons/obj16/fileFolder_obj.gif | Bin 0 -> 583 bytes .../icons/obj16/file_obj.gif | Bin 0 -> 596 bytes .../icons/obj16/textfile_obj.gif | Bin 0 -> 354 bytes .../ui/properties/ManagedBuilderUIImages.java | 31 ++++++++++++++++-- .../RefreshExclusionContributor.java | 6 ++++ 6 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 build/org.eclipse.cdt.managedbuilder.ui/icons/elcl16/refresh_nav.gif create mode 100644 build/org.eclipse.cdt.managedbuilder.ui/icons/obj16/fileFolder_obj.gif create mode 100644 build/org.eclipse.cdt.managedbuilder.ui/icons/obj16/file_obj.gif create mode 100644 build/org.eclipse.cdt.managedbuilder.ui/icons/obj16/textfile_obj.gif diff --git a/build/org.eclipse.cdt.managedbuilder.ui/icons/elcl16/refresh_nav.gif b/build/org.eclipse.cdt.managedbuilder.ui/icons/elcl16/refresh_nav.gif new file mode 100644 index 0000000000000000000000000000000000000000..3ca04d06ff9c811a6f791d029a802a7be4681ff4 GIT binary patch literal 327 zcmZ?wbhEHb6krfwxXQrrJWa!4-LeYm0=|77MK@5?WI%v@BcT|Ns9CR0WDZSr{1@R2g(Yrh@#$z?O1g zQh|q#RHw+PiyoXB)1AE)3U1~skT{fJ?U6BUYICAZn$5HYp3GD7dKS#fQdLEHHy z6I^aRo~tUt;P2kV;zxe*_?T?r5f4=?n>;B6hk6!=y`1SXPFTcM3{B!^1_qU&Ze)<0U!`I*6 zfBydV^LKTL|Np&yIpy`1;|>zV(5KD1W)^wfCv)OfX4_^Ah-ukLoZvMJ-rrp*7h zI&bZ*`42SV`?LQSORsLqe0;F>|Cf9JzdgRWsqk>8+3{}keJv)R9-rS_X|TRje@Cs+ zn|o(B7pVOQ1BSr|6o0ZXGBEft=zyFCiW3I*B@KQ}t}U)j?Hx@%zCFG^ogJ?7@@fVS z&aG_|73R#5oj>1wqWThbMUxdPJ6yEaY8#s{Z(_DIX?HW)X{2K&DlIByZExD-Wpmud zR#$?Xi^0&^!rafp>YA049;2{`q=*Qko}Z`PQ#(fuah|iRECTvXo}WCuHTjwNe{%9` vP4H9ZxTcx$yrE^k5IdiT$BKX!dww=4kDi2s4ea$YMp;*0tY19Yfx#L8kPqt^ literal 0 HcmV?d00001 diff --git a/build/org.eclipse.cdt.managedbuilder.ui/icons/obj16/file_obj.gif b/build/org.eclipse.cdt.managedbuilder.ui/icons/obj16/file_obj.gif new file mode 100644 index 0000000000000000000000000000000000000000..9729c427363ffe77a70989c0603c8230c7dce8dd GIT binary patch literal 596 zcmZ?wbhEHb6krfwc*el+$%=-~4#`7N`-Z>-Xa~-=Dw# z`QrVL_g{W}`u6+P$Dbd+{r>vn_m5wHe*F6V{nzj6691}V|LT%}Y9Lu0&|c-!T<%+6 z;y1D0qqo*;Zma9`Cbtd!c58YZmUlZX>TrH=qJPT-+bf$gu58M@wYTQ#rp*8U|1%73 zp!k!8k%7UBK?meaP@FKZZ*1`La&2jCZR%)p<>=|iZ;W@F>kxgmg zLN*riJ6DTAmhfw7j3*!CRsH+p3KL2JvD;am>8@9E#>Ya literal 0 HcmV?d00001 diff --git a/build/org.eclipse.cdt.managedbuilder.ui/icons/obj16/textfile_obj.gif b/build/org.eclipse.cdt.managedbuilder.ui/icons/obj16/textfile_obj.gif new file mode 100644 index 0000000000000000000000000000000000000000..b226e41c5276581db33d71525298ef572cc5d7ce GIT binary patch literal 354 zcmZ?wbhEHb6krfwxXQrr`Rnf=KmWY@^y|~t-#>r-`SJ62+pK*(^ACOa@_X{KW3$$r zUbOlAiXE5N?74dH#gDtszu$lH{mGl3&)@xg`{~!`Z@=#VMPB~6_u~7*S3h2T`1$R} z?`Q9Re)#(P)3@JWfBgRb^LKTLe^s%6bxA;7sb4jaQ5?`-<Y72H(vk7Xs us!1$fvP8{QU92ZrK%7tARasP&f6JDw8m_8J3W|I7DyXXX9C3DJum%7=h^`F) literal 0 HcmV?d00001 diff --git a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/ManagedBuilderUIImages.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/ManagedBuilderUIImages.java index 1bc2fef8f36..2b5f51219fc 100644 --- a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/ManagedBuilderUIImages.java +++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/ManagedBuilderUIImages.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2002, 2010 Rational Software Corporation and others. + * Copyright (c) 2002, 2011 Rational Software Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -71,7 +71,34 @@ public class ManagedBuilderUIImages { public static final ImageDescriptor DESC_EDITABLE = createManaged(T_OBJ, IMG_EDITABLE); public static final String IMG_BUILT_IN = NAME_PREFIX + "built_in.gif"; //$NON-NLS-1$ public static final ImageDescriptor DESC_BUILT_IN = createManaged(T_OBJ, IMG_BUILT_IN); - + + // refresh policy tab + /** + * @since 8.0 + */ + public static final String IMG_FILE_OBJ = NAME_PREFIX + "file_obj.gif"; //$NON-NLS-1$ + /** + * @since 8.0 + */ + public static final ImageDescriptor DESC_FILE_OBJ = createManaged(T_OBJ, IMG_FILE_OBJ); + /** + * @since 8.0 + */ + public static final String IMG_TEXTFILE_OBJ = NAME_PREFIX + "textfile_obj.gif"; //$NON-NLS-1$ + /** + * @since 8.0 + */ + public static final ImageDescriptor DESC_TEXTFILE_OBJ = createManaged(T_OBJ, IMG_TEXTFILE_OBJ); + /** + * @since 8.0 + */ + public static final String IMG_FILE_FOLDER_OBJ = NAME_PREFIX + "fileFolder_obj.gif"; //$NON-NLS-1$ + /** + * @since 8.0 + */ + public static final ImageDescriptor DESC_FILE_FOLDER_OBJ = createManaged(T_OBJ, IMG_FILE_FOLDER_OBJ); + + private static ImageDescriptor createManaged(String prefix, String name) { return createManaged(imageRegistry, prefix, name); } diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/resources/RefreshExclusionContributor.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/resources/RefreshExclusionContributor.java index 36a28c6b31b..d4719ec2261 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/resources/RefreshExclusionContributor.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/resources/RefreshExclusionContributor.java @@ -61,6 +61,12 @@ public abstract class RefreshExclusionContributor { } abstract public RefreshExclusion createExclusion(); + + /** + * Creates the UI that allows user to modify the given RefreshExclusion + * @param parent - the parent composite to contain the UI + * @param exclusion - the RefreshExclusion to be modified + */ abstract public void createProperiesUI(Composite parent, RefreshExclusion exclusion); abstract public RefreshExclusion createExclusionFromXML(Element exclusionElement);