@@ -237,6 +237,7 @@ public int hashCode() {
237237 * @param parent if not <code>null</code> the new dialog stays on top of this parent shell
238238 * @param bundle <code>ResourceBundle</code> to configure the dialog
239239 */
240+ @ Deprecated
240241 public EditionSelectionDialog (Shell parent , ResourceBundle bundle ) {
241242 super (parent , bundle );
242243 }
@@ -268,6 +269,7 @@ public void setStatusMessage(String message) {
268269 * @param contextId the help context id.
269270 * @since 3.2
270271 */
272+ @ Deprecated
271273 @ Override
272274 public void setHelpContextId (String contextId ) {
273275 super .setHelpContextId (contextId );
@@ -279,6 +281,7 @@ public void setHelpContextId(String contextId) {
279281 * @param titleArgument an optional argument for the edition pane's title
280282 * @since 2.0
281283 */
284+ @ Deprecated
282285 public void setEditionTitleArgument (String titleArgument ) {
283286 fTitleArg = titleArgument ;
284287 }
@@ -289,6 +292,7 @@ public void setEditionTitleArgument(String titleArgument) {
289292 * @param titleImage an optional image for the edition pane's title
290293 * @since 2.0
291294 */
295+ @ Deprecated
292296 public void setEditionTitleImage (Image titleImage ) {
293297 fTitleImage = titleImage ;
294298 }
@@ -305,6 +309,7 @@ public void setEditionTitleImage(Image titleImage) {
305309 * it is an <code>ITypedElement</code> returned from <code>IStructureCreator.locate(path, item)</code>
306310 * @since 2.0
307311 */
312+ @ Deprecated
308313 public ITypedElement selectPreviousEdition (final ITypedElement target , ITypedElement [] inputEditions , Object ppath ) {
309314 Assert .isNotNull (target );
310315 fTargetPair = new Pair (null , target );
@@ -380,6 +385,7 @@ public ITypedElement selectPreviousEdition(final ITypedElement target, ITypedEle
380385 * if <code>path</code> was <code>null</code>; otherwise
381386 * it is an <code>ITypedElement</code> returned from <code>IStructureCreator.locate(path, item)</code>
382387 */
388+ @ Deprecated
383389 public ITypedElement selectEdition (final ITypedElement target , ITypedElement [] inputEditions , Object ppath ) {
384390
385391 Assert .isNotNull (target );
@@ -544,6 +550,7 @@ private Pair createPair(IStructureCreator sc, Object path, ITypedElement input)
544550 * @param hide if true identical entries are hidden; otherwise they are shown.
545551 * @since 2.0
546552 */
553+ @ Deprecated
547554 public void setHideIdenticalEntries (boolean hide ) {
548555 fHideIdentical = hide ;
549556 }
@@ -554,6 +561,7 @@ public void setHideIdenticalEntries(boolean hide) {
554561 * @param isRight if true target is shown on right hand side.
555562 * @since 2.0
556563 */
564+ @ Deprecated
557565 public void setTargetIsRight (boolean isRight ) {
558566 fTargetIsRight = isRight ;
559567 }
@@ -565,6 +573,7 @@ public void setTargetIsRight(boolean isRight) {
565573 * @param addMode if true dialog is in 'add' mode.
566574 * @since 2.0
567575 */
576+ @ Deprecated
568577 public void setAddMode (boolean addMode ) {
569578 fAddMode = addMode ;
570579 fMultiSelect = addMode ;
@@ -577,6 +586,7 @@ public void setAddMode(boolean addMode) {
577586 * @param compareMode if true dialog is in 'add' mode.
578587 * @since 2.0
579588 */
589+ @ Deprecated
580590 public void setCompareMode (boolean compareMode ) {
581591 fCompareMode = compareMode ;
582592 fStructureCompare = fCompareMode && !fAddMode ;
@@ -593,6 +603,7 @@ public void setCompareMode(boolean compareMode) {
593603 *
594604 * @return the last specified target or a subsection thereof.
595605 */
606+ @ Deprecated
596607 public ITypedElement getTarget () {
597608 return fTargetPair .getItem ();
598609 }
@@ -604,6 +615,7 @@ public ITypedElement getTarget() {
604615 * @return the selected editions as an array.
605616 * @since 2.1
606617 */
618+ @ Deprecated
607619 public ITypedElement [] getSelection () {
608620 ArrayList <ITypedElement > result = new ArrayList <>();
609621 if (fMemberSelection != null ) {
@@ -635,6 +647,7 @@ public ITypedElement[] getSelection() {
635647 * @param item if a path has been specified in <code>selectEdition</code> a sub element of the given target; otherwise the same as target
636648 * @return a label the target side of a compare viewer
637649 */
650+ @ Deprecated
638651 protected String getTargetLabel (ITypedElement target , ITypedElement item ) {
639652 String format = null ;
640653 if (target instanceof ResourceNode ) {
@@ -680,6 +693,7 @@ private boolean hasVariable(String string) {
680693 * @param item if a path has been specified in <code>selectEdition</code> a sub element of the given selectedEdition; otherwise the same as selectedEdition
681694 * @return a label for the edition side of a compare viewer
682695 */
696+ @ Deprecated
683697 protected String getEditionLabel (ITypedElement selectedEdition , ITypedElement item ) {
684698 String format = null ;
685699 if (selectedEdition instanceof ResourceNode ) {
@@ -721,6 +735,7 @@ protected String getEditionLabel(ITypedElement selectedEdition, ITypedElement it
721735 * @return a label of a node in the edition tree viewer
722736 * @since 2.0
723737 */
738+ @ Deprecated
724739 protected String getShortEditionLabel (ITypedElement edition , ITypedElement item , Date date ) {
725740 String format = null ;
726741 if (edition instanceof ResourceNode ) {
@@ -752,6 +767,7 @@ protected String getShortEditionLabel(ITypedElement edition, ITypedElement item,
752767 * @return a label the edition side of a compare viewer
753768 * @since 2.0
754769 */
770+ @ Deprecated
755771 protected Image getEditionImage (ITypedElement selectedEdition , ITypedElement item ) {
756772 if (selectedEdition instanceof ResourceNode ) {
757773 return selectedEdition .getImage ();
@@ -769,6 +785,7 @@ protected Image getEditionImage(ITypedElement selectedEdition, ITypedElement ite
769785 return null ;
770786 }
771787
788+ @ Deprecated
772789 @ Override
773790 protected synchronized Control createDialogArea (Composite parent2 ) {
774791
@@ -905,6 +922,7 @@ protected Viewer getViewer(Viewer oldViewer, Object input) {
905922 return parent ;
906923 }
907924
925+ @ Deprecated
908926 @ Override
909927 protected void createButtonsForButtonBar (Composite parent ) {
910928 String buttonLabel = Utilities .getString (fBundle , "buttonLabel" , IDialogConstants .OK_LABEL ); //$NON-NLS-1$
@@ -923,6 +941,7 @@ protected void createButtonsForButtonBar(Composite parent) {
923941 * Overidden to disable dismiss on double click in compare mode.
924942 * @since 2.0
925943 */
944+ @ Deprecated
926945 @ Override
927946 protected void okPressed () {
928947 if (fCompareMode ) {
0 commit comments